Boss healthbar
This commit is contained in:
@@ -57,7 +57,7 @@ public partial class Player2 : CharacterBody3D
|
||||
private async void Fire()
|
||||
{
|
||||
var projectile = _fireProjectile.Instantiate<Projectile>();
|
||||
projectile.Position = Position + new Vector3(0f, 1f, -3f);
|
||||
projectile.Position = Position + new Vector3(0f, 1f, -1f);
|
||||
GetParent().AddChild(projectile);
|
||||
CanShoot = false;
|
||||
await ToSignal(GetTree().CreateTimer(projectile.Cooldown), "timeout");
|
||||
@@ -67,7 +67,7 @@ public partial class Player2 : CharacterBody3D
|
||||
private async void AltFire()
|
||||
{
|
||||
var projectile = _altFireProjectile.Instantiate<Projectile>();
|
||||
projectile.Position = Position + new Vector3(0f, 1f, -3f);
|
||||
projectile.Position = Position + new Vector3(0f, 1f, -1f);
|
||||
GetParent().AddChild(projectile);
|
||||
CanShoot = false;
|
||||
await ToSignal(GetTree().CreateTimer(projectile.Cooldown), "timeout");
|
||||
|
||||
Reference in New Issue
Block a user