IronWarrior / SuperCharacterController

Unity custom character controller
MIT License
762 stars 207 forks source link

Added an option to run the SCC's updates manually instead of in Update #14

Closed IronWarrior closed 8 years ago

IronWarrior commented 8 years ago

Setting the manualUpdateOnly property disables calling SingleUpdate in Update(). As well, there is now a delegate that is called after the single update method. This is useful if you need to verify the position of the SCC after all it's logic is done in a different script.

rubengc commented 8 years ago

Nice, more flexibility to the SSC

Why not make a preUpdate and postUpdate too?

IronWarrior commented 8 years ago

Yeah, I thought about adding in a variety of other events, but I didn't have a use case for them at the time (which is usually when I add new features, since I have a context for how they'd be used). But having more access/control to the SCC's main loop is definitely something I'd like to include, and events are super useful in general for that.