What should I do in GameMode, GameState, and PlayerState?

I meant having a parent class “GameState” containing all the logic and utility functions which are going to be shared by all your game states.

Then create child classes of your parent “GameState” which have their **specific **features.

Then spawn the proper state when required.

1 Like