This file contains 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 UnityEditor; | |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
[InitializeOnLoad] | |
class MissingScriptChecker : Editor | |
{ |
This file contains 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
if ( Input.GetKeyUp(KeyCode.S)) | |
{ | |
var filePath = Application.dataPath + "/screenshot/" + System.DateTime.Now.ToFileTime() + ".png"; | |
Application.CaptureScreenshot(filePath, screenShotScale); | |
} |
This file contains 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
[System.Serializable] | |
public class RandFloat : Rand<float> | |
{ | |
public RandFloat(float min, float max) : base(min, max){ } | |
protected override float _rand(float min, float max) { return UnityEngine.Random.Range(min, max); } | |
} | |
[System.Serializable] | |
public class RandInt : Rand<int> | |
{ |
This file contains 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
static class Util | |
{ | |
static public Vector2 CrossKey(float scale = 1f, bool extraEnable = true) | |
{ | |
KeyCode[][] keys = new[]{ |
This file contains 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; | |
using UnityEditor; | |
using NUnit.Framework; | |
using System.Linq; | |
using UnityEditor.SceneManagement; | |
public class CommonTest | |
{ | |
/// <summary> |
This file contains 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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System; | |
public class TimeDebugger : MonoBehaviour | |
{ | |
#region TypeDefine |
This file contains 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
/* | |
* Copyright (c) 2013 Calvin Rien | |
* | |
* Based on the JSON parser by Patrick van Bergen | |
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html | |
* | |
* Simplified it so that it doesn't throw exceptions | |
* and can be used in Unity iPhone with maximum code stripping. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining |
This file contains 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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" for dein | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" deinパス設定 | |
let s:dein_dir = expand('~/.vim/dein/') "<-お好きな場所 | |
let s:dein_repo_dir = s:dein_dir . 'repos/github.com/Shougo/dein.vim' "<-固定 | |
" dein.vim本体の存在チェックとインストール | |
if !isdirectory(s:dein_repo_dir) | |
execute '!git clone https://github.com/Shougo/dein.vim' shellescape(s:dein_repo_dir) |
This file contains 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
if has('gui_macvim') | |
set antialias | |
set guioptions-=r " 右スクロールバー非表示 | |
set guioptions-=R | |
set guioptions-=l " 左スクロールバー非表示 | |
set guioptions-=L | |
set guifont=Osaka-Mono:h14 | |
set lines=90 columns=200 | |
endif |
This file contains 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
@rem | |
@rem To use this with Visual Studio .Net | |
@rem Tools->External Tools... | |
@rem Add | |
@rem Title - Vim | |
@rem Command - d:\files\util\vim_vs_net.cmd | |
@rem Arguments - +$(CurLine) $(ItemPath) | |
@rem Init Dir - Empty | |
@rem | |
@rem Courtesy of Brian Sturk |