Пример #1
0
 // 一个动画播放完成
 public void onAniEnd(NumAniBase ani)
 {
     if (onAniEndDisp != null)
     {
         onAniEndDisp(ani);
     }
 }
Пример #2
0
 protected void onMin2HandleEnd(NumAniBase ani)
 {
     //m_startAni.stateId = 0;
     //m_startAni.play();
     m_onEnterHandleEntryDisp.dispatchEvent(this.m_card);
     Ctx.m_instance.m_logSys.log("自己卡牌从场景区域到手牌区域动画结束");
 }
Пример #3
0
 protected void endCurAni(NumAniBase ani)
 {
     if (ani.bAniEndDispNotNull())
     {
         ani.getAniEndDisp()(ani);
     }
     ani.stop();                 // 停止动画
     m_numAniList.Remove(ani);
 }
Пример #4
0
        // 开始卡牌动画播放结束,注意开始有 3 张或者 4 张卡牌做动画,只有一个有回调函数
        protected void onFaPai2MinAniEnd(NumAniBase ani)
        {
            //m_startAni.stateId = 0;
            //m_startAni.play();
            //m_startAni.stop();

            //m_sceneCardBaseData.m_behaviorControl.moveToDestDirect(trackAniControl.destPos);    // 移动到终点位置
            Ctx.m_instance.m_logSys.log("自己卡牌从发牌区到场景区域动画结束");
        }
Пример #5
0
 protected void endCurAni(NumAniBase ani)
 {
     if (ani.bAniEndDispNotNull())
     {
         ani.getAniEndDisp()(ani);
     }
     ani.stop();                 // 停止动画
     m_numAniList.Remove(ani);
 }
Пример #6
0
        public void addOneNumAni(NumAniBase ani)
        {
            m_numAniList.Add(ani);

            if (ani is ITweenAniBase)   // 如果是补间动画
            {
                ani.setDispGo(m_go);
                ani.setMethodName("onAniEnd");
            }
            else if(ani is DopeSheetAni)
            {
                ani.setAniEndDisp(onOneAniEndHandle);
            }
        }
Пример #7
0
        public void addOneNumAni(NumAniBase ani)
        {
            m_numAniList.Add(ani);

            if (ani is ITweenAniBase)   // 如果是补间动画
            {
                ani.setDispGo(m_go);
                ani.setMethodName("onAniEnd");
            }
            else if (ani is DopeSheetAni)
            {
                ani.setAniEndDisp(onOneAniEndHandle);
            }
        }
Пример #8
0
 virtual protected void onOneAniEndHandle(NumAniBase ani)
 {
 }
Пример #9
0
 protected void onFanPaiAniEnd(NumAniBase ani)
 {
     m_bOpened = true;
     ++UIOpenPack.m_iOpenedNum;
     if (UIOpenPack.m_iOpenedNum == 5)
     {
         UIOpenPack.m_iOpenedNum = 0;
         UIOpenPack uiPack = Ctx.m_instance.m_uiMgr.getForm(UIFormID.eUIOpenPack) as UIOpenPack;
         if (uiPack != null)
         {
             UtilApi.SetActive(uiPack.m_okBtn.selfGo, true);
         }
     }
 }
Пример #10
0
 public void onMove2InplaceEnd(NumAniBase ani)
 {
     m_attStateFSM.MoveToState(SceneStateId.SSDest2Inplaced);
 }
 public void onMove2DestEnd(NumAniBase ani)
 {
     onMoveEndHandle(null);
 }
Пример #12
0
 protected void onStart2HandleAni(NumAniBase ani)
 {
     Ctx.m_instance.m_logSys.log("自己卡牌从发牌区域到手牌区域动画结束");
     m_onEnterHandleEntryDisp.dispatchEvent(this.m_card);
 }
Пример #13
0
 public void onMove2DestEnd(NumAniBase ani)
 {
     onMoveEndHandle(null);
 }
Пример #14
0
 // 开始卡牌动画播放结束
 protected void onEnemyFaPaiAniEnd(NumAniBase ani)
 {
     m_onEnterHandleEntryDisp.dispatchEvent(this.m_card);
     Ctx.m_instance.m_logSys.log("Enemy 卡牌从发牌区域到手牌区域动画结束");
 }
Пример #15
0
 // 特效移动到终点
 protected void onMoveToDest(NumAniBase ani)
 {
     m_moveDestEventDispatch.dispatchEvent(this);
 }
Пример #16
0
        virtual protected void onOneAniEndHandle(NumAniBase ani)
        {

        }
Пример #17
0
 // 特效移动到终点
 protected void onMoveToDest(NumAniBase ani)
 {
     m_moveDestEventDispatch.dispatchEvent(this);
 }