예제 #1
0
    [RPC] void NetCtrlSendClientLoadGameLevel()
    {
        if (Network.peerType != NetworkPeerType.Client)
        {
            return;
        }

        if (Application.loadedLevel == (int)GameLevel.Movie)
        {
//			GameModeCtrl.GetInstance().ServerCallClientLoadingGame();
        }
        else
        {
            XunZhangZPCtrl.IsShouldStopJiFenPanel = true;
            if (XunZhangZPCtrl.IsOverPlayerZPXunZhang)
            {
                XunZhangZPCtrl.GetInstanceOne().CheckLianJiIsShouldStopJiFenPanel();
            }
        }
    }
예제 #2
0
    void EndPlayerKillNumCartoon()
    {
        if (IsEndPlayerKillNumCartoon)
        {
            return;
        }
        IsEndPlayerKillNumCartoon = true;
        Debug.Log("Unity:" + "EndPlayerKillNumCartoon...");

        XKGlobalData.GetInstance().StopAudioJiFenGunDong();
        if (XkGameCtrl.IsPlayGamePOne)
        {
            XunZhangZPCtrl.GetInstanceOne().ShowPlayerXunZhang();
        }

        if (XkGameCtrl.IsPlayGamePTwo)
        {
            XunZhangZPCtrl.GetInstanceTwo().ShowPlayerXunZhang();
        }
    }
    [RPC] void NetCtrlSendClientLoadGameLevel()
    {
        if (Network.peerType != NetworkPeerType.Client)
        {
            return;
        }

        if (SceneManager.GetActiveScene().buildIndex == (int)GameLevel.Movie)
        {
            GameModeCtrl.GetInstance().ServerCallClientLoadingGame();
        }
        else
        {
            XunZhangZPCtrl.IsShouldStopJiFenPanel = true;
            if (XunZhangZPCtrl.IsOverPlayerZPXunZhang)
            {
                XunZhangZPCtrl.GetInstanceOne().CheckLianJiIsShouldStopJiFenPanel();
            }
        }
    }