Ejemplo n.º 1
0
        public override void Init(UnityEngine.Sprite[] sprites, float fps = 12)
        {
            AFSpriteRenderer spr = new AFSpriteRenderer();

            spr.SpriteRendererHolder = this.gameObject.AddComponent <SpriteRenderer>();
            SetSpriteCotnainer(spr);
            base.Init(sprites, fps);
        }
Ejemplo n.º 2
0
        public override void Init(UnityEngine.Sprite[] sprites, float fps = 12, string name = "")
        {
            SpriteRenderer = new AFSpriteRenderer();
            SpriteRenderer.SpriteRendererHolder = this.gameObject.AddComponent <SpriteRenderer>();
            SetSpriteCotnainer(SpriteRenderer);

            base.Init(sprites, fps, name);
        }