public void StopMove() { if (IsMoving) { if (MyMovementGroup.IsNotNull()) { MyMovementGroup.Remove(this); } IsMoving = false; StoppedTime = 0; IsCasting = false; if (OnStopMove.IsNotNull()) { OnStopMove(); } } }
public void StopMove() { if (IsMoving) { forcePathfind = false; if (MyMovementGroup.IsNotNull()) { MyMovementGroup.Remove(this); } IsMoving = false; stopTime = 0; IsCasting = false; stuckTick = 0; if (OnStopMove.IsNotNull()) { OnStopMove(); } } }