Fix capricorn projectile bug

This commit is contained in:
2023-09-08 12:46:23 -07:00
parent 9256c0a09e
commit f7008b40ff
21 changed files with 161 additions and 279 deletions

View File

@@ -4,7 +4,7 @@ using Godot;
public partial class FireAtPlayer : Timer
{
[Export]
private Area3D _enemy;
private BasicEnemy _enemy;
[Export]
private PackedScene _fireProjectile;
@@ -18,7 +18,7 @@ public partial class FireAtPlayer : Timer
var projectile = _fireProjectile.Instantiate<Projectile>() as EnemyBullet;
projectile.Rotation = new Vector3(0, _enemy.Rotation.Y, 0);
projectile.Position = _enemy.Position;
GetParent().AddChild(projectile);
AddChild(projectile);
}
}
}