public override void End(MovementBehaviourManager behaviourManager) { base.End(behaviourManager); ObjectToMove.LocalPosition = Position; ObjectToMove.RigidBody.FullLinearStop(); }
public virtual void End(MovementBehaviourManager behaviourManager) { foreach (KeyValuePair <string, MovementBehaviour> pair in DependentBehaviours) { pair.Value.Completed = true; behaviourManager.RemoveBehaviour(pair); } }
public override void End(MovementBehaviourManager behaviourManager) { base.End(behaviourManager); ObjectToRotate.RigidBody.FullAngularStop(); }