public BLCard(EFLContext eflContext, CardHub cardHub, PresenceHub presenceHub, ILogger <BLCard> loggerRFIDScanner) { _eflContext = eflContext; _cardHub = cardHub; _presenceHub = presenceHub; _loggerRFIDScanner = loggerRFIDScanner; }
void GeneratePlayerCardQueue() { CardHub clientPlayerCards = GameObject.FindGameObjectWithTag("CardHub").GetComponent <CardHub>(); clientPlayerCards.aPlayerDeck.Clear(); clientPlayerCards.initializePlayerDeck(); }
void GenerateInfectionCardDeque() { CardHub clientInfectionCards = GameObject.FindGameObjectWithTag("CardHub").GetComponent <CardHub>(); clientInfectionCards.aInfectionDeck.Clear(); clientInfectionCards.initializeInfectionDeck(); }
void GenerateInfectionCardsForClientFromSavedGame() { Destroy(GameObject.FindGameObjectWithTag("InfectionCardStackManager")); GameObject infectionCardsStackGO = Instantiate(infectionCardsManagerPrefab); CardHub clientInfectionCards = infectionCardsStackGO.GetComponent <CardHub>(); Persistence.pe_infectionCardStack pe_infectionCardStack = GameManager.instance.pe_infectionCardStack; }
public CardController(EFLContext eflContext, CardHub cardHub, ILogger <CardController> logger, BLCard blCard) { _eflContext = eflContext; _cardHub = cardHub; _logger = logger; _blCard = blCard; }
void GeneratePlayerCardsForClientFromSavedGame() { Destroy(GameObject.FindGameObjectWithTag("PlayerCardStackManager")); GameObject playerCardsStackGO = Instantiate(playerCardsManagerPrefab); CardHub clientPlayerCards = playerCardsStackGO.GetComponent <CardHub>(); Persistence.pe_playerCardStack pe_playerCardStack = GameManager.instance.pe_playerCardStack; // clientPlayerCards.loadCardState(/* Load each player's cards */); }
public IEnumerator GenerateInfectionCardsForClient() { GameObject infectionCardsStackGO = Instantiate(infectionCardsManagerPrefab); CardHub clientInfectionCards = infectionCardsStackGO.GetComponent <CardHub>(); if (PhotonNetwork.isMasterClient) { yield return(new WaitForSeconds(5f)); GetComponent <PhotonView>().RPC("GenerateInfectionCardDeque", PhotonTargets.All, new object[] { }); } }
public IEnumerator GeneratePlayerCardsForClient() { Destroy(GameObject.FindGameObjectWithTag("PlayerCardStackManager")); GameObject playerCardsStackGO = Instantiate(playerCardsManagerPrefab); CardHub clientPlayerCards = playerCardsStackGO.GetComponent <CardHub>(); if (PhotonNetwork.isMasterClient) { yield return(new WaitForSeconds(5f)); GetComponent <PhotonView>().RPC("GeneratePlayerCardQueue", PhotonTargets.All, new object[] { }); } }