What is it in StateHandler.update() that causes so many calls to Physics.raycast? There's so many in there my games starting to lag again, so looking for a way to optimise this. I have a lot of npcs and a lot of hotspots, but the npcs are all just on dumb paths, no rigids, no pathfinding etc. AC 1.62.6,unity 2018.2.21f.
Comments
https://www.dropbox.com/s/f21k14gnryj1nqp/Snap%202018-09-07%20at%2009.48.24.png?dl=0
https://www.dropbox.com/s/p0qg7hxyq79tdl1/Snap%202018-09-07%20at%2009.48.31.png?dl=0