override public void dispose() { if (m_startAni != null) { m_startAni.dispose(); m_startAni = null; } base.dispose(); }
protected void createAni() { if (m_startAni == null) { m_startAni = new DopeSheetAni(); string path = string.Format("{0}{1}", Ctx.m_instance.m_cfg.m_pathLst[(int)ResPathType.ePathSceneAnimatorController], "SelfCardAni.asset"); m_startAni.setAniEndDisp(onFaPai2MinAniEnd); m_startAni.setControlInfo(path); m_startAni.setGO(this.m_card.gameObject()); m_startAni.syncUpdateControl(); } }
protected void testDopeSheetAni() { DopeSheetAni ani = new DopeSheetAni(); //GameObject _go = UtilApi.createGameObject("AnimatorController"); GameObject _go = UtilApi.CreatePrimitive(PrimitiveType.Cube); ani.setControlInfo("Animation/Scene/CardModel.asset"); ani.setGO(_go); ani.syncUpdateControl(); ani.stateId = 2; ani.play(); //ani.stop(); //ani.dispose(); //UtilApi.Destroy(_go); }
public override void dispose() { base.dispose(); if(m_fanKaAni != null) { m_fanKaAni.dispose(); m_fanKaAni = null; } if (m_spriteAni != null) { m_spriteAni.dispose(); m_spriteAni = null; } }