Beispiel #1
0
    IEnumerator WaitAndGo()
    {
        yield return(new WaitForSeconds(1f));

        if (FeatureController.Instance.featureStatus[FeatureController.Features.ArrestThief])
        {
            // Start arresting sequence
            ArrestUI.SetActive(true);
            RoomConfigurations[selectedRoom].HandCuff.SetActive(true);
            tutoCont.CheckTutorial(TutorialController.Tutorials.Arrest);
        }
        else
        {
            tutoCont.CloseTutorials();
            SoundManager.Instance.playSound(SoundManager.GameSounds.Win);
            ShowFireWorks();
            DayOverPanel.SetActive(true);
            FeatureController.Instance.AddFeaturePercentage(dayId);
            dayId++;
            PlayerPrefs.SetInt("DayId", dayId);
        }
    }