コード例 #1
0
    public void EndDay()
    {
        nightCover.SetActive(true);
        ++currentDay;
        time.GoToNight();
        map.Generate(seed + currentDay);
        camp.NextDay();
        player.Rest();

        audiosource.clip = endDaySound;
        audiosource.Play();

        if (camp.win)
        {
            OnWin();
        }
        else if (camp.gameOver)
        {
            OnLose();
        }
    }