protected override void _onEnter(GuardAI ai) { attackEndTime = Time.time + ai.attackTime; ai.GetComponent <ThirdPersonCharacter>().TriggerAttack(); }
protected override void _onEnter(GuardAI ai) { ai.GetComponent <NavMeshAgent>().speed = ai.jogSpeed; }
protected override void _onExit(GuardAI ai) { ai.GetComponent <NavMeshAgent>().speed = ai.walkSpeed; }
protected override void _onEnter(GuardAI ai) { ai.GetComponent <NavMeshAgent>().speed = ai.sprintSpeed; ai.sfx.PlayAlert(); }