コード例 #1
0
    private void Awake()
    {
        timingString = FindObjectOfType <TimingString>();

        if (GigSession)
        {
            Background.sprite = Backgrounds[GetBackgroundIndex()];
            PracticeBackground.SetActive(false);
            SpotLights.SetActive(true);
        }
        else
        {
            timingString.MaxHealth = 0;
        }
    }
コード例 #2
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();
        }
    }