public void OnBossDie() { if (GameController.Instance.type == FightType.Person) { OnGameSuccess(); } else { if (GameController.Instance.isMaster) //只在主机端做成功检测 { OnGameSuccess(); //向其他客户端发送游戏成功信息 fightController.SendGameState(new GameStateModel() { isSuccess = true }); } } }