StopForceBehavior¶
This is a public method that aims to cleanly stop all forced behaviors or a behavior that uses a coroutine. Nothing happens if it's a dummy.
forcebehavioris set to nullbehaviorroutineis stopped then set to null- If we aren't
inevent, StopForceMove is called on the entity - entity.
overrideonlyflipis set to false if it was true attackingis set to false- If it's an Enemy and we aren't
inevent, the entity.spriteangles are set to (0.0, the y FlipAngle of the entity, 0.0)