https://claudiograssi.medium.com/unity-game-development-optimizing-code-with-switch-statements-9670cc364eea