void FixedUpdate() { bool forceEarlyRefresh = GameObjectGrid.EveryoneIsDead() || GameObjectGrid.GridIsMonoChromatic(); if (frameCounter >= this.FramesPerIteration || forceEarlyRefresh) { lock (CommonHelperMethods.GlobalStateLock) { // Everyone wins GenePoolManager.RefreshTeamDNA(); } this.frameCounter = 0; } }