2023-10-20 22:46:14 +08:00
|
|
|
using System;
|
2023-10-20 19:31:12 +08:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
2024-03-22 20:16:32 +08:00
|
|
|
using BITKit;
|
2023-10-20 22:46:14 +08:00
|
|
|
using BITKit.StateMachine;
|
2023-10-20 19:31:12 +08:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace BITFALL.Entities.Equipment.Universal.States
|
|
|
|
{
|
2023-10-20 22:46:14 +08:00
|
|
|
[Serializable]
|
2023-10-20 19:31:12 +08:00
|
|
|
public sealed class Draw:UseState
|
|
|
|
{
|
2024-03-22 20:16:32 +08:00
|
|
|
protected override void OnPlayEnd()
|
|
|
|
{
|
|
|
|
base.OnPlayEnd();
|
|
|
|
useController.TransitionState<Use>();
|
|
|
|
}
|
2023-10-20 19:31:12 +08:00
|
|
|
}
|
2023-10-20 22:46:14 +08:00
|
|
|
[Serializable]
|
2023-10-20 19:31:12 +08:00
|
|
|
public sealed class Use:UseState
|
|
|
|
{
|
2024-03-22 20:16:32 +08:00
|
|
|
protected override void OnPlayEnd()
|
|
|
|
{
|
|
|
|
base.OnPlayEnd();
|
|
|
|
useController.TransitionState<Exit>();
|
|
|
|
}
|
2023-10-20 19:31:12 +08:00
|
|
|
}
|
2023-10-20 22:46:14 +08:00
|
|
|
[Serializable]
|
2023-10-20 19:31:12 +08:00
|
|
|
public sealed class Exit:UseState
|
|
|
|
{
|
2024-03-22 20:16:32 +08:00
|
|
|
protected override void OnPlayEnd()
|
|
|
|
{
|
|
|
|
base.OnPlayEnd();
|
|
|
|
animancerComponent.Stop();
|
|
|
|
useController._playerEquipSelector.Cancel();
|
|
|
|
}
|
2023-10-20 19:31:12 +08:00
|
|
|
}
|
|
|
|
}
|