Пример #1
0
 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();
     }
 }
Пример #2
0
 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);
 }