Esempio n. 1
0
        public void StopMove()
        {
            if (IsMoving)
            {
                if (MyMovementGroup.IsNotNull())
                {
                    MyMovementGroup.Remove(this);
                }

                IsMoving    = false;
                StoppedTime = 0;

                IsCasting = false;
                if (OnStopMove.IsNotNull())
                {
                    OnStopMove();
                }
            }
        }
Esempio n. 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();
                }
            }
        }