示例#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;
                }
            }
        }
示例#2
0
        public int ResolveLocalZoneToRemote(CardsZone localZone)
        {
            Dictionary <int, CardsZone.LocalZoneType> zoneMap = localPlayerZoneMap;

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