Exemple #1
0
        public void Init(Sprite _sprite, string initani, Texture.TextureMgr _tmgr)
        {
            tmgr   = _tmgr;
            sprite = _sprite;
            var drawani = SpriteAniMgr.CreateAni(sprite, initani, tmgr);

            controller = new SpriteAniController(drawani.GetElement(null));
        }
Exemple #2
0
 public void PlayAni(string ani, string elem = null, SpriteAniController.playtag tag = SpriteAniController.playtag.play_immediate, Action whenplay = null)
 {
     controller.Play(SpriteAniMgr.CreateAni(sprite, ani, tmgr).GetElement(elem), tag, whenplay);
 }
Exemple #3
0
 public void SetAniState(string ani, string state = null, bool bimmediate = false, Action whenplay = null)
 {
     controller.State(SpriteAniMgr.CreateAni(sprite, ani, tmgr).GetElement(state), bimmediate, whenplay);
 }