void CreateCardClient_call(string cardId, int instId, int photonId) { Card c = CreateCardClient(cardId, instId); if (c != null) { MultiplayerHolder h = GetHolder(photonId); h.RegisterCard(c); } }
//Master Only public void PlayerJoined(int photonId, string [] cards) { MultiplayerHolder m = new MultiplayerHolder(); m.ownerId = photonId; for (int i = 0; i < cards.Length - 1; i++) { Card c = CreateCardMaster(cards[i]); if (c == null) { continue; } m.RegisterCard(c); //RPC into client // Creating Starting Hand } }