private void Awake() { timingString = FindObjectOfType <TimingString>(); if (GigSession) { Background.sprite = Backgrounds[GetBackgroundIndex()]; PracticeBackground.SetActive(false); SpotLights.SetActive(true); } else { timingString.MaxHealth = 0; } }
public void Restart() { RestartGame = false; ShopSystem.MyInventory.Clear(); FindObjectOfType <metalStatScript>().ResetAmount(); FindObjectOfType <moneyStatScript>().ResetAmount(); FindObjectOfType <angstStatScript>().ResetAmount(); FindObjectOfType <fameStatScript>().ResetAmount(); FindObjectOfType <energyStatScript>().ResetAmount(); NoteGenerator.Reset(); TimingString.Reset(); ToEndGame = false; day = 1; week = 1; if (SceneManager.GetActiveScene().name != HUBScene) { LoadHUB(); } }