Esempio n. 1
0
    [RPC] void NetCtrlMakeOtherClientShowFinishTask(int key = 0)
    {
        if (key == 1)
        {
            if (Network.peerType != NetworkPeerType.Server)
            {
                return;
            }
            else
            {
                CountGameOver++;
                if (CountGameOver < Network.connections.Length)
                {
                    return;
                }
            }
        }

        IsMakeClientShowFinishTask = true;
        if (GameOverCtrl.IsShowGameOver)
        {
            return;
        }

        if (key == 1)
        {
            GameOverCtrl.IsShowGameOver = true;
        }
        XkGameCtrl.OnPlayerFinishTask();
    }
Esempio n. 2
0
 void DelayShowPlayerFinishTask()
 {
     XkGameCtrl.OnPlayerFinishTask();         //goto jiFenPanel.
     MakeOtherClientShowFinishTask();
 }