SupaLidlGame/Items/Weapons/Sword.cs

28 lines
533 B
C#
Raw Normal View History

2022-11-18 13:53:51 -08:00
using Godot;
using SupaLidlGame.BoundingBoxes;
2022-11-13 19:52:09 -08:00
using SupaLidlGame.Characters;
namespace SupaLidlGame.Items.Weapons
{
public partial class Sword : Weapon
{
2022-11-18 13:53:51 -08:00
[Export]
public Hitbox Hitbox { get; set; }
2022-11-13 19:52:09 -08:00
public override void Equip(Character character)
{
base.Equip(character);
}
public override void Use()
{
2022-11-18 13:53:51 -08:00
Hitbox.IsEnabled = true;
}
public override void Deuse()
{
Hitbox.IsEnabled = false;
2022-11-13 19:52:09 -08:00
}
}
}