add: working rocket launcher
fix: rocket launcher projectile update: now all weapons are ready to shoot at start
This commit is contained in:
@@ -15,6 +15,10 @@ public class RocketLauncher : Weapon
|
||||
}
|
||||
}
|
||||
|
||||
void Start() {
|
||||
if (fireRate != 0) currentDelay = 1 / fireRate;
|
||||
}
|
||||
|
||||
void Update() {
|
||||
if (fireRate != 0) currentDelay = Mathf.Clamp(currentDelay += Time.deltaTime, 0, 1 / fireRate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user