// Token: 0x0600146C RID: 5228 RVA: 0x000B4160 File Offset: 0x000B2360 public static void DeleteAll() { int profile = GameGlobals.Profile; ClassGlobals.DeleteAll(); ClubGlobals.DeleteAll(); CollectibleGlobals.DeleteAll(); ConversationGlobals.DeleteAll(); DateGlobals.DeleteAll(); DatingGlobals.DeleteAll(); EventGlobals.DeleteAll(); GameGlobals.DeleteAll(); HomeGlobals.DeleteAll(); MissionModeGlobals.DeleteAll(); PlayerGlobals.DeleteAll(); PoseModeGlobals.DeleteAll(); SchemeGlobals.DeleteAll(); SchoolGlobals.DeleteAll(); SenpaiGlobals.DeleteAll(); StudentGlobals.DeleteAll(); TaskGlobals.DeleteAll(); YanvaniaGlobals.DeleteAll(); WeaponGlobals.DeleteAll(); TutorialGlobals.DeleteAll(); CounselorGlobals.DeleteAll(); YancordGlobals.DeleteAll(); CorkboardGlobals.DeleteAll(); GameGlobals.Profile = profile; DateGlobals.Week = 1; }
// 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: 0x060012F9 RID: 4857 RVA: 0x000991A4 File Offset: 0x000973A4 private void Start() { this.MainCamera = Camera.main; this.Affection = DatingGlobals.Affection; this.AffectionBar.localScale = new Vector3(this.Affection / 100f, this.AffectionBar.localScale.y, this.AffectionBar.localScale.z); this.CalculateAffection(); this.OriginalColor = this.ComplimentBGs[1].color; this.ComplimentSet.localScale = Vector3.zero; this.GiveGift.localScale = Vector3.zero; this.ShowOff.localScale = Vector3.zero; this.Topics.localScale = Vector3.zero; this.DatingSimHUD.gameObject.SetActive(false); this.DatingSimHUD.alpha = 0f; for (int i = 1; i < 26; i++) { if (DatingGlobals.GetTopicDiscussed(i)) { UISprite uisprite = this.TopicIcons[i]; uisprite.color = new Color(uisprite.color.r, uisprite.color.g, uisprite.color.b, 0.5f); } } for (int j = 1; j < 11; j++) { if (DatingGlobals.GetComplimentGiven(j)) { UILabel uilabel = this.ComplimentLabels[j]; uilabel.color = new Color(uilabel.color.r, uilabel.color.g, uilabel.color.b, 0.5f); } } this.UpdateComplimentHighlight(); this.UpdateTraitHighlight(); this.UpdateGiftHighlight(); }
// Token: 0x06000A03 RID: 2563 RVA: 0x0004F080 File Offset: 0x0004D280 private void Start() { this.Window.localScale = Vector3.zero; for (int i = 1; i < 10; i++) { this.Checks[i].SetActive(DatingGlobals.GetSuitorCheck(i)); } }
// Token: 0x060014FA RID: 5370 RVA: 0x000B7A24 File Offset: 0x000B5C24 public static void DeleteAll() { Globals.Delete("Profile_" + GameGlobals.Profile + "_Affection"); Globals.Delete("Profile_" + GameGlobals.Profile + "_AffectionLevel"); Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_ComplimentGiven_", DatingGlobals.KeysOfComplimentGiven()); Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_SuitorCheck_", DatingGlobals.KeysOfSuitorCheck()); Globals.Delete("Profile_" + GameGlobals.Profile + "_SuitorProgress"); Globals.Delete("Profile_" + GameGlobals.Profile + "_RivalSabotaged"); Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_SuitorTrait_", DatingGlobals.KeysOfSuitorTrait()); Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_TopicDiscussed_", DatingGlobals.KeysOfTopicDiscussed()); Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_TraitDemonstrated_", DatingGlobals.KeysOfTraitDemonstrated()); }
// Token: 0x060019F5 RID: 6645 RVA: 0x000FD56C File Offset: 0x000FB76C public static DatingSaveData ReadFromGlobals() { DatingSaveData datingSaveData = new DatingSaveData(); datingSaveData.affection = DatingGlobals.Affection; datingSaveData.affectionLevel = DatingGlobals.AffectionLevel; foreach (int num in DatingGlobals.KeysOfComplimentGiven()) { if (DatingGlobals.GetComplimentGiven(num)) { datingSaveData.complimentGiven.Add(num); } } foreach (int num2 in DatingGlobals.KeysOfSuitorCheck()) { if (DatingGlobals.GetSuitorCheck(num2)) { datingSaveData.suitorCheck.Add(num2); } } datingSaveData.suitorProgress = DatingGlobals.SuitorProgress; foreach (int num3 in DatingGlobals.KeysOfSuitorTrait()) { datingSaveData.suitorTrait.Add(num3, DatingGlobals.GetSuitorTrait(num3)); } foreach (int num4 in DatingGlobals.KeysOfTopicDiscussed()) { if (DatingGlobals.GetTopicDiscussed(num4)) { datingSaveData.topicDiscussed.Add(num4); } } foreach (int num5 in DatingGlobals.KeysOfTraitDemonstrated()) { datingSaveData.traitDemonstrated.Add(num5, DatingGlobals.GetTraitDemonstrated(num5)); } return(datingSaveData); }
// 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; } } }
private void Update() { if (!this.MissionMode && !this.NoDebug) { if (!this.Yandere.InClass && !this.Yandere.Chased && this.Yandere.Chasers == 0 && this.Yandere.CanMove) { if (Input.GetKeyDown(KeyCode.Backslash) && this.Yandere.transform.position.y < 100f) { this.EasterEggWindow.SetActive(false); this.Window.SetActive(!this.Window.activeInHierarchy); } } else if (this.Window.activeInHierarchy) { this.Window.SetActive(false); } if (this.Window.activeInHierarchy) { if (Input.GetKeyDown(KeyCode.F1)) { StudentGlobals.FemaleUniform = 1; StudentGlobals.MaleUniform = 1; SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.F2)) { StudentGlobals.FemaleUniform = 2; StudentGlobals.MaleUniform = 2; SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.F3)) { StudentGlobals.FemaleUniform = 3; StudentGlobals.MaleUniform = 3; SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.F4)) { StudentGlobals.FemaleUniform = 4; StudentGlobals.MaleUniform = 4; SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.F5)) { StudentGlobals.FemaleUniform = 5; StudentGlobals.MaleUniform = 5; SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.F6)) { StudentGlobals.FemaleUniform = 6; StudentGlobals.MaleUniform = 6; SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.F7)) { this.ID = 1; while (this.ID < 8) { this.StudentManager.DrinkingFountains[this.ID].PowerSwitch.PowerOutlet.SabotagedOutlet.SetActive(true); this.StudentManager.DrinkingFountains[this.ID].Puddle.SetActive(true); this.ID++; } this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.F8)) { GameGlobals.CensorBlood = !GameGlobals.CensorBlood; this.WeaponManager.ChangeBloodTexture(); this.Yandere.Bloodiness += 0f; this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.F9)) { this.Yandere.AttackManager.Censor = !this.Yandere.AttackManager.Censor; this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.F10)) { this.StudentManager.Students[21].Attempts = 101; this.StudentManager.Students[22].Attempts = 101; this.StudentManager.Students[23].Attempts = 101; this.StudentManager.Students[24].Attempts = 101; this.StudentManager.Students[25].Attempts = 101; this.Window.SetActive(false); } else if (!Input.GetKeyDown(KeyCode.F12)) { if (Input.GetKeyDown(KeyCode.Alpha1)) { DateGlobals.Weekday = DayOfWeek.Monday; SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.Alpha2)) { DateGlobals.Weekday = DayOfWeek.Tuesday; SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.Alpha3)) { DateGlobals.Weekday = DayOfWeek.Wednesday; SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.Alpha4)) { DateGlobals.Weekday = DayOfWeek.Thursday; SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.Alpha5)) { DateGlobals.Weekday = DayOfWeek.Friday; SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.Alpha6)) { this.Yandere.transform.position = this.TeleportSpot[1].position; if (this.Yandere.Followers > 0) { this.Yandere.Follower.transform.position = this.Yandere.transform.position; } Physics.SyncTransforms(); this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.Alpha7)) { this.Yandere.transform.position = this.TeleportSpot[2].position + new Vector3(0.75f, 0f, 0f); if (this.Yandere.Followers > 0) { this.Yandere.Follower.transform.position = this.Yandere.transform.position; } Physics.SyncTransforms(); this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.Alpha8)) { this.Yandere.transform.position = this.TeleportSpot[3].position; if (this.Yandere.Followers > 0) { this.Yandere.Follower.transform.position = this.Yandere.transform.position; } Physics.SyncTransforms(); this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.Alpha9)) { this.Yandere.transform.position = this.TeleportSpot[4].position; if (this.Yandere.Followers > 0) { this.Yandere.Follower.transform.position = this.Yandere.transform.position; } this.Clock.PresentTime = 426f; StudentScript studentScript = this.StudentManager.Students[30]; if (studentScript != null) { if (studentScript.Phase < 2) { studentScript.ShoeRemoval.Start(); studentScript.ShoeRemoval.PutOnShoes(); studentScript.CanTalk = true; studentScript.Phase = 2; studentScript.CurrentDestination = studentScript.Destinations[2]; studentScript.Pathfinding.target = studentScript.Destinations[2]; } studentScript.transform.position = studentScript.Destinations[2].position; } StudentScript studentScript2 = this.StudentManager.Students[28]; if (studentScript2 != null) { studentScript2.ShoeRemoval.Start(); studentScript2.ShoeRemoval.PutOnShoes(); studentScript2.Phase = 2; studentScript2.CurrentDestination = studentScript2.Destinations[2]; studentScript2.Pathfinding.target = studentScript2.Destinations[2]; studentScript2.transform.position = studentScript2.Destinations[2].position; } StudentScript studentScript3 = this.StudentManager.Students[39]; if (studentScript3 != null) { studentScript3.ShoeRemoval.Start(); studentScript3.ShoeRemoval.PutOnShoes(); studentScript3.Phase = 2; studentScript3.ScheduleBlocks[2].action = "Stand"; studentScript3.GetDestinations(); studentScript3.CurrentDestination = this.MidoriSpot; studentScript3.Pathfinding.target = this.MidoriSpot; studentScript3.transform.position = this.MidoriSpot.position; } this.Window.SetActive(false); Physics.SyncTransforms(); } else if (Input.GetKeyDown(KeyCode.Alpha0)) { this.Yandere.transform.position = this.TeleportSpot[11].position; if (this.Yandere.Followers > 0) { this.Yandere.Follower.transform.position = this.Yandere.transform.position; } this.Window.SetActive(false); Physics.SyncTransforms(); } else if (Input.GetKeyDown(KeyCode.A)) { if (SchoolAtmosphere.Type == SchoolAtmosphereType.High) { SchoolGlobals.SchoolAtmosphere = 0.5f; } else if (SchoolAtmosphere.Type == SchoolAtmosphereType.Medium) { SchoolGlobals.SchoolAtmosphere = 0f; } else { SchoolGlobals.SchoolAtmosphere = 1f; } SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.C)) { this.ID = 1; while (this.ID < 11) { CollectibleGlobals.SetTapeCollected(this.ID, true); this.ID++; } this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.D)) { this.ID = 0; while (this.ID < 5) { StudentScript studentScript4 = this.StudentManager.Students[76 + this.ID]; if (studentScript4 != null) { if (studentScript4.Phase < 2) { studentScript4.ShoeRemoval.Start(); studentScript4.ShoeRemoval.PutOnShoes(); studentScript4.Phase = 2; studentScript4.CurrentDestination = studentScript4.Destinations[2]; studentScript4.Pathfinding.target = studentScript4.Destinations[2]; } studentScript4.transform.position = studentScript4.Destinations[2].position; } this.ID++; } Physics.SyncTransforms(); this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.F)) { this.GreenScreen.SetActive(true); this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.G)) { StudentScript studentScript5 = this.StudentManager.Students[this.RooftopStudent]; if (this.Clock.HourTime < 15f) { PlayerGlobals.SetStudentFriend(this.RooftopStudent, true); this.Yandere.transform.position = this.RooftopSpot.position + new Vector3(1f, 0f, 0f); this.WeaponManager.Weapons[6].transform.position = this.Yandere.transform.position + new Vector3(0f, 0f, 1.915f); if (studentScript5 != null) { this.StudentManager.OfferHelp.UpdateLocation(); this.StudentManager.OfferHelp.enabled = true; if (!studentScript5.Indoors) { if (studentScript5.ShoeRemoval.Locker == null) { studentScript5.ShoeRemoval.Start(); } studentScript5.ShoeRemoval.PutOnShoes(); } studentScript5.CharacterAnimation.Play(studentScript5.IdleAnim); studentScript5.transform.position = this.RooftopSpot.position; studentScript5.transform.rotation = this.RooftopSpot.rotation; studentScript5.Prompt.Label[0].text = " Push"; studentScript5.CurrentDestination = this.RooftopSpot; studentScript5.Pathfinding.target = this.RooftopSpot; studentScript5.Pathfinding.canSearch = false; studentScript5.Pathfinding.canMove = false; studentScript5.SpeechLines.Stop(); studentScript5.Pushable = true; studentScript5.Routine = false; studentScript5.Meeting = true; studentScript5.MeetTime = 0f; } if (this.Clock.HourTime < 7.1f) { this.Clock.PresentTime = 426f; } } else { this.Clock.PresentTime = 960f; studentScript5.transform.position = this.Lockers.position; } Physics.SyncTransforms(); this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.K)) { SchoolGlobals.KidnapVictim = 25; StudentGlobals.StudentSlave = 25; SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.L)) { SchemeGlobals.SetSchemeStage(1, 2); EventGlobals.Event1 = true; this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.M)) { PlayerGlobals.Money = 100f; this.Yandere.Inventory.Money = 100f; this.Yandere.Inventory.UpdateMoney(); this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.O)) { this.Yandere.Inventory.RivalPhone = true; this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.P)) { this.ID = 2; while (this.ID < 93) { StudentScript studentScript6 = this.StudentManager.Students[this.ID]; if (studentScript6 != null) { studentScript6.Patience = 999; studentScript6.Pestered = -999; studentScript6.Ignoring = false; } this.ID++; } this.Yandere.Inventory.PantyShots += 20; PlayerGlobals.PantyShots += 20; this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.Q)) { this.Censor(); this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.R)) { if (PlayerGlobals.Reputation == -100f) { PlayerGlobals.Reputation = -66.66666f; } else if (PlayerGlobals.Reputation == -66.66666f) { PlayerGlobals.Reputation = 0f; } else if (PlayerGlobals.Reputation == 0f) { PlayerGlobals.Reputation = 66.66666f; } else if (PlayerGlobals.Reputation == 66.66666f) { PlayerGlobals.Reputation = 100f; } else if (PlayerGlobals.Reputation == 100f) { PlayerGlobals.Reputation = -100f; } this.Reputation.Reputation = PlayerGlobals.Reputation; this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.S)) { this.Yandere.Class.PhysicalGrade = 5; this.Yandere.Class.Seduction = 5; this.StudentManager.Police.UpdateCorpses(); this.ID = 1; while (this.ID < 101) { StudentGlobals.SetStudentPhotographed(this.ID, true); this.ID++; } this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.T)) { this.Zoom.OverShoulder = !this.Zoom.OverShoulder; this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.U)) { PlayerGlobals.SetStudentFriend(28, true); PlayerGlobals.SetStudentFriend(30, true); this.ID = 1; while (this.ID < 26) { ConversationGlobals.SetTopicLearnedByStudent(this.ID, 30, true); ConversationGlobals.SetTopicDiscovered(this.ID, true); this.ID++; } this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.Z)) { this.Yandere.Police.Invalid = true; if (Input.GetKey(KeyCode.LeftShift)) { this.ID = 2; while (this.ID < 93) { this.StudentManager.Students[this.ID] != null; this.ID++; } } else { this.ID = 2; while (this.ID < 101) { StudentScript studentScript7 = this.StudentManager.Students[this.ID]; if (studentScript7 != null) { studentScript7.SpawnAlarmDisc(); studentScript7.BecomeRagdoll(); studentScript7.DeathType = DeathType.EasterEgg; } this.ID++; } } this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.X)) { TaskGlobals.SetTaskStatus(36, 3); SchoolGlobals.ReactedToGameLeader = false; SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.Backspace)) { Time.timeScale = 1f; this.Clock.PresentTime = 1079f; this.Clock.HourTime = this.Clock.PresentTime / 60f; this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.BackQuote)) { Globals.DeleteAll(); SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.Space)) { this.Yandere.transform.position = this.TeleportSpot[5].position; if (this.Yandere.Follower != null) { this.Yandere.Follower.transform.position = this.Yandere.transform.position; } for (int i = 46; i < 51; i++) { if (this.StudentManager.Students[i] != null) { this.StudentManager.Students[i].transform.position = this.TeleportSpot[5].position; if (!this.StudentManager.Students[i].Indoors) { if (this.StudentManager.Students[i].ShoeRemoval.Locker == null) { this.StudentManager.Students[i].ShoeRemoval.Start(); } this.StudentManager.Students[i].ShoeRemoval.PutOnShoes(); } } } this.Clock.PresentTime = 1015f; this.Clock.HourTime = this.Clock.PresentTime / 60f; this.Window.SetActive(false); this.OsanaEvent1.enabled = false; this.OsanaEvent2.enabled = false; this.OsanaEvent3.enabled = false; Physics.SyncTransforms(); } else if (Input.GetKeyDown(KeyCode.LeftAlt)) { this.Turtle.SpawnWeapons(); this.Yandere.transform.position = this.TeleportSpot[6].position; if (this.Yandere.Follower != null) { this.Yandere.Follower.transform.position = this.Yandere.transform.position; } this.Clock.PresentTime = 425f; this.Clock.HourTime = this.Clock.PresentTime / 60f; Physics.SyncTransforms(); this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.LeftControl)) { this.Yandere.transform.position = this.TeleportSpot[7].position; if (this.Yandere.Follower != null) { this.Yandere.Follower.transform.position = this.Yandere.transform.position; } Physics.SyncTransforms(); this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.RightControl)) { this.Yandere.transform.position = this.TeleportSpot[8].position; if (this.Yandere.Follower != null) { this.Yandere.Follower.transform.position = this.Yandere.transform.position; } Physics.SyncTransforms(); this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.Equals)) { this.Clock.PresentTime += 10f; this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.Return)) { this.Yandere.transform.eulerAngles = this.TeleportSpot[10].eulerAngles; this.Yandere.transform.position = this.TeleportSpot[10].position; if (this.Yandere.Follower != null) { this.Yandere.Follower.transform.position = this.Yandere.transform.position; } this.StudentManager.Students[1].ShoeRemoval.Start(); this.StudentManager.Students[1].ShoeRemoval.PutOnShoes(); this.StudentManager.Students[1].transform.position = new Vector3(0f, 12.1f, -25f); this.StudentManager.Students[1].Alarmed = true; this.StudentManager.Students[11].Lethal = true; this.StudentManager.Students[11].ShoeRemoval.Start(); this.StudentManager.Students[11].ShoeRemoval.PutOnShoes(); this.StudentManager.Students[11].transform.position = new Vector3(0f, 12.1f, -25f); this.Clock.PresentTime = 780f; this.Clock.HourTime = this.Clock.PresentTime / 60f; Physics.SyncTransforms(); this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.B)) { this.Yandere.Inventory.Headset = true; this.StudentManager.LoveManager.SuitorProgress = 1; DatingGlobals.SuitorProgress = 1; PlayerGlobals.SetStudentFriend(6, true); PlayerGlobals.SetStudentFriend(11, true); for (int j = 0; j < 11; j++) { DatingGlobals.SetComplimentGiven(j, false); } this.ID = 1; while (this.ID < 26) { ConversationGlobals.SetTopicLearnedByStudent(this.ID, 11, true); ConversationGlobals.SetTopicDiscovered(this.ID, true); this.ID++; } StudentScript studentScript8 = this.StudentManager.Students[11]; if (studentScript8 != null) { studentScript8.ShoeRemoval.Start(); studentScript8.ShoeRemoval.PutOnShoes(); studentScript8.CanTalk = true; studentScript8.Phase = 2; studentScript8.Pestered = 0; studentScript8.Patience = 999; studentScript8.Ignoring = false; studentScript8.CurrentDestination = studentScript8.Destinations[2]; studentScript8.Pathfinding.target = studentScript8.Destinations[2]; studentScript8.transform.position = studentScript8.Destinations[2].position; } StudentScript studentScript9 = this.StudentManager.Students[6]; if (studentScript9 != null) { studentScript9.ShoeRemoval.Start(); studentScript9.ShoeRemoval.PutOnShoes(); studentScript9.Phase = 2; studentScript9.Pestered = 0; studentScript9.Patience = 999; studentScript9.Ignoring = false; studentScript9.CurrentDestination = studentScript9.Destinations[2]; studentScript9.Pathfinding.target = studentScript9.Destinations[2]; studentScript9.transform.position = studentScript9.Destinations[2].position; } StudentScript studentScript10 = this.StudentManager.Students[10]; if (studentScript9 != null) { studentScript9.transform.position = studentScript8.transform.position; } CollectibleGlobals.SetGiftPurchased(6, true); CollectibleGlobals.SetGiftPurchased(7, true); CollectibleGlobals.SetGiftPurchased(8, true); CollectibleGlobals.SetGiftPurchased(9, true); Physics.SyncTransforms(); this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.Pause)) { this.Clock.StopTime = !this.Clock.StopTime; this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.W)) { this.StudentManager.ToggleBookBags(); this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.H)) { StudentGlobals.FragileSlave = 5; StudentGlobals.FragileTarget = 31; SceneManager.LoadScene("LoadingScene"); } else if (Input.GetKeyDown(KeyCode.I)) { this.StudentManager.Students[3].BecomeRagdoll(); this.WeaponManager.Weapons[1].Blood.enabled = true; this.WeaponManager.Weapons[1].FingerprintID = 2; this.WeaponManager.Weapons[1].Victims[3] = true; this.StudentManager.Students[5].BecomeRagdoll(); this.WeaponManager.Weapons[2].Blood.enabled = true; this.WeaponManager.Weapons[2].FingerprintID = 4; this.WeaponManager.Weapons[2].Victims[5] = true; } else if (!Input.GetKeyDown(KeyCode.J)) { if (Input.GetKeyDown(KeyCode.V)) { this.StudentManager.LoveManager.ConfessToSuitor = true; this.StudentManager.DatingMinigame.Affection = 100f; DateGlobals.Weekday = DayOfWeek.Friday; this.Window.SetActive(false); } else if (Input.GetKeyDown(KeyCode.N)) { this.ElectrocutionKit[0].transform.position = this.Yandere.transform.position; this.ElectrocutionKit[1].transform.position = this.Yandere.transform.position; this.ElectrocutionKit[2].transform.position = this.Yandere.transform.position; this.ElectrocutionKit[3].transform.position = this.Yandere.transform.position; this.ElectrocutionKit[3].SetActive(true); } } } if (Input.GetKeyDown(KeyCode.Tab)) { DatingGlobals.SuitorProgress = 2; SceneManager.LoadScene("LoadingScene"); } if (Input.GetKeyDown(KeyCode.CapsLock)) { this.StudentManager.LoveManager.ConfessToSuitor = true; } } else { if (Input.GetKey(KeyCode.BackQuote)) { this.Timer += Time.deltaTime; if (this.Timer > 1f) { this.ID = 0; while (this.ID < this.StudentManager.NPCsTotal) { if (StudentGlobals.GetStudentDying(this.ID)) { StudentGlobals.SetStudentDying(this.ID, false); } this.ID++; } SceneManager.LoadScene("LoadingScene"); } } if (Input.GetKeyUp(KeyCode.BackQuote)) { this.Timer = 0f; } } if (this.TryNextFrame) { this.UpdateCensor(); } } else { if (Input.GetKeyDown(KeyCode.Backslash)) { this.MissionModeWindow.SetActive(!this.MissionModeWindow.activeInHierarchy); this.DebugInputs++; } if (this.MissionModeWindow.activeInHierarchy) { if (Input.GetKeyDown(KeyCode.Alpha1)) { this.Censor(); } if (Input.GetKeyDown(KeyCode.Alpha2)) { GameGlobals.CensorBlood = !GameGlobals.CensorBlood; this.WeaponManager.ChangeBloodTexture(); this.Yandere.Bloodiness += 0f; } if (Input.GetKeyDown(KeyCode.Alpha3)) { this.Yandere.AttackManager.Censor = !this.Yandere.AttackManager.Censor; } } } if (this.WaitingForNumber) { if (Input.GetKey("1")) { Debug.Log("Going to class should trigger panty shot lecture."); SchemeGlobals.SetSchemeStage(1, 100); StudentGlobals.ExpelProgress = 0; this.Counselor.CutsceneManager.Scheme = 1; this.Counselor.LectureID = 1; this.WaitingForNumber = false; return; } if (Input.GetKey("2")) { Debug.Log("Going to class should trigger theft lecture."); SchemeGlobals.SetSchemeStage(2, 100); StudentGlobals.ExpelProgress = 1; this.Counselor.CutsceneManager.Scheme = 2; this.Counselor.LectureID = 2; this.WaitingForNumber = false; return; } if (Input.GetKey("3")) { Debug.Log("Going to class should trigger contraband lecture."); SchemeGlobals.SetSchemeStage(3, 100); StudentGlobals.ExpelProgress = 2; this.Counselor.CutsceneManager.Scheme = 3; this.Counselor.LectureID = 3; this.WaitingForNumber = false; return; } if (Input.GetKey("4")) { Debug.Log("Going to class should trigger Vandalism lecture."); SchemeGlobals.SetSchemeStage(4, 100); StudentGlobals.ExpelProgress = 3; this.Counselor.CutsceneManager.Scheme = 4; this.Counselor.LectureID = 4; this.WaitingForNumber = false; return; } if (Input.GetKey("5")) { Debug.Log("Going to class at lunchtime should get Osana expelled!"); SchemeGlobals.SetSchemeStage(5, 100); StudentGlobals.ExpelProgress = 4; this.Counselor.CutsceneManager.Scheme = 5; this.Counselor.LectureID = 5; this.WaitingForNumber = false; } } }
// Token: 0x060012FB RID: 4859 RVA: 0x00099400 File Offset: 0x00097600 private void Update() { if (this.Testing) { this.Prompt.enabled = true; } else if (this.LoveManager.RivalWaiting) { if (this.Rival == null) { this.Suitor = this.StudentManager.Students[this.LoveManager.SuitorID]; this.Rival = this.StudentManager.Students[this.LoveManager.RivalID]; } if (this.Rival.MeetTimer > 0f && this.Suitor.MeetTimer > 0f) { this.Prompt.enabled = true; } } else if (this.Prompt.enabled) { this.Prompt.Hide(); this.Prompt.enabled = false; } if (this.Prompt.Circle[0].fillAmount == 0f) { this.Prompt.Circle[0].fillAmount = 1f; if (!this.Yandere.Chased && this.Yandere.Chasers == 0 && !this.Rival.Hunted) { this.Suitor.CharacterAnimation.cullingType = AnimationCullingType.AlwaysAnimate; this.Rival.CharacterAnimation.cullingType = AnimationCullingType.AlwaysAnimate; this.Suitor.CharacterAnimation.enabled = true; this.Rival.CharacterAnimation.enabled = true; this.Suitor.enabled = false; this.Rival.enabled = false; this.Rival.CharacterAnimation["f02_smile_00"].layer = 1; this.Rival.CharacterAnimation.Play("f02_smile_00"); this.Rival.CharacterAnimation["f02_smile_00"].weight = 0f; this.StudentManager.Clock.StopTime = true; this.Yandere.RPGCamera.enabled = false; this.HeartbeatCamera.SetActive(false); this.Yandere.Headset.SetActive(true); this.Yandere.CanMove = false; this.Yandere.EmptyHands(); if (this.Yandere.YandereVision) { this.Yandere.ResetYandereEffects(); this.Yandere.YandereVision = false; } this.Yandere.transform.position = this.PeekSpot.position; this.Yandere.transform.eulerAngles = this.PeekSpot.eulerAngles; this.Yandere.CharacterAnimation.Play("f02_treePeeking_00"); this.MainCamera.transform.position = new Vector3(48f, 3f, -44f); this.MainCamera.transform.eulerAngles = new Vector3(15f, 90f, 0f); this.WisdomLabel.text = "Wisdom: " + DatingGlobals.GetSuitorTrait(2).ToString(); this.GiftIcons[1].enabled = CollectibleGlobals.GetGiftPurchased(6); this.GiftIcons[2].enabled = CollectibleGlobals.GetGiftPurchased(7); this.GiftIcons[3].enabled = CollectibleGlobals.GetGiftPurchased(8); this.GiftIcons[4].enabled = CollectibleGlobals.GetGiftPurchased(9); this.Matchmaking = true; this.UpdateTopics(); Time.timeScale = 1f; } } if (this.Matchmaking) { if (this.CurrentAnim != string.Empty && this.Rival.CharacterAnimation[this.CurrentAnim].time >= this.Rival.CharacterAnimation[this.CurrentAnim].length) { this.Rival.CharacterAnimation.Play(this.Rival.IdleAnim); } if (this.Phase == 1) { this.Panel.alpha = Mathf.MoveTowards(this.Panel.alpha, 0f, Time.deltaTime); this.Timer += Time.deltaTime; this.MainCamera.transform.position = Vector3.Lerp(Camera.main.transform.position, new Vector3(54f, 1.25f, -45.25f), this.Timer * 0.02f); this.MainCamera.transform.eulerAngles = Vector3.Lerp(this.MainCamera.transform.eulerAngles, new Vector3(0f, 45f, 0f), this.Timer * 0.02f); if (this.Timer > 5f) { this.Suitor.CharacterAnimation.Play("insertEarpiece_00"); this.Suitor.CharacterAnimation["insertEarpiece_00"].time = 0f; this.Suitor.CharacterAnimation.Play("insertEarpiece_00"); this.Suitor.Earpiece.SetActive(true); this.MainCamera.transform.position = new Vector3(45.5f, 1.25f, -44.5f); this.MainCamera.transform.eulerAngles = new Vector3(0f, -45f, 0f); this.Rotation = -45f; this.Timer = 0f; this.Phase++; return; } } else if (this.Phase == 2) { this.Timer += Time.deltaTime; if (this.Timer > 4f) { this.Suitor.Earpiece.transform.parent = this.Suitor.Head; this.Suitor.Earpiece.transform.localPosition = new Vector3(0f, -1.12f, 1.14f); this.Suitor.Earpiece.transform.localEulerAngles = new Vector3(45f, -180f, 0f); this.MainCamera.transform.position = Vector3.Lerp(this.MainCamera.transform.position, new Vector3(45.11f, 1.375f, -44f), (this.Timer - 4f) * 0.02f); this.Rotation = Mathf.Lerp(this.Rotation, 90f, (this.Timer - 4f) * 0.02f); this.MainCamera.transform.eulerAngles = new Vector3(this.MainCamera.transform.eulerAngles.x, this.Rotation, this.MainCamera.transform.eulerAngles.z); if (this.Rotation > 89.9f) { this.Rival.CharacterAnimation["f02_turnAround_00"].time = 0f; this.Rival.CharacterAnimation.CrossFade("f02_turnAround_00"); this.AffectionBar.localScale = new Vector3(this.Affection / 100f, this.AffectionBar.localScale.y, this.AffectionBar.localScale.z); this.DialogueLabel.text = this.Greetings[this.AffectionLevel]; this.CalculateMultiplier(); this.DatingSimHUD.gameObject.SetActive(true); this.Timer = 0f; this.Phase++; return; } } } else if (this.Phase == 3) { this.DatingSimHUD.alpha = Mathf.MoveTowards(this.DatingSimHUD.alpha, 1f, Time.deltaTime); if (this.Rival.CharacterAnimation["f02_turnAround_00"].time >= this.Rival.CharacterAnimation["f02_turnAround_00"].length) { this.Rival.transform.eulerAngles = new Vector3(this.Rival.transform.eulerAngles.x, -90f, this.Rival.transform.eulerAngles.z); this.Rival.CharacterAnimation.Play("f02_turnAround_00"); this.Rival.CharacterAnimation["f02_turnAround_00"].time = 0f; this.Rival.CharacterAnimation["f02_turnAround_00"].speed = 0f; this.Rival.CharacterAnimation.Play("f02_turnAround_00"); this.Rival.CharacterAnimation.CrossFade(this.Rival.IdleAnim); Time.timeScale = 1f; this.PromptBar.ClearButtons(); this.PromptBar.Label[0].text = "Confirm"; this.PromptBar.Label[1].text = "Back"; this.PromptBar.Label[4].text = "Select"; this.PromptBar.UpdateButtons(); this.PromptBar.Show = true; this.Phase++; return; } } else if (this.Phase == 4) { if (this.AffectionGrow) { this.Affection = Mathf.MoveTowards(this.Affection, 100f, Time.deltaTime * 10f); this.CalculateAffection(); } this.Rival.Cosmetic.MyRenderer.materials[2].SetFloat("_BlendAmount", this.Affection * 0.01f); this.Rival.CharacterAnimation["f02_smile_00"].weight = this.Affection * 0.01f; this.Highlight.localPosition = new Vector3(this.Highlight.localPosition.x, Mathf.Lerp(this.Highlight.localPosition.y, this.HighlightTarget, Time.deltaTime * 10f), this.Highlight.localPosition.z); for (int i = 1; i < this.Options.Length; i++) { Transform transform = this.Options[i]; transform.localPosition = new Vector3(Mathf.Lerp(transform.localPosition.x, (i == this.Selected) ? 750f : 800f, Time.deltaTime * 10f), transform.localPosition.y, transform.localPosition.z); } this.AffectionBar.localScale = new Vector3(Mathf.Lerp(this.AffectionBar.localScale.x, this.Affection / 100f, Time.deltaTime * 10f), this.AffectionBar.localScale.y, this.AffectionBar.localScale.z); if (!this.SelectingTopic && !this.Complimenting && !this.ShowingOff && !this.GivingGift) { this.Topics.localScale = Vector3.Lerp(this.Topics.localScale, Vector3.zero, Time.deltaTime * 10f); this.ComplimentSet.localScale = Vector3.Lerp(this.ComplimentSet.localScale, Vector3.zero, Time.deltaTime * 10f); this.ShowOff.localScale = Vector3.Lerp(this.ShowOff.localScale, Vector3.zero, Time.deltaTime * 10f); this.GiveGift.localScale = Vector3.Lerp(this.GiveGift.localScale, Vector3.zero, Time.deltaTime * 10f); if (this.InputManager.TappedUp) { this.Selected--; this.UpdateHighlight(); } if (this.InputManager.TappedDown) { this.Selected++; this.UpdateHighlight(); } if (Input.GetButtonDown("A") && this.Labels[this.Selected].color.a == 1f) { if (this.Selected == 1) { this.SelectingTopic = true; this.Negative = true; return; } if (this.Selected == 2) { this.SelectingTopic = true; this.Negative = false; return; } if (this.Selected == 3) { this.Complimenting = true; return; } if (this.Selected == 4) { this.ShowingOff = true; return; } if (this.Selected == 5) { this.GivingGift = true; return; } if (this.Selected == 6) { this.PromptBar.ClearButtons(); this.PromptBar.Label[0].text = "Confirm"; this.PromptBar.UpdateButtons(); this.CalculateAffection(); this.DialogueLabel.text = this.Farewells[this.AffectionLevel]; this.Phase++; return; } } } else if (this.SelectingTopic) { this.Topics.localScale = Vector3.Lerp(this.Topics.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f); if (this.InputManager.TappedUp) { this.Row--; this.UpdateTopicHighlight(); } else if (this.InputManager.TappedDown) { this.Row++; this.UpdateTopicHighlight(); } if (this.InputManager.TappedLeft) { this.Column--; this.UpdateTopicHighlight(); } else if (this.InputManager.TappedRight) { this.Column++; this.UpdateTopicHighlight(); } if (Input.GetButtonDown("A") && this.TopicIcons[this.TopicSelected].color.a == 1f) { this.SelectingTopic = false; UISprite uisprite = this.TopicIcons[this.TopicSelected]; uisprite.color = new Color(uisprite.color.r, uisprite.color.g, uisprite.color.b, 0.5f); DatingGlobals.SetTopicDiscussed(this.TopicSelected, true); this.DetermineOpinion(); if (!ConversationGlobals.GetTopicLearnedByStudent(this.Opinion, this.LoveManager.RivalID)) { ConversationGlobals.SetTopicLearnedByStudent(this.Opinion, this.LoveManager.RivalID, true); } if (this.Negative) { UILabel uilabel = this.Labels[1]; uilabel.color = new Color(uilabel.color.r, uilabel.color.g, uilabel.color.b, 0.5f); if (this.Opinion == 2) { this.DialogueLabel.text = "Hey! Just so you know, I take offense to that..."; this.Rival.CharacterAnimation.CrossFade("f02_refuse_00"); this.CurrentAnim = "f02_refuse_00"; this.Affection -= 1f; this.CalculateAffection(); } else if (this.Opinion == 1) { this.DialogueLabel.text = this.Negatives[this.AffectionLevel]; this.Rival.CharacterAnimation.CrossFade("f02_lookdown_00"); this.CurrentAnim = "f02_lookdown_00"; this.Affection += (float)this.Multiplier; this.CalculateAffection(); } else if (this.Opinion == 0) { this.DialogueLabel.text = "Um...okay."; } } else { UILabel uilabel2 = this.Labels[2]; uilabel2.color = new Color(uilabel2.color.r, uilabel2.color.g, uilabel2.color.b, 0.5f); if (this.Opinion == 2) { this.DialogueLabel.text = this.Positives[this.AffectionLevel]; this.Rival.CharacterAnimation.CrossFade("f02_lookdown_00"); this.CurrentAnim = "f02_lookdown_00"; this.Affection += (float)this.Multiplier; this.CalculateAffection(); } else if (this.Opinion == 1) { this.DialogueLabel.text = "To be honest with you, I strongly disagree..."; this.Rival.CharacterAnimation.CrossFade("f02_refuse_00"); this.CurrentAnim = "f02_refuse_00"; this.Affection -= 1f; this.CalculateAffection(); } else if (this.Opinion == 0) { this.DialogueLabel.text = "Um...all right."; } } if (this.Affection > 100f) { this.Affection = 100f; } else if (this.Affection < 0f) { this.Affection = 0f; } } if (Input.GetButtonDown("B")) { this.SelectingTopic = false; return; } } else if (this.Complimenting) { this.ComplimentSet.localScale = Vector3.Lerp(this.ComplimentSet.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f); if (this.InputManager.TappedUp) { this.Line--; this.UpdateComplimentHighlight(); } else if (this.InputManager.TappedDown) { this.Line++; this.UpdateComplimentHighlight(); } if (this.InputManager.TappedLeft) { this.Side--; this.UpdateComplimentHighlight(); } else if (this.InputManager.TappedRight) { this.Side++; this.UpdateComplimentHighlight(); } if (Input.GetButtonDown("A") && this.ComplimentLabels[this.ComplimentSelected].color.a == 1f) { UILabel uilabel3 = this.Labels[3]; uilabel3.color = new Color(uilabel3.color.r, uilabel3.color.g, uilabel3.color.b, 0.5f); this.Complimenting = false; this.DialogueLabel.text = this.Compliments[this.ComplimentSelected]; DatingGlobals.SetComplimentGiven(this.ComplimentSelected, true); if (this.ComplimentSelected == 1 || this.ComplimentSelected == 4 || this.ComplimentSelected == 5 || this.ComplimentSelected == 8 || this.ComplimentSelected == 9) { this.Rival.CharacterAnimation.CrossFade("f02_lookdown_00"); this.CurrentAnim = "f02_lookdown_00"; this.Affection += (float)this.Multiplier; this.CalculateAffection(); } else { this.Rival.CharacterAnimation.CrossFade("f02_refuse_00"); this.CurrentAnim = "f02_refuse_00"; this.Affection -= 1f; this.CalculateAffection(); } if (this.Affection > 100f) { this.Affection = 100f; } else if (this.Affection < 0f) { this.Affection = 0f; } } if (Input.GetButtonDown("B")) { this.Complimenting = false; return; } } else if (this.ShowingOff) { this.ShowOff.localScale = Vector3.Lerp(this.ShowOff.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f); if (this.InputManager.TappedUp) { this.TraitSelected--; this.UpdateTraitHighlight(); } else if (this.InputManager.TappedDown) { this.TraitSelected++; this.UpdateTraitHighlight(); } if (Input.GetButtonDown("A")) { UILabel uilabel4 = this.Labels[4]; uilabel4.color = new Color(uilabel4.color.r, uilabel4.color.g, uilabel4.color.b, 0.5f); this.ShowingOff = false; if (this.TraitSelected == 2) { Debug.Log(string.Concat(new object[] { "Wisdom trait is ", DatingGlobals.GetSuitorTrait(2), ". Wisdom Demonstrated is ", DatingGlobals.GetTraitDemonstrated(2), "." })); if (DatingGlobals.GetSuitorTrait(2) > DatingGlobals.GetTraitDemonstrated(2)) { DatingGlobals.SetTraitDemonstrated(2, DatingGlobals.GetTraitDemonstrated(2) + 1); this.DialogueLabel.text = this.ShowOffs[this.AffectionLevel]; this.Rival.CharacterAnimation.CrossFade("f02_lookdown_00"); this.CurrentAnim = "f02_lookdown_00"; this.Affection += (float)this.Multiplier; this.CalculateAffection(); } else if (DatingGlobals.GetSuitorTrait(2) == 0) { this.DialogueLabel.text = "Uh...that doesn't sound correct..."; } else if (DatingGlobals.GetSuitorTrait(2) == DatingGlobals.GetTraitDemonstrated(2)) { this.DialogueLabel.text = "Uh...you already told me about that..."; } } else { this.DialogueLabel.text = "Um...well...that sort of thing doesn't really matter to me..."; } if (this.Affection > 100f) { this.Affection = 100f; } else if (this.Affection < 0f) { this.Affection = 0f; } } if (Input.GetButtonDown("B")) { this.ShowingOff = false; return; } } else if (this.GivingGift) { this.GiveGift.localScale = Vector3.Lerp(this.GiveGift.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f); if (this.InputManager.TappedUp) { this.GiftRow--; this.UpdateGiftHighlight(); } else if (this.InputManager.TappedDown) { this.GiftRow++; this.UpdateGiftHighlight(); } if (this.InputManager.TappedLeft) { this.GiftColumn--; this.UpdateGiftHighlight(); } else if (this.InputManager.TappedRight) { this.GiftColumn++; this.UpdateGiftHighlight(); } if (Input.GetButtonDown("A")) { if (this.GiftIcons[this.GiftSelected].enabled) { CollectibleGlobals.SetGiftPurchased(this.GiftSelected + 5, false); CollectibleGlobals.SetGiftGiven(this.GiftSelected, false); this.Rival.Cosmetic.CatGifts[this.GiftSelected].SetActive(true); UILabel uilabel5 = this.Labels[5]; uilabel5.color = new Color(uilabel5.color.r, uilabel5.color.g, uilabel5.color.b, 0.5f); this.GivingGift = false; this.DialogueLabel.text = this.GiveGifts[this.GiftSelected]; this.Rival.CharacterAnimation.CrossFade("f02_lookdown_00"); this.CurrentAnim = "f02_lookdown_00"; this.Affection += (float)this.Multiplier; this.CalculateAffection(); } if (this.Affection > 100f) { this.Affection = 100f; } else if (this.Affection < 0f) { this.Affection = 0f; } } if (Input.GetButtonDown("B")) { this.GivingGift = false; return; } } } else if (this.Phase == 5) { this.Speed += Time.deltaTime * 100f; this.AffectionSet.localPosition = new Vector3(this.AffectionSet.localPosition.x, this.AffectionSet.localPosition.y + this.Speed, this.AffectionSet.localPosition.z); this.OptionSet.localPosition = new Vector3(this.OptionSet.localPosition.x + this.Speed, this.OptionSet.localPosition.y, this.OptionSet.localPosition.z); if (this.Speed > 100f && Input.GetButtonDown("A")) { this.Phase++; return; } } else if (this.Phase == 6) { this.DatingSimHUD.alpha = Mathf.MoveTowards(this.DatingSimHUD.alpha, 0f, Time.deltaTime); if (this.DatingSimHUD.alpha == 0f) { this.DatingSimHUD.gameObject.SetActive(false); this.Phase++; return; } } else if (this.Phase == 7) { if (this.Panel.alpha == 0f) { this.Suitor.CharacterAnimation.cullingType = AnimationCullingType.BasedOnRenderers; this.LoveManager.RivalWaiting = false; this.LoveManager.Courted = true; this.Suitor.enabled = true; this.Rival.enabled = true; this.Suitor.CurrentDestination = this.Suitor.Destinations[this.Suitor.Phase]; this.Suitor.Pathfinding.target = this.Suitor.Destinations[this.Suitor.Phase]; this.Suitor.Prompt.Label[0].text = " Talk"; this.Suitor.Pathfinding.canSearch = true; this.Suitor.Pathfinding.canMove = true; this.Suitor.Pushable = false; this.Suitor.Meeting = false; this.Suitor.Routine = true; this.Suitor.MeetTimer = 0f; this.Rival.Cosmetic.MyRenderer.materials[2].SetFloat("_BlendAmount", 0f); this.Rival.CurrentDestination = this.Rival.Destinations[this.Rival.Phase]; this.Rival.Pathfinding.target = this.Rival.Destinations[this.Rival.Phase]; this.Rival.CharacterAnimation["f02_smile_00"].weight = 0f; this.Rival.Prompt.Label[0].text = " Talk"; this.Rival.Pathfinding.canSearch = true; this.Rival.Pathfinding.canMove = true; this.Rival.Pushable = false; this.Rival.Meeting = false; this.Rival.Routine = true; this.Rival.MeetTimer = 0f; this.StudentManager.Clock.StopTime = false; this.Yandere.RPGCamera.enabled = true; this.Suitor.Earpiece.SetActive(false); this.HeartbeatCamera.SetActive(true); this.Yandere.Headset.SetActive(false); DatingGlobals.Affection = this.Affection; if (this.AffectionLevel == 5) { this.LoveManager.ConfessToSuitor = true; } this.PromptBar.ClearButtons(); this.PromptBar.Show = false; if (this.StudentManager.Students[10] != null) { this.StudentManager.Students[10].CurrentDestination = this.StudentManager.Students[10].FollowTarget.transform; this.StudentManager.Students[10].Pathfinding.target = this.StudentManager.Students[10].FollowTarget.transform; } } else if (this.Panel.alpha == 1f) { this.Matchmaking = false; this.Yandere.CanMove = true; base.gameObject.SetActive(false); } this.Panel.alpha = Mathf.MoveTowards(this.Panel.alpha, 1f, Time.deltaTime); } } }
private void Update() { if (this.Yandere.Followers > 0) { if (this.Yandere.Follower.StudentID == this.LoveManager.SuitorID && this.Yandere.Follower.DistanceToPlayer < 2f) { this.Prompt.enabled = true; } else if (this.Prompt.enabled) { this.Prompt.Hide(); this.Prompt.enabled = false; } } else if (this.Prompt.enabled) { this.Prompt.Hide(); this.Prompt.enabled = false; } if (this.Prompt.Circle[0].fillAmount == 0f) { this.Prompt.Circle[0].fillAmount = 1f; if (!this.Yandere.Chased && this.Yandere.Chasers == 0) { this.Yandere.Character.GetComponent <Animation>().CrossFade(this.Yandere.IdleAnim); this.Yandere.Follower.CharacterAnimation.CrossFade(this.Yandere.Follower.IdleAnim); this.Yandere.Follower.Pathfinding.canSearch = false; this.Yandere.Follower.Pathfinding.canMove = false; this.Yandere.Follower.enabled = false; this.Yandere.RPGCamera.enabled = false; this.Darkness.enabled = true; this.Yandere.CanMove = false; this.Boosting = true; this.FadeOut = true; } } if (this.Boosting) { if (this.FadeOut) { this.Darkness.color = new Color(this.Darkness.color.r, this.Darkness.color.g, this.Darkness.color.b, Mathf.MoveTowards(this.Darkness.color.a, 1f, Time.deltaTime)); if (this.Darkness.color.a == 1f) { this.Timer += Time.deltaTime; if (this.Timer > 1f) { if (this.Phase == 1) { Camera.main.transform.position = new Vector3(-26f, 5.3f, 17.5f); Camera.main.transform.eulerAngles = new Vector3(15f, 180f, 0f); this.Yandere.Follower.Character.transform.localScale = new Vector3(1f, 1f, 1f); this.YandereChair.transform.localPosition = new Vector3(this.YandereChair.transform.localPosition.x, this.YandereChair.transform.localPosition.y, -0.6f); this.SuitorChair.transform.localPosition = new Vector3(this.SuitorChair.transform.localPosition.x, this.SuitorChair.transform.localPosition.y, -0.6f); this.Yandere.Character.GetComponent <Animation>().Play("f02_sit_01"); this.Yandere.Follower.Character.GetComponent <Animation>().Play("sit_01"); this.Yandere.transform.eulerAngles = Vector3.zero; this.Yandere.Follower.transform.eulerAngles = Vector3.zero; this.Yandere.transform.position = this.YandereSitSpot.position; this.Yandere.Follower.transform.position = this.SuitorSitSpot.position; } else { this.Yandere.FixCamera(); this.Yandere.Follower.Character.transform.localScale = new Vector3(0.94f, 0.94f, 0.94f); this.YandereChair.transform.localPosition = new Vector3(this.YandereChair.transform.localPosition.x, this.YandereChair.transform.localPosition.y, -0.333333343f); this.SuitorChair.transform.localPosition = new Vector3(this.SuitorChair.transform.localPosition.x, this.SuitorChair.transform.localPosition.y, -0.333333343f); this.Yandere.Character.GetComponent <Animation>().Play(this.Yandere.IdleAnim); this.Yandere.Follower.Character.GetComponent <Animation>().Play(this.Yandere.Follower.IdleAnim); this.Yandere.transform.position = this.YandereSpot.position; this.Yandere.Follower.transform.position = this.SuitorSpot.position; } this.PromptBar.ClearButtons(); this.FadeOut = false; this.Phase++; return; } } } else { this.Darkness.color = new Color(this.Darkness.color.r, this.Darkness.color.g, this.Darkness.color.b, Mathf.MoveTowards(this.Darkness.color.a, 0f, Time.deltaTime)); if (this.Darkness.color.a == 0f) { if (this.Phase == 2) { this.TextBox.gameObject.SetActive(true); this.TextBox.localScale = Vector3.Lerp(this.TextBox.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f); if (this.TextBox.localScale.x > 0.9f) { if (!this.PromptBar.Show) { this.PromptBar.ClearButtons(); this.PromptBar.Label[0].text = "Continue"; this.PromptBar.UpdateButtons(); this.PromptBar.Show = true; } if (Input.GetButtonDown("A")) { this.PromptBar.Show = false; this.Phase++; return; } } } else if (this.Phase == 3) { if (this.TextBox.localScale.x > 0.1f) { this.TextBox.localScale = Vector3.Lerp(this.TextBox.localScale, Vector3.zero, Time.deltaTime * 10f); return; } this.TextBox.gameObject.SetActive(false); this.FadeOut = true; this.Phase++; return; } else if (this.Phase == 5) { DatingGlobals.SetSuitorTrait(2, DatingGlobals.GetSuitorTrait(2) + 1); this.Yandere.RPGCamera.enabled = true; this.Darkness.enabled = false; this.Yandere.CanMove = true; this.Boosting = false; this.Yandere.Follower.Pathfinding.canSearch = true; this.Yandere.Follower.Pathfinding.canMove = true; this.Yandere.Follower.enabled = true; this.Prompt.Hide(); this.Prompt.enabled = false; base.enabled = false; } } } } }