/// <summary> /// 中止游戏 /// </summary> public void GameExit() { Debuger.Log(LOG_TAG, "GameExit()"); //因为PVP 模式中,还有其它玩家在玩, //所以应该只是让自己退出游戏 m_mgrFSP.SendGameExit(); }
/// <summary> /// exit the game /// </summary> public void GameExit() { MyLogger.Log(LOG_TAG, "GameExit()"); //because there might be other players in the game //so only the player self should exit the game mgrFSP.SendGameExit(); }
public void OnGUI() { if (m_mgrFSP != null) { GUILayout.Label("Client[" + m_playerId + "]: " + m_mgrFSP.GameState); } else { GUILayout.Label("Client[" + m_playerId + "]"); } GUILayout.Label("最近一次VKey:" + m_lastVKey); if (FSPServer.Instance.IsRunning) { if (GUILayout.Button("Start")) { Start(FSPServer.Instance.GetParam()); } } if (GUILayout.Button("SendRoundBegin")) { m_mgrFSP.SendRoundBegin(); } if (GUILayout.Button("SendControlStart")) { m_mgrFSP.SendControlStart(); } if (GUILayout.Button("SendPing")) { m_mgrFSP.SendFSP(FSPVKeyBase.PING, SGFRandom.Default.Range(1, 1000)); } if (GUILayout.Button("SendRoundEnd")) { m_mgrFSP.SendRoundEnd(); } if (GUILayout.Button("SendGameEnd")) { m_mgrFSP.SendGameEnd(); } if (GUILayout.Button("SendGameExit")) { m_mgrFSP.SendGameExit(); } }
public void GameExit() { m_fsp.SendGameExit(); }