Unity Player Management Setup
Aug 25, 2022
There are many ways to handle player management. Here is what I would consider the preferred way…
This is an example of a clean player management setup:
The idea is that the Input Actions Script handles the inputs, the Player Management Script handles the processes triggered by the inputs, and the Player Script performs the actions of the processes on the Game Object.
In this case, we want a simple movement script. Here’s the Input Action panel:
And here’s the script behind the Player Management and the Player:
Simple and clean and takes only a few minutes to spin up a prototype.