Hi, my functions do not work and they keep working then not working. It wants me to add semicolons where I start the function, and it wants me to add brackets to where I already have them.
This is my script:
function CalculateFireRate () {
MagSize=CurrentAmmo;
ShotsPerSecond= ShotsPerMinute/60;
fireDelayCalculator= ShotsPerSecond*100;
fireDelay= 100/fireDelayCalculator;
}
function OnGUI () {
AmmoText.text = "Ammo: " + CurrentAmmo + "/" + MaxAmmo.ToString();
FireRateText.text = "Fire Rate: " + FireRate;
}