2023-05-26 22:28:08 -07:00
|
|
|
using Godot;
|
|
|
|
|
|
|
|
namespace SupaLidlGame.State.Weapon
|
|
|
|
{
|
|
|
|
public partial class RangedIdleState : WeaponState
|
|
|
|
{
|
|
|
|
[Export]
|
|
|
|
public RangedFireState FireState { get; set; }
|
|
|
|
|
2023-05-28 10:57:23 -07:00
|
|
|
[Export]
|
|
|
|
public Items.Weapons.Ranged Weapon { get; set; }
|
|
|
|
|
|
|
|
public override IState<WeaponState> Enter(IState<WeaponState> prev)
|
|
|
|
{
|
|
|
|
Weapon.Visible = !Weapon.ShouldHideIdle;
|
|
|
|
return null;
|
|
|
|
}
|
2023-05-26 22:28:08 -07:00
|
|
|
|
|
|
|
public override WeaponState Use()
|
|
|
|
{
|
|
|
|
return FireState;
|
|
|
|
}
|
|
|
|
|
|
|
|
public override void Exit(IState<WeaponState> nextState)
|
|
|
|
{
|
2023-05-28 10:57:23 -07:00
|
|
|
Weapon.Visible = true;
|
2023-05-26 22:28:08 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|