mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-06 13:15:55 +00:00
Formatting
This commit is contained in:
parent
2a016fd30c
commit
c50450f6b8
1 changed files with 3 additions and 6 deletions
|
|
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue