Ejemplo n.º 1
0
 private void OnCollisionEnter(Collision collision)
 {
     if (collision.gameObject.CompareTag("Ground"))
     {
         isOnGround = true;
     }
     else if (collision.gameObject.CompareTag("Obstacle"))
     {
         Debug.Log("Game Over");
         gameOver = true;
         GameManagerMaster.CallEventGameOver();
     }
 }