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)); }
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); }
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); }