Beispiel #1
0
        public void AddGroundSprite(Object resource)
        {
            if (resource is Texture2D || resource is Sprite)
            {
                STSpriteInfo info = new STSpriteInfo();
                info.source = resource;
                if (resource is Sprite)
                {
                    info.target = resource as Sprite;
                }

                this.GroundSprites.Add(info);
            }
        }
        public void AddSprite(Object resource)
        {
            if (resource is Texture2D || resource is Sprite)
            {
                STSpriteInfo info = new STSpriteInfo();
                info.source = resource;
                if (resource is Sprite)
                {
                    info.target = resource as Sprite;
                }

                this.m_Sprites.Add(info);
            }
        }
Beispiel #3
0
 public void RemoveGroundSprite(STSpriteInfo info)
 {
     m_GroundSprites.Remove(info);
 }
 public void RemoveGroundSprite(STSpriteInfo info)
 {
     m_GroundSprites.Remove(info);
 }
 public void RemoveSprite(STSpriteInfo sprite)
 {
     m_Sprites.Remove(sprite);
 }