Exemplo n.º 1
0
 public bool OnSeeEnemy(Transform enemy)
 {
     // agent.audioSource.PlayOneShot(AudioManager.getInstance().enemyAlert);
     agent.target = enemy.transform;
     agent.GetLastTargetPosition().position = enemy.transform.position;
     // agent.setState(agent.combatState);
     return(false);
 }