So I have a player class with movement functionality, pretty standard, and want to organize that functionality into states using ENUMS.
Just wondering what the best way to do this would be? Having a base class / scriptable object maybe would work as it could then be added to different game objects further into the game. I could also just have it within the player, but this seems a bit reductive as I use game states w enums a lot and it makes sense to have a base for all GameObjects.
I have tried a couple things. I am decently familiar with unity, but I am used to programming in SFML which makes this problem a lot easier. I don’t know if I am missing something obvious here, but we shall see!
Thanks for reading and thinking about my question 🙂
Swaiba Faisal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.