Exemplo n.º 1
0
        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;
                }
            }
        }
Exemplo n.º 2
0
        public int ResolveLocalZoneToRemote(CardsZone localZone)
        {
            Dictionary <int, CardsZone.LocalZoneType> zoneMap = localPlayerZoneMap;

            return(zoneMap.FirstOrDefault(x => x.Value == localZone.localZoneType).Key);
        }