Hi,
I’m working on an arcade car game, so i decided to create 3 script:
-
CarController class → this class contain all car behavior like car handling methods, die method and etc.
-
Player class → player object is a car so it needs CarController script and Player script. Player class contain all player behavior like score variable, Change score method and etc.
-
AI class → AI objects are car so they need CarController script and AI script. AI class contain all AI behaviour like chasing player method and etc.
So now what’s your idea is this method that i use good?!
Thanks.