Exemple #1
0
 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]);
 }
Exemple #2
0
    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);
    }
Exemple #3
0
 public static void DebugWarning(this System.Object caller, System.Object message)
 {
     LoggerProxy.Get().Warning("[" + caller.ToString() + "]" + message);
 }
Exemple #4
0
 public static void DebugLog(this System.Object caller, System.Object message)
 {
     LoggerProxy.Get().Log(message);
 }