public void Enter() { BirdAgent = Owner.GetComponent <NavMeshAgent>(); BirdAgent.autoBraking = true; Owner.ExcitedParticles.Play(); }
public void Enter() { BirdAgent = Owner.GetComponent <NavMeshAgent>(); BirdAgent.autoBraking = true; BirdAgent.speed = Owner.DefaultSpeed; patrolTime = Random.Range(Owner.MinMaxPatrolTime.x, Owner.MinMaxPatrolTime.y); GoToNextPoint(); }