Esempio n. 1
0
        public void PlayerJoined(int photonId, string[] cards)
        {
            MultiplayerHolder m = new MultiplayerHolder();

            m.OwnerId = photonId;
            for (int i = 0; i < cards.Length; i++)
            {
                Debug.Log("PlayerJoined");
                Card c = CreateCardMaster(cards[i]);
                if (c == null)
                {
                    continue;
                }

                m.RegisterCard(c);
                //Rpc
            }
        }
Esempio n. 2
0
        public Card GetCard(int instId, int ownerId)
        {
            MultiplayerHolder h = GetHolder(ownerId);

            return(h.GetCard(instId));
        }