public void EndWave() { if (curWave == maxWaves) { Victory(); } else { builder.enabled = true; builder.UpdateResources(creditsWave * curWave, basesWave * curWave); curWave++; } wave.text = "Wave " + curWave + "/" + maxWaves; pc.ChangeAmmo(150); pc.ChangeHealth(100); }