Rocket deals damage

This commit is contained in:
Garrett Kaiser
2026-01-29 15:30:38 -08:00
parent 2ae2697845
commit 65001c0ecb
5 changed files with 30 additions and 3 deletions

View File

@@ -15,6 +15,9 @@ public class SteampunkBoss : MonoBehaviour
public GameObject LungeHitbox;
public float lungeBackup;
public GameObject Rocket;
public bool rocketShot = false;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
@@ -98,10 +101,16 @@ public class SteampunkBoss : MonoBehaviour
{
transform.position = Vector3.MoveTowards(transform.position, TargetPosition, -30 * Time.deltaTime);
}
else if (!rocketShot)
{
Instantiate(Rocket, transform.position, transform.rotation);
rocketShot = true;
}
stallTimer -= Time.deltaTime;
if (stallTimer <= 0)
{
setposition = false;
rocketShot = false;
}
}