public static void OnPlayerGameOver() { PlayerCreatNet.IsDisconnected = true; PlayerCreatNet.IsBackMoveScence = true; NetworkServerNet netScript = NetworkServerNet.GetInstance(); if (netScript != null) { netScript.SetIsDisconnect(); } }
void CheckIsBackMovieScene() { if (Application.loadedLevel != (int)GameLeve.Movie) { playerLeaveCount++; //if(FreeModeCtrl.IsServer && playerLeaveCount >= CountLinkPlayer) ScreenLog.Log("connections.length " + Network.connections.Length); if (FreeModeCtrl.IsServer && Network.connections.Length <= 1) { ScreenLog.Log("CheckIsBackMovieScene -> loading movie..."); CountLinkPlayer = 0; playerLeaveCount = 0; NetworkServerNet netScript = NetworkServerNet.GetInstance(); if (netScript != null) { netScript.SetIsDisconnect(); } XkGameCtrl.IsLoadingLevel = true; Application.LoadLevel((int)GameLeve.Movie); } } }