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; | |
| 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 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
| [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 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
| if ( Input.GetKeyUp(KeyCode.S)) | |
| { | |
| var filePath = Application.dataPath + "/screenshot/" + System.DateTime.Now.ToFileTime() + ".png"; | |
| Application.CaptureScreenshot(filePath, screenShotScale); | |
| } |
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 UnityEditor; | |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| [InitializeOnLoad] | |
| class MissingScriptChecker : Editor | |
| { |
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
| Type GetPropertyType(SerializedProperty property) | |
| { | |
| var paths = property.propertyPath.Split('.'); | |
| var target = property.serializedObject.targetObject as object; | |
| return paths.Aggregate(target, (t, path) => t.GetType().GetField(path).GetValue(t)).GetType(); | |
| } |
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; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| public static class GUIUtil | |
| { | |
| public class Folds : Dictionary<string, Fold> | |
| { | |
| public void Add(string name, Action action, bool enableFirst = false) |
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
| ping localhost -n 10 > nul | |
| start pathto/file.exe | |
| exit |
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
| javascript: | |
| (function(){ | |
| var url = 'http://jsdo.it/Fuqunaga/g_imas.js'; | |
| if(!url.match(/\?/))url+='?'+(new Date()).getTime(); | |
| var d=document; | |
| var e=d.createElement('script'); | |
| e.charset='utf-8'; | |
| e.src=url; | |
| d.getElementsByTagName('head')[0].appendChild(e); | |
| })(); |
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
| function prog(url,html) | |
| { | |
| var ajax = function(next_url, func){ | |
| return next_url && func(next_url, function(data){ | |
| prog(next_url, data); | |
| }); | |
| } | |
| var get_func = function(next_url){ return ajax(next_url, $.get)}; | |
| var post_func = function(next_url){ return ajax(next_url, $.post)}; | |
| var link = function(btn_sel) |
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
| javascript: | |
| function seq_func(){ | |
| $.get(location.href, function(data){ | |
| $.get($(data).find('#resque-pop-wrapper a').first().attr('href'), function(){ | |
| location.reload(); | |
| }); | |
| }); | |
| } | |
| $.get($('#raid-menu a').first().attr('href'), seq_func); |