This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
using UnityEngine.SceneManagement; | |
using UnityObject = UnityEngine.Object; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-Variable -Name "DefaultUnityEditorVersion" -Value 5 -Option Constant -Scope Global | |
function global:Get-UnityEditorPrefPath() | |
{ | |
[CmdletBinding()] | |
[OutputType([string])] | |
param | |
( | |
[Parameter(Mandatory=$false)] | |
[int] $Version = $DefaultUnityEditorVersion |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using DxLibDLL; | |
using System; | |
using System.Diagnostics; | |
namespace DxLibTest | |
{ | |
public static class Program | |
{ | |
private static readonly float DegToRad = (float)(Math.PI / 180.0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
/*: | |
* @plugindesc プラグインの管理システム | |
* @author F_ | |
* | |
* @help | |
* プラグイン開発をサポートするプラグイン。 | |
* | |
* 必ず最初に実行すること。 | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
/*: | |
* @plugindesc プラグインの管理システム | |
* @author F_ | |
* | |
* @help | |
* プラグイン開発をサポートするプラグイン。 | |
* | |
* 必ず最初に実行すること。 | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Actor : MonoBehaviour | |
{ | |
// Rigidbodyと大きさを受け取り、画面内に収まるように位置と速度を調節する | |
protected void EnsureInScreen(Rigidbody2D rigidbody, Vector2 size) | |
{ | |
// いくつもの前提の下に動作することに注意 | |
// 前提1:メインカメラはZ軸正方向を向いている | |
// 前提2:画像の中心位置とオブジェクトの位置が一致している |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const VS_SRC = ` | |
attribute vec4 position; | |
attribute vec2 texcoord; | |
varying vec2 vTexcoord; | |
void main(void){ | |
gl_Position = position; | |
vTexcoord = texcoord; | |
} | |
`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const { posix, win32 } = require('path'); | |
const path = (process.platform !== 'win32') ? posix : { | |
resolve() { return replaceSep(win32.resolve.apply(this, arguments)); }, | |
relative() { return replaceSep(win32.relative.apply(this, arguments)); }, | |
normalize() { return replaceSep(win32.normalize.apply(this, arguments)); }, | |
join() { return replaceSep(win32.join.apply(this, arguments)); }, | |
dirname() { return replaceSep(win32.dirname.apply(this, arguments)); }, | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Vue } from 'vue/types/vue'; | |
import { ComponentOptions } from 'vue/types/options'; | |
type VueCtor<V extends Vue> = { new(...args: any[]): V }; | |
type VueClass<V extends Vue> = VueCtor<V> & typeof Vue; | |
type MixinType<V extends Vue> = ComponentOptions<V> | VueClass<V>; | |
function mixin< | |
T extends VueClass<Vue>, | |
M1 extends Vue>( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as Vuex from 'vuex'; | |
import 'reflect-metadata'; | |
export const TypeSymbol = Symbol('type'); | |
export interface IModule<R = any> { | |
readonly $state: any; | |
readonly $getters: any; | |
readonly $commit: Vuex.Commit; | |
readonly $dispatch: Vuex.Dispatch; |
OlderNewer