2025-03-06 10:27:06 +01:00
|
|
|
|
using System.Threading;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Cirno.Scripts.Enums;
|
|
|
|
|
|
using Godot;
|
|
|
|
|
|
using GTweens.Builders;
|
|
|
|
|
|
using GTweens.Tweens;
|
|
|
|
|
|
using GTweensGodot.Extensions;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Cirno.Scripts.Components.FSM.Elevator;
|
|
|
|
|
|
|
2025-03-06 11:34:45 +01:00
|
|
|
|
public partial class Descending : ElevatorMovementState
|
2025-03-06 10:27:06 +01:00
|
|
|
|
{
|
|
|
|
|
|
public override ElevatorState StateId => ElevatorState.Descending;
|
|
|
|
|
|
|
2025-03-06 11:34:45 +01:00
|
|
|
|
protected override Vector2 StartingPosition => MainObject.Top;
|
|
|
|
|
|
protected override Vector2 EndingPosition => MainObject.Bottom;
|
|
|
|
|
|
protected override ElevatorState EndState => ElevatorState.Bottom;
|
2025-03-11 15:03:44 +01:00
|
|
|
|
|
2025-03-06 10:27:06 +01:00
|
|
|
|
}
|