protected bool UpdateStartDelayTimer() { //if (skillDelayState != SkillDelayState.Start) // return false; timer += Time.fixedDeltaTime; if (timer >= startDelayTime) { skillDelayState = SkillDelayState.Working; timer = 0.0f; return(false); } return(true); }
protected virtual void Awake() { skillDelayState = SkillDelayState.Start; timer = 0.0f; }
// You have to this function In Work() function. protected void SetSkillDelayStateToEnd() { timer = 0.0f; skillDelayState = SkillDelayState.End; }