File tree Expand file tree Collapse file tree
Assets/BossRoom/Scripts/Client/Game/State Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,19 +10,6 @@ public class ClientPostGameState : GameStateBehaviour
1010 {
1111 public override GameState ActiveState { get { return GameState . PostGame ; } }
1212
13- protected override void Start ( )
14- {
15- base . Start ( ) ;
16-
17- //it is common for the user to get dumped back to main menu from here (i.e., if the host decides not to play again), and
18- //it is a little funny to display a "Connection to Host Lost" message in that case. The best thing would probably be to
19- //display a "Host Abandoned the Game" message, but this would require some more plumbing (an RPC from the host before it quit,
20- //containing that information).
21- //In the meantime, we just set "UserRequested" to suppress the Disconnected error popup.
22- var portalGO = GameObject . FindGameObjectWithTag ( "GameNetPortal" ) ;
23- portalGO . GetComponent < ClientGameNetPortal > ( ) . DisconnectReason . SetDisconnectReason ( ConnectStatus . UserRequestedDisconnect ) ;
24- }
25-
2613 public override void OnNetworkSpawn ( )
2714 {
2815 if ( ! IsClient )
You can’t perform that action at this time.
0 commit comments