示例#1
0
    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);
    }
示例#2
0
 protected virtual void Awake()
 {
     skillDelayState = SkillDelayState.Start;
     timer           = 0.0f;
 }
示例#3
0
 // You have to this function In Work() function.
 protected void SetSkillDelayStateToEnd()
 {
     timer           = 0.0f;
     skillDelayState = SkillDelayState.End;
 }