public static Sprite LoadSprite(string name, int index) { Sprite[] sprite = Resources.LoadAll <Sprite> ("Sprites/" + name); if (index >= sprite.Length) { LoggerProxy.Get().Warning("Sprite " + name + " could not be loaded"); } return(sprite[index]); }
public static GameObject LoadPrefab(string name) { GameObject prefab = (GameObject)Resources.Load("Prefabs/" + name, typeof(GameObject)); if (!prefab) { LoggerProxy.Get().Warning("Prefab " + name + " could not be loaded"); } return(prefab); }
public static void DebugWarning(this System.Object caller, System.Object message) { LoggerProxy.Get().Warning("[" + caller.ToString() + "]" + message); }
public static void DebugLog(this System.Object caller, System.Object message) { LoggerProxy.Get().Log(message); }