private void Start() { if (currentRoomDisplay != null) { currentRoomDisplay.text = PhotonNetwork.CurrentRoom.Name; } // initialise convenience methods foreach (CardsZone zone in zones) { if (zone.localZoneType == CardsZone.LocalZoneType.MyDeck) { myDeck = zone; } if (zone.localZoneType == CardsZone.LocalZoneType.MyHand) { myHand = zone; } } }
public int ResolveLocalZoneToRemote(CardsZone localZone) { Dictionary <int, CardsZone.LocalZoneType> zoneMap = localPlayerZoneMap; return(zoneMap.FirstOrDefault(x => x.Value == localZone.localZoneType).Key); }