示例#1
0
    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);
            }
        }));
    }
示例#4
0
 public void UpdateOpponentGrid(Coordinates coordinates, SquareStates newState)
 {
     OpponentGrid.ChangeSquareState(coordinates, newState);
 }