protected override void OnGameStarted() { if (NetworkClient.Instance.IsHost) { gameDataManager.Shuffle(); gameDataManager.DealCardValuesToPlayer(localPlayer, Constants.PLAYER_INITIAL_CARDS); gameDataManager.DealCardValuesToPlayer(remotePlayer, Constants.PLAYER_INITIAL_CARDS); gameState = GameState.TurnStarted; gameDataManager.SetGameState(gameState); netCode.ModifyGameData(gameDataManager.EncryptedData()); } cardAnimator.DealDisplayingCards(localPlayer, Constants.PLAYER_INITIAL_CARDS); cardAnimator.DealDisplayingCards(remotePlayer, Constants.PLAYER_INITIAL_CARDS); //ANIMAL PORTION //gameDataManager.ShuffleAnimals(); Debug.Log("on game started!"); // gameDataManager.DealAnimalValuesToPlayer(localPlayer, 0); // gameDataManager.DealAnimalValuesToPlayer(remotePlayer, 1); // //the actual ui portion cardAnimator.DealDisplayingAnimalCard(localPlayer, 0); cardAnimator.DealDisplayingAnimalCard(remotePlayer, 1); gameState = GameState.TurnStarted; }
protected override void OnGameStarted() { if (NetworkClient.Instance.IsHost) { gameDataManager.Shuffle(); gameDataManager.DealCardValuesToPlayer(localPlayer, Constants.PLAYER_INITIAL_CARDS); gameDataManager.DealCardValuesToPlayer(remotePlayer, Constants.PLAYER_INITIAL_CARDS); gameState = GameState.TurnStarted; gameDataManager.SetGameState(gameState); netCode.ModifyGameData(gameDataManager.EncryptedData()); } cardAnimator.DealDisplayingCards(localPlayer, Constants.PLAYER_INITIAL_CARDS); cardAnimator.DealDisplayingCards(remotePlayer, Constants.PLAYER_INITIAL_CARDS); }