示例#1
0
 public void Update()
 {
     ++mSkillUseFrame;
     if (!isCasting)
     {
         if (mSkillUseFrame > mSkillConfig.cd)
         {
             isInCd = false;
         }
         return;
     }
     if (isPreparation && mSkillUseFrame > mSkillConfig.prepareTime)
     {
         isPreparation = false;
         OnSkill();
     }
     if (!isPreparation && mSkillUseFrame > mSkillConfig.prepareTime + mSkillConfig.continousTime)
     {
         isCasting = false;
         mHdlOnFinish.Invoke(skillId);
         mUnit.EnterIdle();
     }
 }
示例#2
0
 public override void Entered(object param)
 {
     mUnitBase.EnterIdle();
 }