Assambra / Free-MMORPG

MIT License
12 stars 5 forks source link

We can use GameState.Lobby/Game to decide if the NetworkManagerAccount active and connected #68

Closed Assambra closed 8 months ago

Assambra commented 8 months ago
Assambra commented 8 months ago

We don't use the GameState because it is intended more for things that have to be constantly checked in the Update() cycle. Otherwise we would always have to check or use bool variables. Therefore we use the OnSceneChanged event where we also decide the GameState lobby and game.

Since the NetworkManagerAccount is now disabled on the "GameState.Game" we then have to find a solution for #7