What is the best way to optimize FSM Process ?
i mean in my game, making a complete level, wich requires in a lot of differents events for story, using on trigger enter to lunch them, many enemies, how are calculating there own trajectories when they are offscreen, and bonuses how are doing simple rotation waiting that player comes to take them....
how can i simply make all these scripts not called as long as i don't need them ?
i seen a lot of possibilities, like global event " Become visible" and "Become Invisble", but i don't know how they are intendended to be use, also run FSm and Finnish FSM...
because i haver never been so far in programming, i'm actually confront the problem of FPS very low, caused by physic or other useless tasks.