Exemplo n.º 1
0
 private void OnCollisionEnter(Collision other)
 {
     if (other.gameObject.tag == "Enemy")
     {
         Debug.Log("Ran into Enemy");
         PlayerMoveController pc = gameObject.GetComponent <PlayerMoveController>();
         if (pc != null)
         {
             // stop
             pc.StopMoving();
         }
     }
 }