Ejemplo n.º 1
0
 public void Initialize()
 {
     //            if (noFrames)
     if (noFrames == 1)
     {
         sprites    = new Sprite[noFrames];
         sprites[0] = Sprites.GetTexture(texture);
         if (sprites[0] == null)
         {
             Debug.Log("COULD not find sprite: " + texture);
         }
     }
     else
     {
         sprites = Sprites.GetASprite(texture);
     }
     if (sprites == null)
     {
         if (sprites[0] == null)
         {
             Debug.Log("COULD not find sprite (stack) : " + texture);
         }
     }
 }