Пример #1
0
 private void Start()
 {
     vM = FindObjectOfType <ValueManagement>();
     pM = FindObjectOfType <PopupManagement>();
     dM = FindObjectOfType <DateManagement>();
     currentDayIndex  = dM.GetCurrentDayIndex();
     currentWeekIndex = dM.GetCurrentWeek();
     LoadButtons();
 }
Пример #2
0
    private void Start()
    {
        vM = FindObjectOfType <ValueManagement>();

        string[] values = vM.GetNames();
        first.text  = values[1];
        weekly.text = values[2];
        habit.text  = values[0];
    }
Пример #3
0
 private void Start()
 {
     vM     = FindObjectOfType <ValueManagement>();
     curDay = FindObjectOfType <DateManagement>().GetCurrentDayIndex();
     if (vM.GetDayJournalOfIndex(curDay) != "")
     {
         inputField.text = vM.GetDayJournalOfIndex(curDay);
     }
 }
Пример #4
0
 private void Start()
 {
     vM           = FindObjectOfType <ValueManagement>();
     curWeekIndex = FindObjectOfType <DateManagement>().GetCurrentWeek();
     if (vM.GetDayJournalOfIndex(curWeekIndex - 1) != "")
     {
         inputField.text = vM.GetWeekJournalOfIndex(curWeekIndex);
     }
 }
Пример #5
0
 private void Start()
 {
     vM         = FindObjectOfType <ValueManagement>();
     pM         = FindObjectOfType <PopupManagement>();
     todayIndex = FindObjectOfType <DateManagement>().GetCurrentDayIndex();
     DetermineYesterdayIndex();
     FillInValueTexts();
     ShowYesterdayOrInstructions();
     ShouldShowBlocksForToday();
     ShouldSecondToday();
 }
Пример #6
0
    private void Start()
    {
        dM = FindObjectOfType <DateManagement>();
        vM = FindObjectOfType <ValueManagement>();
        sL = FindObjectOfType <SceneLoader>();

        curDayIndex  = dM.GetCurrentDayIndex();
        curWeekIndex = dM.GetCurrentWeek();
        timeToLoad   = sL.GetTimeToLoad();
        InputFieldInit();
        DisableAllExcept(generalPanel);
        HideOrShowLastWeek();
        HideOrShowYesterday();
    }
Пример #7
0
    private void Start()
    {
        vM = FindObjectOfType <ValueManagement>();
        dM = FindObjectOfType <DateManagement>();

        curDayIndex  = dM.GetCurrentDayIndex();
        curWeekIndex = dM.GetCurrentWeek();
        dayLength    = vM.GetDayLength();
        weekLength   = vM.GetWeekLength();


        ShowDay();
        showWeekIndex = curWeekIndex;
    }
Пример #8
0
    private void Start()
    {
        vM                = FindObjectOfType <ValueManagement>();
        dM                = FindObjectOfType <DateManagement>();
        sL                = FindObjectOfType <SceneLoader>();
        pM                = FindObjectOfType <PopupManagement>();
        runDates          = vM.GetRunDates();
        runsFinishedState = vM.GetRunsFinishedState();

        slots[0] = slot0;
        slots[1] = slot1;
        slots[2] = slot2;
        slots[3] = slot3;
        slots[4] = slot4;
    }
Пример #9
0
    private void Start()
    {
        mov       = FindObjectOfType <PlayerMovement>();
        sL        = FindObjectOfType <SceneLoader>();
        pl        = FindObjectOfType <Player>();
        vM        = FindObjectOfType <ValueManagement>();
        bg        = FindObjectOfType <Background>();
        pLight    = FindObjectOfType <PlayerLight>();
        willpower = FindObjectOfType <Willpower>();
        dM        = FindObjectOfType <DateManagement>();


        TurnOffDev();
        fakeLeftButton.gameObject.SetActive(false);
        fakeRightButton.gameObject.SetActive(false);
        fakeJumpButton.gameObject.SetActive(false);
        cancelInsteadButton.gameObject.SetActive(false);

        ShowUI();
        ShowWillpowerGOs();
        //for testing
        //checkpointAllowed = vM.GetBoughtCheckpoints();
        //slowAllowed = vM.GetBoughtSlowdowns();
        //insteadAllowed = vM.GetBoughtInsteads();
        checkpointAllowed = 3;
        slowAllowed       = 3;
        insteadAllowed    = 3;
        ///////////////////////
        checkpointCount = PlayerPrefs.GetInt("checkpointCount", 0);
        slowCount       = PlayerPrefs.GetInt("slowCount", 0);
        insteadCount    = PlayerPrefs.GetInt("insteadCount", 0);

        UpdateWillpower();
        keyImage.color = Colors.toggleGrayColor;
        SkillsEnabled();
        ShouldShowInsteadText();
        UpdateInsteadSlots();

        ShouldShowSlowdownText();
        UpdateSlowSlots();

        ShouldShowCheckpointUIAndText();
        ShouldShowLoadCheckpoint();
        UpdateCheckSlots();

        dayNumber.text = "Day " + sL.GetCurrentSceneName();
    }
Пример #10
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();
    }
Пример #11
0
 private void Start()
 {
     vM = FindObjectOfType <ValueManagement>();
     sL = FindObjectOfType <SceneLoader>();
     dM = FindObjectOfType <DateManagement>();
 }
Пример #12
0
 private void Start()
 {
     vM = FindObjectOfType <ValueManagement>();
 }
Пример #13
0
 private void Start()
 {
     sL        = GetComponent <SceneLoader>();
     vM        = GetComponent <ValueManagement>();
     willpower = GetComponent <Willpower>();
 }