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(); } }
public override void Entered(object param) { mUnitBase.EnterIdle(); }