public virtual void InitializeLobbyPanel(LobbyPanelViewModel viewModel) { // This is called when a LobbyPanelViewModel is created viewModel.EnterRoom.Action = this.EnterRoomHandler; viewModel.QuitLobby.Action = this.QuitLobbyHandler; LobbyPanelViewModelManager.Add(viewModel); }
public override void QuitLobby(LobbyPanelViewModel viewModel) { base.QuitLobby(viewModel); // 进行登出 Publish(new NetLogout()); }
public override void EnterRoom(LobbyPanelViewModel viewModel) { base.EnterRoom(viewModel); Publish(new NetJoinOrCreateRoom() { RoomId = viewModel.RoomId }); }
public virtual void QuitLobby(LobbyPanelViewModel viewModel) { }
public virtual void EnterRoom(LobbyPanelViewModel viewModel) { }
public override void InitializeLobbyPanel(LobbyPanelViewModel viewModel) { base.InitializeLobbyPanel(viewModel); // This is called when a LobbyPanelViewModel is created }