예제 #1
0
    void UpdateWillpower()
    {
        var willNumber = willpower.GetWillpower();

        willpowerImage.sprite = willpowerImages[willpower.GetWillpowerState()];
        willpowerNumber.text  = willNumber.ToString();
        if (willNumber <= 0)
        {
            willpowerNumber.color = Colors.toggleGrayColor;
        }
        else
        {
            willpowerNumber.color = Colors.completeColor;
        }
    }
예제 #2
0
    void Start()
    {
        dM   = FindObjectOfType <DateManagement>();
        vM   = FindObjectOfType <ValueManagement>();
        will = FindObjectOfType <Willpower>();

        power = will.GetWillpower();
        //points = vM.GetPoints();
        FillUpCalendars();
        timeToWait       = FindObjectOfType <SceneLoader>().GetTimeToLoad();
        currentDayIndex  = dM.GetCurrentDayIndex();
        curDateNumber    = currentDayIndex + 1;
        currentWeekIndex = dM.GetCurrentWeek();
        weekIndex        = currentWeekIndex;
        InstantlyCreateCalendar();

        UpdateCheckpoints();
        UpdateSlowdowns();
        UpdateInsteads();
    }