Ejemplo 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();
    }
Ejemplo n.º 2
0
 void DelayShowPlayerFinishTask()
 {
     XkGameCtrl.OnPlayerFinishTask();         //goto jiFenPanel.
     MakeOtherClientShowFinishTask();
 }