Why do we get a reference to MoveAction through the Unit script? Can’t we just set the getter method inside MoveAction itself?
Best practices, mostly.
By getting the MoveAction through the Unit script, we have flexibility if later down the road we change where Actions are stored.
For example: You might want to make Actions be a ScriptableObject that can be attached in an array of actions.
6 Likes
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.