void LevelReset() { // Increment the timer. _timer += Time.deltaTime; //If the timer is greater than or equal to the time before the level resets... if (_timer >= resetAfterDeathTime) { // ... reset the level. // sceneFadeInOut.EndScene(); } }