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);
            }
        }
 public void RemoveSprite(STSpriteInfo sprite)
 {
     m_Sprites.Remove(sprite);
 }