Last active
November 15, 2017 22:50
-
-
Save naxmefy/4e52f4507f58ac56d9345788cff71487 to your computer and use it in GitHub Desktop.
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
| private Dictionary<string, Object[]> atlanten = new Dictionary<string, Object[]>(); | |
| function Start() { | |
| atlanten.Add("Leather", AssetDatabase.loadAll...); | |
| } | |
| function Update() { | |
| string type = ... | |
| if (!atlanten.ContainsKey(type)) | |
| { | |
| Console.WriteLine(false); | |
| } | |
| else | |
| { | |
| Object[] atlas = atlanten[type]; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment