private void Start() { vM = FindObjectOfType <ValueManagement>(); pM = FindObjectOfType <PopupManagement>(); dM = FindObjectOfType <DateManagement>(); currentDayIndex = dM.GetCurrentDayIndex(); currentWeekIndex = dM.GetCurrentWeek(); LoadButtons(); }
private void Start() { vM = FindObjectOfType <ValueManagement>(); string[] values = vM.GetNames(); first.text = values[1]; weekly.text = values[2]; habit.text = values[0]; }
private void Start() { vM = FindObjectOfType <ValueManagement>(); curDay = FindObjectOfType <DateManagement>().GetCurrentDayIndex(); if (vM.GetDayJournalOfIndex(curDay) != "") { inputField.text = vM.GetDayJournalOfIndex(curDay); } }
private void Start() { vM = FindObjectOfType <ValueManagement>(); curWeekIndex = FindObjectOfType <DateManagement>().GetCurrentWeek(); if (vM.GetDayJournalOfIndex(curWeekIndex - 1) != "") { inputField.text = vM.GetWeekJournalOfIndex(curWeekIndex); } }
private void Start() { vM = FindObjectOfType <ValueManagement>(); pM = FindObjectOfType <PopupManagement>(); todayIndex = FindObjectOfType <DateManagement>().GetCurrentDayIndex(); DetermineYesterdayIndex(); FillInValueTexts(); ShowYesterdayOrInstructions(); ShouldShowBlocksForToday(); ShouldSecondToday(); }
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(); }
private void Start() { vM = FindObjectOfType <ValueManagement>(); dM = FindObjectOfType <DateManagement>(); curDayIndex = dM.GetCurrentDayIndex(); curWeekIndex = dM.GetCurrentWeek(); dayLength = vM.GetDayLength(); weekLength = vM.GetWeekLength(); ShowDay(); showWeekIndex = curWeekIndex; }
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; }
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(); }
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(); }
private void Start() { vM = FindObjectOfType <ValueManagement>(); sL = FindObjectOfType <SceneLoader>(); dM = FindObjectOfType <DateManagement>(); }
private void Start() { vM = FindObjectOfType <ValueManagement>(); }
private void Start() { sL = GetComponent <SceneLoader>(); vM = GetComponent <ValueManagement>(); willpower = GetComponent <Willpower>(); }