Пример #1
0
    // Changes the season.
    private IEnumerator ChangeSeason()
    {
        print("Pre Season Test");

        var fader = ScreenFader.Instance;

        fader.FadeTo(_currentSeason._transitionColour, _fadeOutDuration);

        yield return(new WaitForSeconds(_fadeOutDuration));

        print("Test");

        _currentSeason.EndSeason();

        // Changes current season index, ready for setup.
        _currentSeasonNum++;

        SetupSeasons();

        yield return(null);
    }