[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(); } } }
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(); } } }