void Update() { //-60 seconds so updates once per minute if (Time.timeSinceLevelLoad - lastTimeModifier >= 1 && hasBegan) { lastTimeModifier = (int)Time.timeSinceLevelLoad; //currentHealthModifier += healthModifierIncrement; foreach (GameObject spawn in m_allSpawnPoints) { EnemySpawnPointScript spawnPoint = spawn.GetComponent <EnemySpawnPointScript>(); spawnPoint.SetModifier(currentHealthModifier); } } if (Network.isServer && m_allSpawnPoints.Length != 0 && /*!shouldPause && shouldStart &&*/ (Time.timeSinceLevelLoad - lastTimeSpawn - secondsBetweenWaves) >= 1) // && hasBegan) { lastTimeSpawn = (int)Time.timeSinceLevelLoad; SendNextWaveToPoints(); } }