forked from Wireline-Studios/JourneyProject
@@ -15,9 +15,6 @@ 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()
|
||||
{
|
||||
@@ -101,16 +98,10 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user