Пример #1
0
        public void StopMove()
        {
            if (IsMoving)
            {
                if (MyMovementGroup.IsNotNull())
                {
                    MyMovementGroup.Remove(this);
                }

                IsMoving    = false;
                StoppedTime = 0;

                IsCasting = false;
                if (OnStopMove.IsNotNull())
                {
                    OnStopMove();
                }
            }
        }
Пример #2
0
        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();
                }
            }
        }