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 UnityEngine; | |
| using UnityEditor; | |
| public class CreateQuadMesh : Editor { | |
| [MenuItem("Assets/Create/Quad Mesh", false, 10000)] | |
| public static void Create () | |
| { | |
| Mesh mesh = BuildQuad (1, 1); |
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
| //https://gist.github.com/col000r/6658520 | |
| //but all the hard work done by mstevenson: https://gist.github.com/mstevenson/4050130 | |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| public class ShuffleBag<T> : ICollection<T>, IList<T> | |
| { | |
| private List<T> data = new List<T> (); |
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
| <EditorStyle name="MonoDevelop 2.4" _description="Old default MonoDevelop theme"> | |
| <Style name="text" color="#000000" bgColor="#FFFFFF" /> | |
| <Style name="text.background.readonly" color="#FAFAFA" /> | |
| <Style name="linenumber" color="#888A85" bgColor="#FDFDFF" /> | |
| <Style name="linenumber.highlight" color="#555753" /> | |
| <Style name="iconbar" color="#FDFDFF" /> | |
| <Style name="iconbar.separator" color="#BABDB6" /> | |
| <Style name="fold" color="#BABDB6" bgColor="#FDFDFF" /> | |
| <Style name="fold.highlight" color="#555753" /> | |
| <Style name="fold.togglemarker" color="#000000" /> |
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
| .DS_Store | |
| *.csproj | |
| *.sln | |
| *.pidb | |
| *.userprefs | |
| *.unityproj | |
| /Temp | |
| /Library |
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; | |
| public class MonoBehaviourSingleton<T> : MonoBehaviour | |
| where T : Component | |
| { | |
| private static T _instance; | |
| public static T Instance { | |
| get { | |
| if (_instance == null) { |
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
| /**********************************************/ | |
| /* | |
| /* IR_Black Skin by Ben Truyman - 2011 | |
| /* | |
| /* Based on Todd Werth's IR_Black: | |
| /* http://blog.toddwerth.com/entries/2 | |
| /* | |
| /* Inspired by Darcy Clarke's blog post: | |
| /* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
| /* |
NewerOlder