Ejemplo n.º 1
0
 /// <summary>
 /// Used when player is joining, tells player to open the door if it is opened.
 /// </summary>
 public void UpdateNewPlayer(NetworkConnection playerConn)
 {
     if (!IsClosed)
     {
         DoorUpdateMessage.Send(playerConn, gameObject, DoorUpdateType.Open, true);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Used when player is joining, tells player to open the door if it is opened.
 /// </summary>
 /// <param name="playerGameObject">game object of the player to inform</param>
 public void NotifyPlayer(GameObject playerGameObject)
 {
     if (IsOpened)
     {
         DoorUpdateMessage.Send(playerGameObject, gameObject, DoorUpdateType.Open, true);
     }
 }