Example #1
0
 void OnCollisionExit(Collision collision)
 {
     if (collision.gameObject == arena) //if player is exiting collision with arena then
     {
         evm.EndRound();
     }
 }
Example #2
0
 void OnTriggerExit(Collider collision)
 {
     if (collision.gameObject == arena) //if player is exiting collision with arena then
     {
         evm.EndRound(this.gameObject);
     }
 }