thats why i said pseudo code, you have to make that function yourself, which also means you need to cast to your own GameState. or any other suggestion above.
just break down the steps like i did and work your way through
thats why i said pseudo code, you have to make that function yourself, which also means you need to cast to your own GameState. or any other suggestion above.
just break down the steps like i did and work your way through