Skip to content

Instantly share code, notes, and snippets.

@naxmefy
Last active November 15, 2017 22:50
Show Gist options
  • Select an option

  • Save naxmefy/4e52f4507f58ac56d9345788cff71487 to your computer and use it in GitHub Desktop.

Select an option

Save naxmefy/4e52f4507f58ac56d9345788cff71487 to your computer and use it in GitHub Desktop.
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