Add Advanced and Elite Enemy prefabs; adjust attributes and implement projectile behavior

This commit is contained in:
2025-07-12 22:38:21 +02:00
parent e3e58f89cb
commit 6511a5586e
16 changed files with 1438 additions and 134 deletions

View File

@@ -19,6 +19,11 @@ namespace Systems
private void Update()
{
if (!target)
{
AquirePlayerTarget();
}
if (!target || weapons.Count == 0) return;
foreach (var weapon in weapons)
@@ -26,5 +31,11 @@ namespace Systems
weapon.Target = target.position;
}
}
private void AquirePlayerTarget()
{
var player = GameManager.Instance.Player;
target = player ? player.transform : null;
}
}
}