- Home /
Organization question
I am trying to make my AI script more organized and easier to understand. I want to make all the different "modules" (movement,logic,targeting) in different classes but no matter what I have tried, it does not allow me to call the class or have them inherit enough data to function properly. I would be up to having them in a separate script but from what I have found it would require me to make a new object that has the script on it to call it. I want to have that all done on the script if possible.
Answer by Chepee73 · Mar 31, 2020 at 06:39 AM
If they aren't Monobehaviours you don't have to assign them to objects, you can have a State Machine for the different AI actions, or something like the Command pattern,If they aren't Monobehaviours then you don't need to assign them to objects, you could have a Finite State machine for each action of your AI, or something like the Command pattern.
Your answer
Follow this Question
Related Questions
An OS design issue: File types associated with their appropriate programs 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
C# declaring an array of transform arrays 1 Answer
Is there an elegant way to having single-player class methods within a multiplayer class? 1 Answer