// Token: 0x060019F6 RID: 6646 RVA: 0x000FD688 File Offset: 0x000FB888 public static void WriteToGlobals(DatingSaveData data) { DatingGlobals.Affection = data.affection; DatingGlobals.AffectionLevel = data.affectionLevel; foreach (int complimentID in data.complimentGiven) { DatingGlobals.SetComplimentGiven(complimentID, true); } foreach (int checkID in data.suitorCheck) { DatingGlobals.SetSuitorCheck(checkID, true); } DatingGlobals.SuitorProgress = data.suitorProgress; foreach (KeyValuePair <int, int> keyValuePair in data.suitorTrait) { DatingGlobals.SetSuitorTrait(keyValuePair.Key, keyValuePair.Value); } foreach (int topicID in data.topicDiscussed) { DatingGlobals.SetTopicDiscussed(topicID, true); } foreach (KeyValuePair <int, int> keyValuePair2 in data.traitDemonstrated) { DatingGlobals.SetTraitDemonstrated(keyValuePair2.Key, keyValuePair2.Value); } }
// Token: 0x06000A04 RID: 2564 RVA: 0x0004F0C0 File Offset: 0x0004D2C0 private void Update() { if (!this.Show) { if (this.Window.gameObject.activeInHierarchy) { if (this.Window.localScale.x > 0.1f) { this.Window.localScale = Vector3.Lerp(this.Window.localScale, Vector3.zero, Time.deltaTime * 10f); return; } this.Window.localScale = Vector3.zero; this.Window.gameObject.SetActive(false); return; } } else { this.Window.localScale = Vector3.Lerp(this.Window.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f); if (this.Ready) { if (this.InputManager.TappedUp) { this.Selected--; if (this.Selected == 10) { this.Selected = 9; } this.UpdateHighlight(); } if (this.InputManager.TappedDown) { this.Selected++; if (this.Selected == 10) { this.Selected = 11; } this.UpdateHighlight(); } if (Input.GetButtonDown("A")) { if (this.Selected == 1) { if (!this.Checks[1].activeInHierarchy) { StudentGlobals.CustomSuitorHair = 55; DatingGlobals.SetSuitorCheck(1, true); DatingGlobals.SetSuitorCheck(2, false); this.Checks[1].SetActive(true); this.Checks[2].SetActive(false); } else { StudentGlobals.CustomSuitorHair = 0; DatingGlobals.SetSuitorCheck(1, false); this.Checks[1].SetActive(false); } } else if (this.Selected == 2) { if (!this.Checks[2].activeInHierarchy) { StudentGlobals.CustomSuitorHair = 56; DatingGlobals.SetSuitorCheck(1, false); DatingGlobals.SetSuitorCheck(2, true); this.Checks[1].SetActive(false); this.Checks[2].SetActive(true); } else { StudentGlobals.CustomSuitorHair = 0; DatingGlobals.SetSuitorCheck(2, false); this.Checks[2].SetActive(false); } } else if (this.Selected == 3) { if (!this.Checks[3].activeInHierarchy) { StudentGlobals.CustomSuitorAccessory = 17; DatingGlobals.SetSuitorCheck(3, true); DatingGlobals.SetSuitorCheck(4, false); this.Checks[3].SetActive(true); this.Checks[4].SetActive(false); } else { StudentGlobals.CustomSuitorAccessory = 0; DatingGlobals.SetSuitorCheck(3, false); this.Checks[3].SetActive(false); } } else if (this.Selected == 4) { if (!this.Checks[4].activeInHierarchy) { StudentGlobals.CustomSuitorAccessory = 1; DatingGlobals.SetSuitorCheck(3, false); DatingGlobals.SetSuitorCheck(4, true); this.Checks[3].SetActive(false); this.Checks[4].SetActive(true); } else { StudentGlobals.CustomSuitorAccessory = 0; DatingGlobals.SetSuitorCheck(4, false); this.Checks[4].SetActive(false); } } else if (this.Selected == 5) { if (!this.Checks[5].activeInHierarchy) { StudentGlobals.CustomSuitorEyewear = 6; DatingGlobals.SetSuitorCheck(5, true); DatingGlobals.SetSuitorCheck(6, false); this.Checks[5].SetActive(true); this.Checks[6].SetActive(false); } else { StudentGlobals.CustomSuitorEyewear = 0; DatingGlobals.SetSuitorCheck(5, false); this.Checks[5].SetActive(false); } } else if (this.Selected == 6) { if (!this.Checks[6].activeInHierarchy) { StudentGlobals.CustomSuitorEyewear = 3; DatingGlobals.SetSuitorCheck(5, false); DatingGlobals.SetSuitorCheck(6, true); this.Checks[5].SetActive(false); this.Checks[6].SetActive(true); } else { StudentGlobals.CustomSuitorEyewear = 0; DatingGlobals.SetSuitorCheck(6, false); this.Checks[6].SetActive(false); } } else if (this.Selected == 7) { if (!this.Checks[7].activeInHierarchy) { StudentGlobals.CustomSuitorTan = true; DatingGlobals.SetSuitorCheck(7, true); this.Checks[7].SetActive(true); } else { StudentGlobals.CustomSuitorTan = false; DatingGlobals.SetSuitorCheck(7, false); this.Checks[7].SetActive(false); } } else if (this.Selected == 8) { if (!this.Checks[8].activeInHierarchy) { StudentGlobals.CustomSuitorBlack = true; DatingGlobals.SetSuitorCheck(8, true); this.Checks[8].SetActive(true); } else { StudentGlobals.CustomSuitorBlack = false; DatingGlobals.SetSuitorCheck(8, false); this.Checks[8].SetActive(false); } } else if (this.Selected == 9) { if (!this.Checks[9].activeInHierarchy) { StudentGlobals.CustomSuitorJewelry = 1; DatingGlobals.SetSuitorCheck(9, true); this.Checks[9].SetActive(true); } else { StudentGlobals.CustomSuitorJewelry = 0; DatingGlobals.SetSuitorCheck(9, false); this.Checks[9].SetActive(false); } } else if (this.Selected == 11) { StudentGlobals.CustomSuitor = true; this.PromptBar.ClearButtons(); this.PromptBar.UpdateButtons(); this.PromptBar.Show = false; this.Yandere.Interaction = YandereInteractionType.ChangingAppearance; this.Yandere.TalkTimer = 3f; this.Ready = false; this.Show = false; } } } if (Input.GetButtonUp("A")) { this.Ready = true; } } }