Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        if (DayController.CurrentDay > 9)
        {
            transform.Find("ContinueText").gameObject.SetActive(false);
            transform.Find("DayLabel").gameObject.SetActive(false);
            transform.Find("PlayAgain").gameObject.SetActive(true);
        }
        Day day = storiesByDay[DayController.CurrentDay];

        storyText.text = day.Story;

        if (Input.GetKeyDown(KeyCode.Return) && DayController.CurrentDay <= 9)
        {
            DayController.StartDay(day.Multiplier, day.Energy, DayController.CurrentDay >= 4);
        }
    }