//Master only public void PlayerJoined(int photonId, string[] cards) { MultiplayerHolder m = new MultiplayerHolder(); m.ownerId = photonId; for (int i = 0; i < cards.Length; i++) { Card c = CreateCardMaster(cards[i]); if (c == null) { continue; } m.RegisterCard(c); //RPC } }
public Card GetCard(int instId, int ownerId) { MultiplayerHolder h = GetHolder(ownerId); return(h.GetCard(instId)); }