diff --git a/Scripts/Components/FSM/Player/PlayerGrazingModule.cs b/Scripts/Components/FSM/Player/PlayerGrazingModule.cs index 88f21fbc..da75a7dd 100644 --- a/Scripts/Components/FSM/Player/PlayerGrazingModule.cs +++ b/Scripts/Components/FSM/Player/PlayerGrazingModule.cs @@ -6,9 +6,9 @@ namespace Cirno.Scripts.Components.FSM.Player; public partial class PlayerGrazingModule : PlayerArea2DModule { [Export] public BulletOwner Owner { get; private set; } = BulletOwner.Player; - + [Export] public ActorResourceProvider Shield { get; private set; } - + private bool _enabled = false; public bool Enabled @@ -21,7 +21,6 @@ public partial class PlayerGrazingModule : PlayerArea2DModule } } - public override void EnterState(PlayerState state) { Enabled = true; @@ -38,7 +37,7 @@ public partial class PlayerGrazingModule : PlayerArea2DModule if (bullet.BulletOwner is BulletOwner.Player) return; GD.Print("Grazed"); - + bullet.Graze(); //bullet.IsGrazed = true; Shield.CurrentResource += bullet.BulletInfo.GrazeValue; @@ -56,11 +55,9 @@ public partial class PlayerGrazingModule : PlayerArea2DModule public override void Process(double delta) { - } public override void PhysicsProcess(double delta) { - } } \ No newline at end of file