예제 #1
0
    protected override void BeforeGameStart()
    {
        Debug.Log("SinglePlayerGameController BeforeGameStart");

        StartCoroutine(OpponentGrid.QueueReposition(() =>
        {
            PlayerGrid.Panel.alpha   = 1;
            OpponentGrid.Panel.alpha = 1;
        }));
    }
    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);
            }
        }));
    }