protected override void BeforeGameStart() { Debug.Log("SinglePlayerGameController BeforeGameStart"); StartCoroutine(OpponentGrid.QueueReposition(() => { PlayerGrid.Panel.alpha = 1; OpponentGrid.Panel.alpha = 1; })); }
public void NetworkedCardInitialized(CardController card) { Debug.Log("NetworkedGameController NetworkedCardInitialized: " + card.Id); if (!card.networkView.isMine) { OpponentGrid.AddCard(card.gameObject); if (card.Id == Count - 1) { AfterInitialize(); } } }
protected override void BeforeGameStart() { Debug.Log("NetworkedPlayerGameController BeforeGameStart"); StartCoroutine(OpponentGrid.QueueReposition(() => { PlayerGrid.Panel.alpha = 1; OpponentGrid.Panel.alpha = 1; // At this point Initialization is complete meaning that the AnswerKey, // Player cards, and Opponent cards have all been created and synchronized _initializationComplete = true; if (Network.isServer) { networkView.RPC("GetSynchronizedStartTime", RPCMode.Others); } })); }
public void UpdateOpponentGrid(Coordinates coordinates, SquareStates newState) { OpponentGrid.ChangeSquareState(coordinates, newState); }