Ejemplo n.º 1
0
 //if player is in vision, stop movement
 void FixedUpdate()
 {
     if (gameObject.tag == "Enemy" && IsPlayerInFOV())
     {
         enemyFoundEvent.Invoke(GameObject.FindGameObjectWithTag("Player").transform.position);
     }
 }