Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send players back to their lobby on match end #715

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

toberge
Copy link
Contributor

@toberge toberge commented Jun 8, 2024

Closes #714

@toberge toberge marked this pull request as draft June 8, 2024 11:34
@toberge toberge force-pushed the feature/lobby-persistence branch from c96148d to 2bdc099 Compare June 8, 2024 13:05
@@ -338,6 +338,7 @@ private void ReturnToMainMenu()
PlayerInputManagerController.Singleton.ChangeInputMaps("Menu");

// Mirror pulls us to the main menu automatically
NetworkManager.singleton.StopHost();
if (isServer)
NetworkManager.singleton.ServerChangeScene(Scenes.Menu);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should turn this into server changing scene to menu and clients changing to client lobby

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at this (do non additive):
conn.Send(new SceneMessage() { sceneName = msg.sceneName, sceneOperation = SceneOperation.LoadAdditive });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Lobby persistence
1 participant