Esempio n. 1
0
 public void OnEnter()
 {
     _navMeshAgent.enabled = true;
     _gatherer.DropAllResources();
     _animator.SetBool(FleeHash, true);
     _initialSpeed       = _navMeshAgent.speed;
     _navMeshAgent.speed = FLEE_SPEED;
     _particleSystem.Play();
 }