Esempio n. 1
0
        private void StopMovement()
        {
            movementDirection     = Direction.None;
            nextMovementDirection = Direction.None;
            continuationDirection = Direction.None;

            mapMovingEntity.StopAllCoroutines();
            mapMovingEntity.nodeFrom = startingNode;
            mapMovingEntity.nodeTo   = null;
        }
Esempio n. 2
0
		public void SetIdleInBaseState()
		{
			currentMovementType?.Deactivate();
			state = EnemyState.Idle;

			fleeingEnemy.SetActive(false);
			body.SetActive(true);
			mapMovingEntity.StopAllCoroutines();
			mapMovingEntity.movementSpeed.Value = idleMovementSpeed;
			mapMovingEntity.nodeFrom = baseNode;

			ActivateMovementType(idleMovement);
		}