Beispiel #1
0
 void OnCollisionEnter(Collision collision)
 {
     if (collision.collider.name == player.name && globalManager.isDisguised())
     {
         player.WarpToPosition(outPosition.position);
     }
     else
     {
         globalManager.getMsg("Someone is guarding the door!\n Only guards can go through!");
     }
 }