// Token: 0x06001301 RID: 4865 RVA: 0x0009B354 File Offset: 0x00099554 private void UpdateTopics() { for (int i = 1; i < this.TopicIcons.Length; i++) { UISprite uisprite = this.TopicIcons[i]; if (!ConversationGlobals.GetTopicDiscovered(i)) { uisprite.spriteName = 0.ToString(); uisprite.color = new Color(uisprite.color.r, uisprite.color.g, uisprite.color.b, 0.5f); } else { uisprite.spriteName = i.ToString(); } } for (int j = 1; j <= 25; j++) { UISprite uisprite2 = this.OpinionIcons[j]; if (!ConversationGlobals.GetTopicLearnedByStudent(j, this.LoveManager.RivalID)) { uisprite2.spriteName = "Unknown"; } else { int[] topics = this.JSON.Topics[this.LoveManager.RivalID].Topics; uisprite2.spriteName = this.OpinionSpriteNames[topics[j]]; } } }
// Token: 0x0600053D RID: 1341 RVA: 0x00049364 File Offset: 0x00047764 private void Update() { if (this.Yandere.Follower != null && this.Yandere.Follower.StudentID == 7) { if (!ConversationGlobals.GetTopicLearnedByStudent(3, 7) && Vector3.Distance(this.Yandere.Follower.transform.position, this.OccultClub.position) < 5f) { if (!ConversationGlobals.GetTopicDiscovered(3)) { this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); ConversationGlobals.SetTopicDiscovered(3, true); } this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion); ConversationGlobals.SetTopicLearnedByStudent(3, 7, true); } if (!ConversationGlobals.GetTopicLearnedByStudent(14, 7)) { StudentScript studentScript = this.StudentManager.Students[22]; StudentScript studentScript2 = this.StudentManager.Students[24]; StudentScript x = this.StudentManager.Students[25]; if (studentScript != null && x != null && studentScript.Actions[studentScript.Phase] == StudentActionType.ClubAction && studentScript.DistanceToDestination < 1f && studentScript2.Actions[studentScript2.Phase] == StudentActionType.ClubAction && studentScript2.DistanceToDestination < 1f && Vector3.Distance(this.Yandere.Follower.transform.position, this.MartialArts.position) < 5f) { if (!ConversationGlobals.GetTopicDiscovered(14)) { this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); ConversationGlobals.SetTopicDiscovered(14, true); } this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion); ConversationGlobals.SetTopicLearnedByStudent(14, 7, true); } } if (!ConversationGlobals.GetTopicLearnedByStudent(16, 7)) { StudentScript x2 = this.StudentManager.Students[22]; StudentScript x3 = this.StudentManager.Students[25]; if (x2 != null && x3 != null && this.VideoGames.gameObject.activeInHierarchy && Vector3.Distance(this.Yandere.Follower.transform.position, this.VideoGames.position) < 2.5f) { if (!ConversationGlobals.GetTopicDiscovered(16)) { this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); ConversationGlobals.SetTopicDiscovered(16, true); } this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion); ConversationGlobals.SetTopicLearnedByStudent(16, 7, true); } } if (!ConversationGlobals.GetTopicLearnedByStudent(20, 7) && Vector3.Distance(this.Yandere.Follower.transform.position, this.Kitten.position) < 2.5f) { if (!ConversationGlobals.GetTopicDiscovered(20)) { this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); ConversationGlobals.SetTopicDiscovered(20, true); } this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion); ConversationGlobals.SetTopicLearnedByStudent(20, 7, true); } } }
// Token: 0x06000374 RID: 884 RVA: 0x0003AD9C File Offset: 0x0003919C public static void DeleteAll() { Globals.DeleteCollection("TopicDiscovered_", ConversationGlobals.KeysOfTopicDiscovered()); foreach (IntAndIntPair intAndIntPair in ConversationGlobals.KeysOfTopicLearnedByStudent()) { Globals.Delete(string.Concat(new object[] { "TopicLearnedByStudent_", intAndIntPair.first.ToString(), '_', intAndIntPair.second.ToString() })); } KeysHelper.Delete("TopicLearnedByStudent_"); }
// Token: 0x060001F3 RID: 499 RVA: 0x000280F4 File Offset: 0x000264F4 private void UpdateTopics() { for (int i = 1; i < this.TopicIcons.Length; i++) { UISprite uisprite = this.TopicIcons[i]; if (!ConversationGlobals.GetTopicDiscovered(i)) { uisprite.spriteName = 0.ToString(); uisprite.color = new Color(uisprite.color.r, uisprite.color.g, uisprite.color.b, 0.5f); } else { uisprite.spriteName = i.ToString(); } } }
public void Continue() { Debug.Log("Proceeding to next line."); this.Offering = true; this.Spoken = false; this.EventPhase++; this.Timer = 0f; if (this.EventStudentID == 30 && this.EventPhase == 14) { if (!ConversationGlobals.GetTopicDiscovered(23)) { this.Yandere.NotificationManager.TopicName = "Family"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); ConversationGlobals.SetTopicDiscovered(23, true); } if (!ConversationGlobals.GetTopicLearnedByStudent(23, this.EventStudentID)) { this.Yandere.NotificationManager.TopicName = "Family"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion); ConversationGlobals.SetTopicLearnedByStudent(23, this.EventStudentID, true); } } if (this.EventPhase == this.EventSpeech.Length) { if (this.EventStudentID == 11) { Debug.Log("Scheme #6 has advanced to stage 5."); SchemeGlobals.SetSchemeStage(6, 5); } else if (this.EventStudentID == 30) { SchemeGlobals.HelpingKokona = true; Debug.Log("SchemeGlobals.HelpingKokona is now true."); } this.Student.CurrentDestination = this.Student.Destinations[this.Student.Phase]; this.Student.Pathfinding.target = this.Student.Destinations[this.Student.Phase]; this.Student.Pathfinding.canSearch = true; this.Student.Pathfinding.canMove = true; this.Student.Routine = true; this.Yandere.CanMove = true; this.Jukebox.Dip = 1f; UnityEngine.Object.Destroy(base.gameObject); } }
// Token: 0x060012FF RID: 4863 RVA: 0x0009B248 File Offset: 0x00099448 private void UpdateTopicHighlight() { if (this.Row < 1) { this.Row = 5; } else if (this.Row > 5) { this.Row = 1; } if (this.Column < 1) { this.Column = 5; } else if (this.Column > 5) { this.Column = 1; } this.TopicHighlight.localPosition = new Vector3((float)(-375 + 125 * this.Column), (float)(375 - 125 * this.Row), this.TopicHighlight.localPosition.z); this.TopicSelected = (this.Row - 1) * 5 + this.Column; this.TopicNameLabel.text = (ConversationGlobals.GetTopicDiscovered(this.TopicSelected) ? this.TopicNames[this.TopicSelected] : "??????????"); }
// Token: 0x06001C10 RID: 7184 RVA: 0x0014EC38 File Offset: 0x0014CE38 public void CheckTaskPickups() { Debug.Log("Checking Tasks that are completed by picking something up!"); if (TaskGlobals.GetTaskStatus(11) == 1 && this.Prompts[11].Circle[3] != null && this.Prompts[11].Circle[3].fillAmount == 0f) { if (this.StudentManager.Students[11] != null) { this.StudentManager.Students[11].TaskPhase = 5; } ConversationGlobals.SetTopicDiscovered(15, true); this.Yandere.NotificationManager.TopicName = "Cats"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion); ConversationGlobals.SetTopicLearnedByStudent(15, 11, true); TaskGlobals.SetTaskStatus(11, 2); UnityEngine.Object.Destroy(this.TaskObjects[11]); } if (TaskGlobals.GetTaskStatus(25) == 1 && this.Prompts[25].Circle[3].fillAmount == 0f) { if (this.StudentManager.Students[25] != null) { this.StudentManager.Students[25].TaskPhase = 5; } TaskGlobals.SetTaskStatus(25, 2); UnityEngine.Object.Destroy(this.TaskObjects[25]); } if (TaskGlobals.GetTaskStatus(37) == 1 && this.Prompts[37].Circle[3] != null && this.Prompts[37].Circle[3].fillAmount == 0f) { if (this.StudentManager.Students[37] != null) { this.StudentManager.Students[37].TaskPhase = 5; } TaskGlobals.SetTaskStatus(37, 2); UnityEngine.Object.Destroy(this.TaskObjects[37]); } }
// 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); } } }
// Token: 0x0600086B RID: 2155 RVA: 0x00094330 File Offset: 0x00092730 private void Update() { if (this.S.Talking) { if (this.S.Interaction == StudentInteractionType.Idle) { if (!this.Fake) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.IdleAnim); } if (this.S.TalkTimer == 0f) { if (!this.S.DialogueWheel.AppearanceWindow.Show) { this.S.DialogueWheel.Impatience.fillAmount += Time.deltaTime * 0.1f; } if (this.S.DialogueWheel.Impatience.fillAmount > 0.5f && this.S.Subtitle.Timer == 0f) { if (this.S.Pestered == 0) { this.S.Subtitle.UpdateLabel(SubtitleType.Impatience, 0, 5f); } else { this.S.Subtitle.UpdateLabel(SubtitleType.Impatience, 2, 5f); } } if (this.S.DialogueWheel.Impatience.fillAmount == 1f && this.S.DialogueWheel.Show) { if (this.S.Pestered == 0) { this.S.Subtitle.UpdateLabel(SubtitleType.Impatience, 1, 5f); } else { this.S.Subtitle.UpdateLabel(SubtitleType.Impatience, 3, 5f); } this.S.WaitTimer = 0f; this.S.Pestered += 5; this.S.DialogueWheel.Pestered = true; this.S.DialogueWheel.End(); } } } else if (this.S.Interaction == StudentInteractionType.Forgiving) { if (this.S.TalkTimer == 3f) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.Nod2Anim); this.S.RepRecovery = 5f; if (PlayerGlobals.PantiesEquipped == 6) { this.S.RepRecovery += 2.5f; } if (PlayerGlobals.SocialBonus > 0) { this.S.RepRecovery += 2.5f; } this.S.PendingRep += this.S.RepRecovery; this.S.Reputation.PendingRep += this.S.RepRecovery; this.S.ID = 0; while (this.S.ID < this.S.Outlines.Length) { this.S.Outlines[this.S.ID].color = new Color(0f, 1f, 0f, 1f); this.S.ID++; } this.S.Forgave = true; if (this.S.Witnessed == StudentWitnessType.Insanity || this.S.Witnessed == StudentWitnessType.WeaponAndBloodAndInsanity || this.S.Witnessed == StudentWitnessType.WeaponAndInsanity || this.S.Witnessed == StudentWitnessType.BloodAndInsanity) { this.S.Subtitle.UpdateLabel(SubtitleType.ForgivingInsanity, 0, 3f); } else if (this.S.Witnessed == StudentWitnessType.Accident) { this.S.Subtitle.UpdateLabel(SubtitleType.ForgivingAccident, 0, 5f); } else { this.S.Subtitle.UpdateLabel(SubtitleType.Forgiving, 0, 3f); } } else { if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } if (this.S.Character.GetComponent <Animation>()[this.S.Nod2Anim].time >= this.S.Character.GetComponent <Animation>()[this.S.Nod2Anim].length) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.IdleAnim); } if (this.S.TalkTimer <= 0f) { this.S.IgnoreTimer = 5f; this.S.DialogueWheel.End(); } } this.S.TalkTimer -= Time.deltaTime; } else if (this.S.Interaction == StudentInteractionType.ReceivingCompliment) { if (this.S.TalkTimer == 3f) { if (PlayerGlobals.Reputation < -33.33333f) { this.S.Subtitle.UpdateLabel(SubtitleType.StudentLowCompliment, 0, 3f); } else if (PlayerGlobals.Reputation > 33.33333f) { this.S.Subtitle.UpdateLabel(SubtitleType.StudentHighCompliment, 0, 3f); } else { this.S.Subtitle.UpdateLabel(SubtitleType.StudentMidCompliment, 0, 3f); } this.S.RepBonus = 0; if (PlayerGlobals.PantiesEquipped == 3) { this.S.RepBonus++; } if ((this.S.Male && PlayerGlobals.Seduction > 0) || PlayerGlobals.Seduction == 5) { this.S.RepBonus++; } if (PlayerGlobals.SocialBonus > 0) { this.S.RepBonus++; } this.S.Reputation.PendingRep += 1f + (float)this.S.RepBonus; this.S.PendingRep += 1f + (float)this.S.RepBonus; this.S.Complimented = true; } else if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } this.S.Character.GetComponent <Animation>().CrossFade(this.S.LookDownAnim); this.S.TalkTimer -= Time.deltaTime; if (this.S.TalkTimer <= 0f) { this.S.DialogueWheel.End(); } } else if (this.S.Interaction == StudentInteractionType.Gossiping) { if (this.S.TalkTimer == 3f) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.GossipAnim); this.S.Subtitle.UpdateLabel(SubtitleType.StudentGossip, 0, 3f); this.S.GossipBonus = 0; if (this.S.Reputation.Reputation > 33.33333f) { this.S.GossipBonus++; } if (PlayerGlobals.PantiesEquipped == 9) { this.S.GossipBonus++; } if (SchemeGlobals.DarkSecret) { this.S.GossipBonus++; } if (PlayerGlobals.GetStudentFriend(this.S.StudentID)) { this.S.GossipBonus++; } if ((this.S.Male && PlayerGlobals.Seduction > 1) || PlayerGlobals.Seduction == 5) { this.S.GossipBonus++; } if (PlayerGlobals.SocialBonus > 0) { this.S.GossipBonus++; } StudentGlobals.SetStudentReputation(this.S.DialogueWheel.Victim, StudentGlobals.GetStudentReputation(this.S.DialogueWheel.Victim) - (1 + this.S.GossipBonus)); this.S.Reputation.PendingRep -= 2f; this.S.PendingRep -= 2f; this.S.Gossiped = true; if (!ConversationGlobals.GetTopicDiscovered(15)) { this.S.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); ConversationGlobals.SetTopicDiscovered(15, true); } if (!ConversationGlobals.GetTopicLearnedByStudent(15, this.S.StudentID)) { this.S.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion); ConversationGlobals.SetTopicLearnedByStudent(15, this.S.StudentID, true); } } else { if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } if (this.S.Character.GetComponent <Animation>()[this.S.GossipAnim].time >= this.S.Character.GetComponent <Animation>()[this.S.GossipAnim].length) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.IdleAnim); } if (this.S.TalkTimer <= 0f) { this.S.DialogueWheel.End(); } } this.S.TalkTimer -= Time.deltaTime; } else if (this.S.Interaction == StudentInteractionType.Bye) { if (this.S.TalkTimer == 2f) { this.S.Subtitle.UpdateLabel(SubtitleType.StudentFarewell, 0, 2f); } else if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } this.S.Character.GetComponent <Animation>().CrossFade(this.S.IdleAnim); this.S.TalkTimer -= Time.deltaTime; if (this.S.TalkTimer <= 0f) { this.S.Pestered += 2; this.S.DialogueWheel.End(); } } else if (this.S.Interaction == StudentInteractionType.GivingTask) { if (this.S.TalkTimer == 100f) { this.S.Subtitle.UpdateLabel(this.S.TaskLineResponseType, this.S.TaskPhase, this.S.Subtitle.GetClipLength(this.S.StudentID, this.S.TaskPhase)); this.S.Character.GetComponent <Animation>().CrossFade(this.S.TaskAnims[this.S.TaskPhase]); this.S.CurrentAnim = this.S.TaskAnims[this.S.TaskPhase]; this.S.TalkTimer = this.S.Subtitle.GetClipLength(this.S.StudentID, this.S.TaskPhase); } else if (Input.GetButtonDown("A")) { this.S.Subtitle.Label.text = string.Empty; UnityEngine.Object.Destroy(this.S.Subtitle.CurrentClip); this.S.TalkTimer = 0f; } if (this.S.Character.GetComponent <Animation>()[this.S.CurrentAnim].time >= this.S.Character.GetComponent <Animation>()[this.S.CurrentAnim].length) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.IdleAnim); } this.S.TalkTimer -= Time.deltaTime; if (this.S.TalkTimer <= 0f) { if (this.S.TaskPhase == 5) { this.S.DialogueWheel.TaskWindow.TaskComplete = true; TaskGlobals.SetTaskStatus(this.S.StudentID, 3); PlayerGlobals.SetStudentFriend(this.S.StudentID, true); this.S.Interaction = StudentInteractionType.Idle; } else if (this.S.TaskPhase == 4 || this.S.TaskPhase == 0) { this.S.StudentManager.TaskManager.UpdateTaskStatus(); this.S.DialogueWheel.End(); } else if (this.S.TaskPhase == 3) { this.S.DialogueWheel.TaskWindow.UpdateWindow(this.S.StudentID); this.S.Interaction = StudentInteractionType.Idle; } else { this.S.TaskPhase++; this.S.Subtitle.UpdateLabel(this.S.TaskLineResponseType, this.S.TaskPhase, this.S.Subtitle.GetClipLength(this.S.StudentID, this.S.TaskPhase)); this.S.Character.GetComponent <Animation>().CrossFade(this.S.TaskAnims[this.S.TaskPhase]); this.S.CurrentAnim = this.S.TaskAnims[this.S.TaskPhase]; this.S.TalkTimer = this.S.Subtitle.GetClipLength(this.S.StudentID, this.S.TaskPhase); } } } else if (this.S.Interaction == StudentInteractionType.FollowingPlayer) { if (this.S.TalkTimer == 2f) { if ((this.S.Clock.HourTime > 8f && this.S.Clock.HourTime < 13f) || (this.S.Clock.HourTime > 13.375f && this.S.Clock.HourTime < 15.5f)) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.GossipAnim); this.S.Subtitle.UpdateLabel(SubtitleType.StudentStay, 0, 5f); } else { this.S.Character.GetComponent <Animation>().CrossFade(this.S.Nod1Anim); this.S.Subtitle.UpdateLabel(SubtitleType.StudentFollow, 0, 2f); this.Follow = true; } } else { if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } if (this.S.Character.GetComponent <Animation>()[this.S.Nod1Anim].time >= this.S.Character.GetComponent <Animation>()[this.S.Nod1Anim].length) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.IdleAnim); } if (this.S.TalkTimer <= 0f) { this.S.DialogueWheel.End(); if (this.Follow) { this.S.Pathfinding.target = this.S.Yandere.transform; this.S.Prompt.Label[0].text = " Stop"; if (this.S.StudentID == 7) { this.S.StudentManager.FollowerLookAtTarget.position = this.S.DefaultTarget.position; this.S.StudentManager.LoveManager.Follower = this.S; } this.S.Yandere.Follower = this.S; this.S.Yandere.Followers++; this.S.Following = true; } this.Follow = false; } } this.S.TalkTimer -= Time.deltaTime; } else if (this.S.Interaction == StudentInteractionType.GoingAway) { if (this.S.TalkTimer == 3f) { if ((this.S.Clock.HourTime > 8f && this.S.Clock.HourTime < 13f) || (this.S.Clock.HourTime > 13.375f && this.S.Clock.HourTime < 15.5f)) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.GossipAnim); this.S.Subtitle.UpdateLabel(SubtitleType.StudentStay, 0, 5f); } else { this.S.Character.GetComponent <Animation>().CrossFade(this.S.Nod1Anim); this.S.Subtitle.UpdateLabel(SubtitleType.StudentLeave, 0, 3f); this.S.GoAway = true; } } else { if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } if (this.S.Character.GetComponent <Animation>()[this.S.Nod1Anim].time >= this.S.Character.GetComponent <Animation>()[this.S.Nod1Anim].length) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.IdleAnim); } if (this.S.TalkTimer <= 0f) { this.S.DialogueWheel.End(); if (this.S.GoAway) { this.S.CurrentDestination = this.S.StudentManager.GoAwaySpots.List[this.S.StudentID]; this.S.Pathfinding.target = this.S.StudentManager.GoAwaySpots.List[this.S.StudentID]; } } } this.S.TalkTimer -= Time.deltaTime; } else if (this.S.Interaction == StudentInteractionType.DistractingTarget) { if (this.S.TalkTimer == 3f) { if ((this.S.Clock.HourTime > 8f && this.S.Clock.HourTime < 13f) || (this.S.Clock.HourTime > 13.375f && this.S.Clock.HourTime < 15.5f)) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.GossipAnim); this.S.Subtitle.UpdateLabel(SubtitleType.StudentStay, 0, 5f); } else { StudentScript studentScript = this.S.StudentManager.Students[this.S.DialogueWheel.Victim]; if (studentScript.Routine && !studentScript.TargetedForDistraction && !studentScript.InEvent) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.Nod1Anim); this.S.Subtitle.UpdateLabel(SubtitleType.StudentDistract, 0, 3f); this.Refuse = false; } else { this.S.Character.GetComponent <Animation>().CrossFade(this.S.GossipAnim); this.S.Subtitle.UpdateLabel(SubtitleType.StudentDistractRefuse, 0, 3f); this.Refuse = true; } } } else { if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } if (this.S.Character.GetComponent <Animation>()[this.S.Nod1Anim].time >= this.S.Character.GetComponent <Animation>()[this.S.Nod1Anim].length) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.IdleAnim); } if (this.S.TalkTimer <= 0f) { this.S.DialogueWheel.End(); if (!this.Refuse && (this.S.Clock.HourTime < 8f || (this.S.Clock.HourTime > 13f && this.S.Clock.HourTime < 13.375f) || this.S.Clock.HourTime > 15.5f) && !this.S.Distracting) { this.S.DistractionTarget = this.S.StudentManager.Students[this.S.DialogueWheel.Victim]; this.S.DistractionTarget.TargetedForDistraction = true; this.S.CurrentDestination = this.S.DistractionTarget.transform; this.S.Pathfinding.target = this.S.DistractionTarget.transform; this.S.Pathfinding.speed = 4f; this.S.TargetDistance = 1f; this.S.DistractTimer = 10f; this.S.Distracting = true; this.S.Routine = false; this.S.CanTalk = false; } } } this.S.TalkTimer -= Time.deltaTime; } else if (this.S.Interaction == StudentInteractionType.PersonalGrudge) { if (this.S.TalkTimer == 5f) { if (this.S.Persona == PersonaType.Coward) { this.S.Subtitle.UpdateLabel(SubtitleType.CowardGrudge, 0, 5f); this.S.Character.GetComponent <Animation>().CrossFade(this.S.CowardAnim); this.S.TalkTimer = 5f; } else if (this.S.Persona == PersonaType.Evil) { this.S.Subtitle.UpdateLabel(SubtitleType.EvilGrudge, 0, 5f); this.S.Character.GetComponent <Animation>().CrossFade(this.S.EvilAnim); this.S.TalkTimer = 5f; } else { if (!this.S.Male) { this.S.Subtitle.UpdateLabel(SubtitleType.GrudgeWarning, 0, 99f); } else { this.S.Subtitle.UpdateLabel(SubtitleType.GrudgeWarning, 1, 99f); } this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; this.S.Character.GetComponent <Animation>().CrossFade(this.S.GrudgeAnim); } } else { if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } if (this.S.TalkTimer <= 0f) { this.S.DialogueWheel.End(); } } this.S.TalkTimer -= Time.deltaTime; } else if (this.S.Interaction == StudentInteractionType.ClubInfo) { if (this.S.TalkTimer == 100f) { this.S.Subtitle.UpdateLabel(this.S.ClubInfoResponseType, this.S.ClubPhase, 99f); this.S.TalkTimer = this.S.Subtitle.GetClubClipLength(this.S.Club, this.S.ClubPhase); } else if (Input.GetButtonDown("A")) { this.S.Subtitle.Label.text = string.Empty; UnityEngine.Object.Destroy(this.S.Subtitle.CurrentClip); this.S.TalkTimer = 0f; } this.S.TalkTimer -= Time.deltaTime; if (this.S.TalkTimer <= 0f) { if (this.S.ClubPhase == 3) { this.S.DialogueWheel.Panel.enabled = true; this.S.DialogueWheel.Show = true; this.S.Subtitle.Label.text = string.Empty; this.S.Interaction = StudentInteractionType.Idle; this.S.TalkTimer = 0f; } else { this.S.ClubPhase++; this.S.Subtitle.UpdateLabel(this.S.ClubInfoResponseType, this.S.ClubPhase, 99f); this.S.TalkTimer = this.S.Subtitle.GetClubClipLength(this.S.Club, this.S.ClubPhase); } } } else if (this.S.Interaction == StudentInteractionType.ClubJoin) { if (this.S.TalkTimer == 100f) { if (this.S.ClubPhase == 1) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubJoin, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } else if (this.S.ClubPhase == 2) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubAccept, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } else if (this.S.ClubPhase == 3) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubRefuse, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } else if (this.S.ClubPhase == 4) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubRejoin, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } else if (this.S.ClubPhase == 5) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubExclusive, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } else if (this.S.ClubPhase == 6) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubGrudge, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } } else if (Input.GetButtonDown("A")) { this.S.Subtitle.Label.text = string.Empty; UnityEngine.Object.Destroy(this.S.Subtitle.CurrentClip); this.S.TalkTimer = 0f; } this.S.TalkTimer -= Time.deltaTime; if (this.S.TalkTimer <= 0f) { if (this.S.ClubPhase == 1) { this.S.DialogueWheel.ClubWindow.Club = this.S.Club; this.S.DialogueWheel.ClubWindow.UpdateWindow(); this.S.Subtitle.Label.text = string.Empty; this.S.Interaction = StudentInteractionType.Idle; } else { this.S.DialogueWheel.End(); if (this.S.Club == ClubType.MartialArts) { this.S.ChangingBooth.CheckYandereClub(); } } } } else if (this.S.Interaction == StudentInteractionType.ClubQuit) { if (this.S.TalkTimer == 100f) { if (this.S.ClubPhase == 1) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubQuit, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } else if (this.S.ClubPhase == 2) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubConfirm, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } else if (this.S.ClubPhase == 3) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubDeny, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } } else if (Input.GetButtonDown("A")) { this.S.Subtitle.Label.text = string.Empty; UnityEngine.Object.Destroy(this.S.Subtitle.CurrentClip); this.S.TalkTimer = 0f; } this.S.TalkTimer -= Time.deltaTime; if (this.S.TalkTimer <= 0f) { if (this.S.ClubPhase == 1) { this.S.DialogueWheel.ClubWindow.Club = this.S.Club; this.S.DialogueWheel.ClubWindow.Quitting = true; this.S.DialogueWheel.ClubWindow.UpdateWindow(); this.S.Subtitle.Label.text = string.Empty; this.S.Interaction = StudentInteractionType.Idle; } else { this.S.DialogueWheel.End(); if (this.S.Club == ClubType.MartialArts) { this.S.ChangingBooth.CheckYandereClub(); } if (this.S.ClubPhase == 2) { } } } } else if (this.S.Interaction == StudentInteractionType.ClubBye) { if (this.S.TalkTimer == this.S.Subtitle.ClubFarewellClips[(int)this.S.Club].length) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubFarewell, (int)this.S.Club, this.S.Subtitle.ClubFarewellClips[(int)this.S.Club].length); } else if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } this.S.TalkTimer -= Time.deltaTime; if (this.S.TalkTimer <= 0f) { this.S.DialogueWheel.End(); } } else if (this.S.Interaction == StudentInteractionType.ClubActivity) { if (this.S.TalkTimer == 100f) { if (this.S.ClubPhase == 1) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubActivity, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } else if (this.S.ClubPhase == 2) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubYes, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } else if (this.S.ClubPhase == 3) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubNo, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } else if (this.S.ClubPhase == 4) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubEarly, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } else if (this.S.ClubPhase == 5) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubLate, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } } else if (Input.GetButtonDown("A")) { this.S.Subtitle.Label.text = string.Empty; UnityEngine.Object.Destroy(this.S.Subtitle.CurrentClip); this.S.TalkTimer = 0f; } this.S.TalkTimer -= Time.deltaTime; if (this.S.TalkTimer <= 0f) { if (this.S.ClubPhase == 1) { this.S.DialogueWheel.ClubWindow.Club = this.S.Club; this.S.DialogueWheel.ClubWindow.Activity = true; this.S.DialogueWheel.ClubWindow.UpdateWindow(); this.S.Subtitle.Label.text = string.Empty; this.S.Interaction = StudentInteractionType.Idle; } else if (this.S.ClubPhase == 2) { this.S.Police.Darkness.enabled = true; this.S.Police.ClubActivity = true; this.S.Police.FadeOut = true; this.S.Subtitle.Label.text = string.Empty; this.S.Interaction = StudentInteractionType.Idle; } else { this.S.DialogueWheel.End(); } } } else if (this.S.Interaction == StudentInteractionType.ClubUnwelcome) { if (this.S.TalkTimer == 5f) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubUnwelcome, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } else { if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } if (this.S.TalkTimer <= 0f) { this.S.DialogueWheel.End(); } } this.S.TalkTimer -= Time.deltaTime; } else if (this.S.Interaction == StudentInteractionType.ClubKick) { if (this.S.TalkTimer == 5f) { this.S.Subtitle.UpdateLabel(SubtitleType.ClubKick, (int)this.S.Club, 99f); this.S.TalkTimer = this.S.Subtitle.CurrentClip.GetComponent <AudioSource>().clip.length; } else { if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } if (this.S.TalkTimer <= 0f) { ClubGlobals.Club = ClubType.None; this.S.DialogueWheel.End(); } } this.S.TalkTimer -= Time.deltaTime; } else if (this.S.Interaction == StudentInteractionType.NamingCrush) { if (this.S.TalkTimer == 3f) { if (this.S.DialogueWheel.Victim != this.S.Crush) { this.S.Subtitle.UpdateLabel(SubtitleType.SuitorLove, 0, 3f); this.S.Character.GetComponent <Animation>().CrossFade(this.S.GossipAnim); this.S.CurrentAnim = this.S.GossipAnim; } else { DatingGlobals.SuitorProgress = 1; this.S.Yandere.LoveManager.SuitorProgress++; this.S.Subtitle.UpdateLabel(SubtitleType.SuitorLove, 1, 3f); this.S.Character.GetComponent <Animation>().CrossFade(this.S.Nod1Anim); this.S.CurrentAnim = this.S.Nod1Anim; } } else { if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } if (this.S.Character.GetComponent <Animation>()[this.S.CurrentAnim].time >= this.S.Character.GetComponent <Animation>()[this.S.CurrentAnim].length) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.IdleAnim); } if (this.S.TalkTimer <= 0f) { this.S.DialogueWheel.End(); } } this.S.TalkTimer -= Time.deltaTime; } else if (this.S.Interaction == StudentInteractionType.ChangingAppearance) { if (this.S.TalkTimer == 3f) { this.S.Subtitle.UpdateLabel(SubtitleType.SuitorLove, 2, 3f); this.S.Character.GetComponent <Animation>().CrossFade(this.S.Nod1Anim); } else { if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } if (this.S.Character.GetComponent <Animation>()[this.S.Nod1Anim].time >= this.S.Character.GetComponent <Animation>()[this.S.Nod1Anim].length) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.IdleAnim); } if (this.S.TalkTimer <= 0f) { this.S.DialogueWheel.End(); } } this.S.TalkTimer -= Time.deltaTime; } else if (this.S.Interaction == StudentInteractionType.Court) { if (this.S.TalkTimer == 3f) { if (this.S.Male) { this.S.Subtitle.UpdateLabel(SubtitleType.SuitorLove, 3, 5f); } else { this.S.Subtitle.UpdateLabel(SubtitleType.SuitorLove, 4, 5f); } this.S.Character.GetComponent <Animation>().CrossFade(this.S.Nod1Anim); } else { if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } if (this.S.Character.GetComponent <Animation>()[this.S.Nod1Anim].time >= this.S.Character.GetComponent <Animation>()[this.S.Nod1Anim].length) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.IdleAnim); } if (this.S.TalkTimer <= 0f) { this.S.MeetTime = this.S.Clock.HourTime; if (this.S.Male) { this.S.MeetSpot = this.S.StudentManager.SuitorSpot; } else { this.S.MeetSpot = this.S.StudentManager.RomanceSpot; this.S.StudentManager.LoveManager.RivalWaiting = true; } this.S.DialogueWheel.End(); } } this.S.TalkTimer -= Time.deltaTime; } else if (this.S.Interaction == StudentInteractionType.Gift) { if (this.S.TalkTimer == 5f) { this.S.Subtitle.UpdateLabel(SubtitleType.SuitorLove, 5, 99f); this.S.Character.GetComponent <Animation>().CrossFade(this.S.Nod1Anim); } else { if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } if (this.S.Character.GetComponent <Animation>()[this.S.Nod1Anim].time >= this.S.Character.GetComponent <Animation>()[this.S.Nod1Anim].length) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.IdleAnim); } if (this.S.TalkTimer <= 0f) { this.S.Rose = true; this.S.DialogueWheel.End(); } } this.S.TalkTimer -= Time.deltaTime; } else if (this.S.Interaction == StudentInteractionType.Feeding) { if (this.S.TalkTimer == 3f) { if (!this.S.Fed) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.Nod2Anim); this.S.Subtitle.UpdateLabel(SubtitleType.AcceptFood, 0, 3f); this.S.RepBonus = 0; if (PlayerGlobals.PantiesEquipped == 3) { this.S.RepBonus++; } if ((this.S.Male && PlayerGlobals.Seduction > 0) || PlayerGlobals.Seduction == 5) { this.S.RepBonus++; } this.S.Reputation.PendingRep += 5f + (float)this.S.RepBonus; this.S.PendingRep += 5f + (float)this.S.RepBonus; } else { this.S.Character.GetComponent <Animation>().CrossFade(this.S.GossipAnim); this.S.Subtitle.UpdateLabel(SubtitleType.RejectFood, 0, 3f); } } else if (Input.GetButtonDown("A")) { this.S.TalkTimer = 0f; } if (this.S.Character.GetComponent <Animation>()[this.S.Nod2Anim].time >= this.S.Character.GetComponent <Animation>()[this.S.Nod2Anim].length) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.IdleAnim); } if (this.S.Character.GetComponent <Animation>()[this.S.GossipAnim].time >= this.S.Character.GetComponent <Animation>()[this.S.GossipAnim].length) { this.S.Character.GetComponent <Animation>().CrossFade(this.S.IdleAnim); } this.S.TalkTimer -= Time.deltaTime; if (this.S.TalkTimer <= 0f) { if (!this.S.Fed) { this.S.Yandere.PickUp.FoodPieces[this.S.Yandere.PickUp.Food].SetActive(false); this.S.Yandere.PickUp.Food--; this.S.Fed = true; } this.S.DialogueWheel.End(); this.S.StudentManager.UpdateStudents(); } } if (this.S.Waiting) { this.S.WaitTimer -= Time.deltaTime; if (this.S.WaitTimer <= 0f) { this.S.DialogueWheel.TaskManager.UpdateTaskStatus(); this.S.Talking = false; this.S.Waiting = false; if (!this.Fake) { this.S.Pathfinding.canSearch = true; this.S.Pathfinding.canMove = true; this.S.Obstacle.enabled = false; this.S.Alarmed = false; if (!this.S.Following && !this.S.Distracting && !this.S.Wet) { this.S.Routine = true; } if (!this.S.Following) { var emission = S.Hearts.emission; emission.enabled = false; } } this.S.StudentManager.EnablePrompts(); } } else { this.S.targetRotation = Quaternion.LookRotation(new Vector3(this.S.Yandere.transform.position.x, base.transform.position.y, this.S.Yandere.transform.position.z) - base.transform.position); base.transform.rotation = Quaternion.Slerp(base.transform.rotation, this.S.targetRotation, 10f * Time.deltaTime); } } }
// Token: 0x060002A9 RID: 681 RVA: 0x000345D8 File Offset: 0x000329D8 private void Update() { if (!this.Clock.StopTime && this.EventCheck) { if (this.EventStudent[1] == null) { this.EventStudent[1] = this.StudentManager.Students[6]; } else if (!this.EventStudent[1].Alive) { this.EventCheck = false; base.enabled = false; } if (this.EventStudent[2] == null) { this.EventStudent[2] = this.StudentManager.Students[7]; } else if (!this.EventStudent[2].Alive) { this.EventCheck = false; base.enabled = false; } if (this.Clock.HourTime > 13.01f && this.EventStudent[1] != null && this.EventStudent[2] != null && this.EventStudent[1].Pathfinding.canMove && this.EventStudent[1].Pathfinding.canMove) { this.EventStudent[1].CurrentDestination = this.EventLocation[1]; this.EventStudent[1].Pathfinding.target = this.EventLocation[1]; this.EventStudent[1].EventManager = this; this.EventStudent[1].InEvent = true; this.EventStudent[2].CurrentDestination = this.EventLocation[2]; this.EventStudent[2].Pathfinding.target = this.EventLocation[2]; this.EventStudent[2].EventManager = this; this.EventStudent[2].InEvent = true; this.EventCheck = false; this.EventOn = true; } } if (this.EventOn) { float num = Vector3.Distance(this.Yandere.transform.position, this.EventStudent[this.EventSpeaker[this.EventPhase]].transform.position); if (this.Clock.HourTime > 13.5f || this.EventStudent[1].WitnessedCorpse || this.EventStudent[2].WitnessedCorpse || this.EventStudent[1].Dying || this.EventStudent[2].Dying || this.EventStudent[2].Splashed) { this.EndEvent(); } else { if (!this.EventStudent[1].Pathfinding.canMove && !this.EventStudent[1].Private) { this.EventStudent[1].Character.GetComponent<Animation>().CrossFade(this.EventStudent[1].IdleAnim); this.EventStudent[1].Private = true; this.StudentManager.UpdateStudents(); } if (!this.EventStudent[2].Pathfinding.canMove && !this.EventStudent[2].Private) { this.EventStudent[2].Character.GetComponent<Animation>().CrossFade(this.EventStudent[2].IdleAnim); this.EventStudent[2].Private = true; this.StudentManager.UpdateStudents(); } if (!this.EventStudent[1].Pathfinding.canMove && !this.EventStudent[2].Pathfinding.canMove) { if (!this.InterruptZone.activeInHierarchy) { this.InterruptZone.SetActive(true); } if (!this.Spoken) { this.EventStudent[this.EventSpeaker[this.EventPhase]].Character.GetComponent<Animation>().CrossFade(this.EventAnim[this.EventPhase]); if (num < 10f) { this.EventSubtitle.text = this.EventSpeech[this.EventPhase]; } AudioClipPlayer.Play(this.EventClip[this.EventPhase], this.EventStudent[this.EventSpeaker[this.EventPhase]].transform.position + Vector3.up * 1.5f, 5f, 10f, out this.VoiceClip, this.Yandere.transform.position.y); this.Spoken = true; } else { if (this.Yandere.transform.position.z > 0f) { this.Timer += Time.deltaTime; if (this.Timer > this.EventClip[this.EventPhase].length) { this.EventSubtitle.text = string.Empty; } if (this.Yandere.transform.position.y < this.EventStudent[1].transform.position.y - 1f) { this.EventSubtitle.transform.localScale = Vector3.zero; } else if (num < 10f) { this.Scale = Mathf.Abs((num - 10f) * 0.2f); if (this.Scale < 0f) { this.Scale = 0f; } if (this.Scale > 1f) { this.Scale = 1f; } this.EventSubtitle.transform.localScale = new Vector3(this.Scale, this.Scale, this.Scale); } else { this.EventSubtitle.transform.localScale = Vector3.zero; } Animation component = this.EventStudent[this.EventSpeaker[this.EventPhase]].Character.GetComponent<Animation>(); if (component[this.EventAnim[this.EventPhase]].time >= component[this.EventAnim[this.EventPhase]].length) { component.CrossFade(this.EventStudent[this.EventSpeaker[this.EventPhase]].IdleAnim); } if (this.Timer > this.EventClip[this.EventPhase].length + 1f) { this.Spoken = false; this.EventPhase++; this.Timer = 0f; if (this.EventPhase == 4) { if (!ConversationGlobals.GetTopicDiscovered(22)) { this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); ConversationGlobals.SetTopicDiscovered(22, true); } if (!ConversationGlobals.GetTopicLearnedByStudent(22, 7)) { this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion); ConversationGlobals.SetTopicLearnedByStudent(22, 7, true); } } if (this.EventPhase == this.EventSpeech.Length) { this.EndEvent(); } } } if (this.Yandere.transform.position.y > this.EventStudent[1].transform.position.y - 1f && this.EventPhase == 7 && num < 5f && !EventGlobals.Event1) { this.Yandere.NotificationManager.DisplayNotification(NotificationType.Info); EventGlobals.Event1 = true; } } } } } }
// Token: 0x060001A7 RID: 423 RVA: 0x0001DDC8 File Offset: 0x0001C1C8 private void Update() { if (Input.GetKeyDown(KeyCode.Space)) { } if (!this.Clock.StopTime && this.EventCheck && this.Clock.HourTime > this.EventTime) { this.EventStudent = this.StudentManager.Students[this.EventStudentID]; if (this.EventStudent != null && !this.EventStudent.Distracted && !this.EventStudent.Meeting) { if (!this.EventStudent.WitnessedMurder) { this.Snacks.Prompt.Hide(); this.Snacks.Prompt.enabled = false; this.Snacks.enabled = false; this.EventStudent.CurrentDestination = this.EventLocations[0]; this.EventStudent.Pathfinding.target = this.EventLocations[0]; this.EventStudent.Obstacle.checkTime = 99f; this.EventStudent.CookingEvent = this; this.EventStudent.InEvent = true; this.EventStudent.Private = true; this.EventStudent.Prompt.Hide(); this.EventCheck = false; this.EventActive = true; if (this.EventStudent.Following) { this.EventStudent.Pathfinding.canMove = true; this.EventStudent.Pathfinding.speed = 1f; this.EventStudent.Following = false; this.EventStudent.Routine = true; this.Yandere.Followers--; this.EventStudent.Subtitle.UpdateLabel(SubtitleType.StopFollowApology, 0, 3f); this.EventStudent.Prompt.Label[0].text = " Talk"; } } else { base.enabled = false; } } } if (this.EventActive) { if (this.Clock.HourTime > this.EventTime + 0.5f || this.EventStudent.WitnessedMurder || this.EventStudent.Splashed || this.EventStudent.Alarmed || this.EventStudent.Dying || this.EventStudent.Yandere.Cooking) { this.EndEvent(); } else if (!this.EventStudent.Pathfinding.canMove) { if (!ConversationGlobals.GetTopicLearnedByStudent(1, 7) && Vector3.Distance(this.Yandere.transform.position, this.EventStudent.transform.position) < 5f) { if (!ConversationGlobals.GetTopicDiscovered(1)) { this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); ConversationGlobals.SetTopicDiscovered(1, true); } this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion); ConversationGlobals.SetTopicLearnedByStudent(1, 7, true); } if (this.EventPhase == -1) { this.Timer += Time.deltaTime; if (this.Timer > 5f) { SchemeGlobals.SetSchemeStage(4, 5); this.Schemes.UpdateInstructions(); this.RivalPhone.SetActive(false); this.EventSubtitle.text = string.Empty; this.EventPhase++; this.Timer = 0f; } } else if (this.EventPhase == 0) { if (!this.RivalPhone.activeInHierarchy) { this.EventStudent.Character.GetComponent <Animation>().Play("f02_prepareFood_00"); this.Octodog.transform.parent = this.EventStudent.RightHand; this.Octodog.transform.localPosition = new Vector3(0.0129f, -0.02475f, 0.0316f); this.Octodog.transform.localEulerAngles = new Vector3(-90f, 0f, 0f); this.Sausage.transform.parent = this.EventStudent.RightHand; this.Sausage.transform.localPosition = new Vector3(0.013f, -0.038f, 0.015f); this.Sausage.transform.localEulerAngles = Vector3.zero; this.EventPhase++; } else { AudioClipPlayer.Play(this.EventClip[0], this.EventStudent.transform.position + Vector3.up, 5f, 10f, out this.VoiceClip, out this.CurrentClipLength); this.EventStudent.Character.GetComponent <Animation>().CrossFade(this.EventAnim[0]); this.EventSubtitle.text = this.EventSpeech[0]; this.EventPhase--; } } else if (this.EventPhase == 1) { if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time > 1f) { this.EventPhase++; } } else if (this.EventPhase == 2) { this.Refrigerator.GetComponent <Animation>().Play("FridgeOpen"); if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time > 3f) { this.Jar.transform.parent = this.EventStudent.RightHand; this.EventPhase++; } } else if (this.EventPhase == 3) { if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time > 5f) { this.JarLid.transform.parent = this.EventStudent.LeftHand; this.EventPhase++; } } else if (this.EventPhase == 4) { if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time > 6f) { this.JarLid.transform.parent = this.CookingClub; this.JarLid.transform.localPosition = new Vector3(0.334585f, 1f, -0.2528915f); this.JarLid.transform.localEulerAngles = new Vector3(0f, 30f, 0f); this.Jar.transform.parent = this.CookingClub; this.Jar.transform.localPosition = new Vector3(0.29559f, 1f, 0.2029152f); this.Jar.transform.localEulerAngles = new Vector3(0f, -150f, 0f); this.EventPhase++; } } else if (this.EventPhase == 5) { if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time > 7f) { this.Knife.GetComponent <WeaponScript>().FingerprintID = this.EventStudent.StudentID; this.Knife.parent = this.EventStudent.LeftHand; this.Knife.localPosition = new Vector3(0f, -0.01f, 0f); this.Knife.localEulerAngles = new Vector3(0f, 0f, -90f); this.EventPhase++; } } else if (this.EventPhase == 6) { if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time >= this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].length) { this.EventStudent.Character.GetComponent <Animation>().CrossFade("f02_cutFood_00"); this.Sausage.SetActive(true); this.EventPhase++; } } else if (this.EventPhase == 7) { if (this.EventStudent.Character.GetComponent <Animation>()["f02_cutFood_00"].time > 2.66666f) { this.Octodog.SetActive(true); this.Sausage.SetActive(false); this.EventPhase++; } } else if (this.EventPhase == 8) { if (this.EventStudent.Character.GetComponent <Animation>()["f02_cutFood_00"].time > 3f) { this.Rotation = Mathf.MoveTowards(this.Rotation, 90f, Time.deltaTime * 360f); this.Octodog.transform.localEulerAngles = new Vector3(this.Rotation, this.Octodog.transform.localEulerAngles.y, this.Octodog.transform.localEulerAngles.z); this.Octodog.transform.localPosition = new Vector3(this.Octodog.transform.localPosition.x, this.Octodog.transform.localPosition.y, Mathf.MoveTowards(this.Octodog.transform.localPosition.z, 0.012f, Time.deltaTime)); } if (this.EventStudent.Character.GetComponent <Animation>()["f02_cutFood_00"].time > 6f) { this.Octodog.SetActive(false); this.Octodogs[this.Loop].gameObject.SetActive(true); this.EventPhase++; } } else if (this.EventPhase == 9) { if (this.EventStudent.Character.GetComponent <Animation>()["f02_cutFood_00"].time >= this.EventStudent.Character.GetComponent <Animation>()["f02_cutFood_00"].length) { if (this.Loop < this.Octodogs.Length - 1) { this.Octodog.transform.localEulerAngles = new Vector3(-90f, this.Octodog.transform.localEulerAngles.y, this.Octodog.transform.localEulerAngles.z); this.Octodog.transform.localPosition = new Vector3(this.Octodog.transform.localPosition.x, this.Octodog.transform.localPosition.y, 0.0316f); this.EventStudent.Character.GetComponent <Animation>()["f02_cutFood_00"].time = 0f; this.EventStudent.Character.GetComponent <Animation>().Play("f02_cutFood_00"); this.Sausage.SetActive(true); this.EventPhase = 7; this.Rotation = -90f; this.Loop++; } else { this.EventStudent.Character.GetComponent <Animation>().Play("f02_prepareFood_00"); this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time = this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].length; this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].speed = -1f; this.EventPhase++; } } } else if (this.EventPhase == 10) { if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time < this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].length - 1f) { this.Knife.parent = this.CookingClub; this.Knife.localPosition = new Vector3(0.197f, 1.1903f, -0.33333f); this.Knife.localEulerAngles = new Vector3(45f, -90f, -90f); this.EventPhase++; } } else if (this.EventPhase == 11) { if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time < this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].length - 2f) { this.JarLid.parent = this.EventStudent.LeftHand; this.Jar.parent = this.EventStudent.RightHand; this.EventPhase++; } } else if (this.EventPhase == 12) { if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time < this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].length - 3f) { this.JarLid.parent = this.Jar; this.JarLid.localPosition = new Vector3(0f, 0.175f, 0f); this.JarLid.localEulerAngles = Vector3.zero; this.Refrigerator.GetComponent <Animation>().Play("FridgeOpen"); this.Refrigerator.GetComponent <Animation>()["FridgeOpen"].time = this.Refrigerator.GetComponent <Animation>()["FridgeOpen"].length; this.Refrigerator.GetComponent <Animation>()["FridgeOpen"].speed = -1f; this.EventPhase++; } } else if (this.EventPhase == 13) { if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time < this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].length - 5f) { this.Jar.parent = this.CookingClub; this.Jar.localPosition = new Vector3(0.1f, 0.941f, 0.75f); this.Jar.localEulerAngles = new Vector3(0f, 90f, 0f); this.EventPhase++; } } else if (this.EventPhase == 14) { if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time <= 0f) { this.Knife.GetComponent <Collider>().enabled = true; this.Plate.parent = this.EventStudent.RightHand; this.Plate.localPosition = new Vector3(0f, 0.011f, -0.156765f); this.Plate.localEulerAngles = new Vector3(0f, -90f, -180f); this.EventStudent.CurrentDestination = this.EventLocations[1]; this.EventStudent.Pathfinding.target = this.EventLocations[1]; this.EventStudent.Character.GetComponent <Animation>()[this.EventStudent.CarryAnim].weight = 1f; this.EventPhase++; } } else if (this.EventPhase == 15) { this.Plate.parent = this.CookingClub; this.Plate.localPosition = new Vector3(-3.66666f, 0.9066666f, -2.379f); this.Plate.localEulerAngles = new Vector3(0f, -90f, 0f); this.EndEvent(); } float num = Vector3.Distance(this.Yandere.transform.position, this.EventStudent.transform.position); if (num < 10f) { float num2 = Mathf.Abs((num - 10f) * 0.2f); if (num2 < 0f) { num2 = 0f; } if (num2 > 1f) { num2 = 1f; } this.EventSubtitle.transform.localScale = new Vector3(num2, num2, num2); } else { this.EventSubtitle.transform.localScale = Vector3.zero; } } } }
// Token: 0x06000638 RID: 1592 RVA: 0x00058E34 File Offset: 0x00057234 private void Update() { if (!this.Clock.StopTime && this.EventCheck) { if (this.Clock.HourTime > this.EventTime + 0.5f) { base.enabled = false; } else if (this.Clock.HourTime > this.EventTime) { this.EventStudent = this.StudentManager.Students[this.EventStudentID]; if (this.EventStudent != null && this.EventStudent.Routine && !this.EventStudent.Distracted && !this.EventStudent.Talking && !this.EventStudent.Meeting && this.EventStudent.Indoors) { if (!this.EventStudent.WitnessedMurder) { this.EventStudent.CurrentDestination = this.EventStudent.Destinations[this.EventStudent.Phase]; this.EventStudent.Pathfinding.target = this.EventStudent.Destinations[this.EventStudent.Phase]; this.EventStudent.Obstacle.checkTime = 99f; this.EventStudent.SpeechLines.Stop(); this.EventStudent.PhoneEvent = this; this.EventStudent.CanTalk = false; this.EventStudent.InEvent = true; this.EventStudent.Private = true; this.EventStudent.Prompt.Hide(); this.EventCheck = false; this.EventActive = true; if (this.EventStudent.Following) { this.EventStudent.Pathfinding.canMove = true; this.EventStudent.Pathfinding.speed = 1f; this.EventStudent.Following = false; this.EventStudent.Routine = true; this.Yandere.Followers--; this.EventStudent.Subtitle.UpdateLabel(SubtitleType.StopFollowApology, 0, 3f); this.EventStudent.Prompt.Label[0].text = " Talk"; } } else { base.enabled = false; } } } } if (this.EventActive) { if (this.EventStudent.DistanceToDestination < 0.5f) { this.EventStudent.Pathfinding.canSearch = false; this.EventStudent.Pathfinding.canMove = false; } if (this.Clock.HourTime > this.EventTime + 0.5f || this.EventStudent.WitnessedMurder || this.EventStudent.Splashed || this.EventStudent.Alarmed || this.EventStudent.Dying || !this.EventStudent.Alive) { this.EndEvent(); } else if (!this.EventStudent.Pathfinding.canMove) { if (this.EventPhase == 1) { this.Timer += Time.deltaTime; this.EventStudent.Character.GetComponent <Animation>().CrossFade(this.EventAnim[0]); AudioClipPlayer.Play(this.EventClip[0], this.EventStudent.transform.position, 5f, 10f, out this.VoiceClip, out this.CurrentClipLength); this.EventPhase++; } else if (this.EventPhase == 2) { this.Timer += Time.deltaTime; if (this.Timer > 1.5f) { if (this.EventStudent.StudentID == 33) { this.EventStudent.SmartPhone.SetActive(true); } else { this.EventStudent.Phone.SetActive(true); } } if (this.Timer > 3f) { AudioClipPlayer.Play(this.EventClip[1], this.EventStudent.transform.position, 5f, 10f, out this.VoiceClip, out this.CurrentClipLength); this.EventSubtitle.text = this.EventSpeech[1]; this.Timer = 0f; this.EventPhase++; } } else if (this.EventPhase == 3) { this.Timer += Time.deltaTime; if (this.Timer > this.CurrentClipLength) { this.EventStudent.Character.GetComponent <Animation>().CrossFade(this.EventStudent.RunAnim); this.EventStudent.CurrentDestination = this.EventLocation; this.EventStudent.Pathfinding.target = this.EventLocation; this.EventStudent.Pathfinding.canSearch = true; this.EventStudent.Pathfinding.canMove = true; this.EventStudent.Pathfinding.speed = 4f; this.EventSubtitle.text = string.Empty; this.Timer = 0f; this.EventPhase++; } } else if (this.EventPhase == 4) { this.DumpPoint.enabled = true; this.EventStudent.Character.GetComponent <Animation>().CrossFade(this.EventAnim[2]); AudioClipPlayer.Play(this.EventClip[2], this.EventStudent.transform.position, 5f, 10f, out this.VoiceClip, out this.CurrentClipLength); this.EventPhase++; } else if (this.EventPhase < 13) { if (this.VoiceClip != null) { this.VoiceClip.GetComponent <AudioSource>().pitch = Time.timeScale; this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].time = this.VoiceClip.GetComponent <AudioSource>().time; if (this.VoiceClip.GetComponent <AudioSource>().time > this.SpeechTimes[this.EventPhase - 3]) { this.EventSubtitle.text = this.EventSpeech[this.EventPhase - 3]; this.EventPhase++; } } } else { if (this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].time >= this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].length * 90.33333f) { if (this.EventStudent.StudentID == 33) { this.EventStudent.SmartPhone.SetActive(true); } else { this.EventStudent.Phone.SetActive(true); } } if (this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].time >= this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].length) { this.EndEvent(); } } float num = Vector3.Distance(this.Yandere.transform.position, this.EventStudent.transform.position); if (num < 10f) { float num2 = Mathf.Abs((num - 10f) * 0.2f); if (num2 < 0f) { num2 = 0f; } if (num2 > 1f) { num2 = 1f; } this.EventSubtitle.transform.localScale = new Vector3(num2, num2, num2); } else { this.EventSubtitle.transform.localScale = Vector3.zero; } if (this.EventPhase == 11 && num < 5f && !EventGlobals.Event2) { EventGlobals.Event2 = true; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Info); ConversationGlobals.SetTopicDiscovered(25, true); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion); ConversationGlobals.SetTopicLearnedByStudent(25, this.EventStudentID, true); } } } }
private void Update() { if (this.InputManager.TappedUp) { this.Selected--; if (this.Selected < 1) { this.Selected = this.ServiceNames.Length - 1; } this.UpdateDesc(); } if (this.InputManager.TappedDown) { this.Selected++; if (this.Selected > this.ServiceNames.Length - 1) { this.Selected = 1; } this.UpdateDesc(); } if (Input.GetButtonDown("A")) { if (!SchemeGlobals.GetServicePurchased(this.Selected) && (double)this.NameLabels[this.Selected].color.a == 1.0) { if (this.PromptBar.Label[0].text != string.Empty) { if (this.Inventory.PantyShots >= this.ServiceCosts[this.Selected]) { if (this.Selected == 1) { this.Yandere.PauseScreen.StudentInfoMenu.GettingInfo = true; this.Yandere.PauseScreen.StudentInfoMenu.Column = 0; this.Yandere.PauseScreen.StudentInfoMenu.Row = 0; this.Yandere.PauseScreen.StudentInfoMenu.UpdateHighlight(); this.Yandere.PauseScreen.Sideways = true; this.Yandere.PauseScreen.StudentInfoMenu.gameObject.SetActive(true); base.StartCoroutine(this.Yandere.PauseScreen.StudentInfoMenu.UpdatePortraits()); this.Yandere.PromptBar.ClearButtons(); this.Yandere.PromptBar.Label[1].text = "Cancel"; this.Yandere.PromptBar.UpdateButtons(); this.Yandere.PromptBar.Show = true; base.gameObject.SetActive(false); } if (this.Selected == 2) { this.Reputation.PendingRep += 5f; this.Purchase(); } else if (this.Selected == 3) { StudentGlobals.SetStudentReputation(this.StudentManager.RivalID, StudentGlobals.GetStudentReputation(this.StudentManager.RivalID) - 5); this.Purchase(); } else if (this.Selected == 4) { SchemeGlobals.SetServicePurchased(this.Selected, true); SchemeGlobals.DarkSecret = true; this.Purchase(); } else if (this.Selected == 5) { this.Yandere.PauseScreen.StudentInfoMenu.SendingHome = true; this.Yandere.PauseScreen.StudentInfoMenu.Column = 0; this.Yandere.PauseScreen.StudentInfoMenu.Row = 0; this.Yandere.PauseScreen.StudentInfoMenu.UpdateHighlight(); this.Yandere.PauseScreen.Sideways = true; this.Yandere.PauseScreen.StudentInfoMenu.gameObject.SetActive(true); this.Yandere.PauseScreen.StudentInfoMenu.GrabbedPortraits = false; base.StartCoroutine(this.Yandere.PauseScreen.StudentInfoMenu.UpdatePortraits()); this.Yandere.PromptBar.ClearButtons(); this.Yandere.PromptBar.Label[1].text = "Cancel"; this.Yandere.PromptBar.UpdateButtons(); this.Yandere.PromptBar.Show = true; base.gameObject.SetActive(false); } else if (this.Selected == 6) { this.Police.Timer += 300f; this.Police.Delayed = true; this.Purchase(); } else if (this.Selected == 7) { SchemeGlobals.SetServicePurchased(this.Selected, true); CounselorGlobals.CounselorTape = 1; this.Purchase(); } else if (this.Selected == 8) { SchemeGlobals.SetServicePurchased(this.Selected, true); for (int i = 1; i < 26; i++) { ConversationGlobals.SetTopicLearnedByStudent(i, 11, true); } this.Purchase(); } else if (this.Selected == 9) { this.Yandere.PauseScreen.StudentInfoMenu.FiringCouncilMember = true; this.Yandere.PauseScreen.StudentInfoMenu.Column = 0; this.Yandere.PauseScreen.StudentInfoMenu.Row = 0; this.Yandere.PauseScreen.StudentInfoMenu.UpdateHighlight(); this.Yandere.PauseScreen.Sideways = true; this.Yandere.PauseScreen.StudentInfoMenu.gameObject.SetActive(true); this.Yandere.PauseScreen.StudentInfoMenu.GrabbedPortraits = false; base.StartCoroutine(this.Yandere.PauseScreen.StudentInfoMenu.UpdatePortraits()); this.Yandere.PromptBar.ClearButtons(); this.Yandere.PromptBar.Label[1].text = "Cancel"; this.Yandere.PromptBar.UpdateButtons(); this.Yandere.PromptBar.Show = true; base.gameObject.SetActive(false); } } } else if (this.Inventory.PantyShots < this.ServiceCosts[this.Selected]) { this.MyAudio.clip = this.InfoAfford; this.MyAudio.Play(); } else { this.MyAudio.clip = this.InfoUnavailable; this.MyAudio.Play(); } } else { this.MyAudio.clip = this.InfoUnavailable; this.MyAudio.Play(); } } if (Input.GetButtonDown("B")) { this.PromptBar.ClearButtons(); this.PromptBar.Label[0].text = "Accept"; this.PromptBar.Label[1].text = "Exit"; this.PromptBar.Label[5].text = "Choose"; this.PromptBar.UpdateButtons(); this.FavorMenu.SetActive(true); base.gameObject.SetActive(false); } }
private void TopicCheck() { if (this.RoomID > 25 && this.RoomID < 37) { this.StudentManager.TutorialWindow.ShowClubMessage = true; } switch (this.RoomID) { case 1: case 2: case 4: case 5: case 6: case 7: case 8: case 9: case 10: case 11: case 12: case 14: case 15: case 16: case 17: case 18: case 19: case 20: case 21: case 23: case 24: case 25: case 33: case 37: break; case 3: if (!ConversationGlobals.GetTopicDiscovered(22)) { ConversationGlobals.SetTopicDiscovered(22, true); this.Yandere.NotificationManager.TopicName = "School"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); return; } break; case 13: if (!ConversationGlobals.GetTopicDiscovered(18)) { ConversationGlobals.SetTopicDiscovered(18, true); this.Yandere.NotificationManager.TopicName = "Reading"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); return; } break; case 22: if (!ConversationGlobals.GetTopicDiscovered(11)) { ConversationGlobals.SetTopicDiscovered(11, true); ConversationGlobals.SetTopicDiscovered(12, true); ConversationGlobals.SetTopicDiscovered(13, true); ConversationGlobals.SetTopicDiscovered(14, true); this.Yandere.NotificationManager.TopicName = "Video Games"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); this.Yandere.NotificationManager.TopicName = "Anime"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); this.Yandere.NotificationManager.TopicName = "Cosplay"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); this.Yandere.NotificationManager.TopicName = "Memes"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); return; } break; case 26: if (!ConversationGlobals.GetTopicDiscovered(1)) { ConversationGlobals.SetTopicDiscovered(1, true); this.Yandere.NotificationManager.TopicName = "Cooking"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); return; } break; case 27: if (!ConversationGlobals.GetTopicDiscovered(2)) { ConversationGlobals.SetTopicDiscovered(2, true); this.Yandere.NotificationManager.TopicName = "Drama"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); return; } break; case 28: if (!ConversationGlobals.GetTopicDiscovered(3)) { ConversationGlobals.SetTopicDiscovered(3, true); this.Yandere.NotificationManager.TopicName = "Occult"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); return; } break; case 29: if (!ConversationGlobals.GetTopicDiscovered(4)) { ConversationGlobals.SetTopicDiscovered(4, true); this.Yandere.NotificationManager.TopicName = "Art"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); return; } break; case 30: if (!ConversationGlobals.GetTopicDiscovered(5)) { ConversationGlobals.SetTopicDiscovered(5, true); this.Yandere.NotificationManager.TopicName = "Music"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); return; } break; case 31: if (!ConversationGlobals.GetTopicDiscovered(6)) { ConversationGlobals.SetTopicDiscovered(6, true); this.Yandere.NotificationManager.TopicName = "Martial Arts"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); return; } break; case 32: if (!ConversationGlobals.GetTopicDiscovered(7)) { ConversationGlobals.SetTopicDiscovered(7, true); this.Yandere.NotificationManager.TopicName = "Photography"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); return; } break; case 34: if (!ConversationGlobals.GetTopicDiscovered(8)) { ConversationGlobals.SetTopicDiscovered(8, true); this.Yandere.NotificationManager.TopicName = "Science"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); return; } break; case 35: if (!ConversationGlobals.GetTopicDiscovered(9)) { ConversationGlobals.SetTopicDiscovered(9, true); this.Yandere.NotificationManager.TopicName = "Sports"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); return; } break; case 36: if (!ConversationGlobals.GetTopicDiscovered(10)) { ConversationGlobals.SetTopicDiscovered(10, true); this.Yandere.NotificationManager.TopicName = "Gardening"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); } if (!ConversationGlobals.GetTopicDiscovered(24)) { ConversationGlobals.SetTopicDiscovered(24, true); this.Yandere.NotificationManager.TopicName = "Nature"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); } break; default: return; } }
// Token: 0x0600060E RID: 1550 RVA: 0x00055380 File Offset: 0x00053780 private void Update() { if (this.Prompt.Circle[0].fillAmount == 0f) { this.Jukebox.Dip = 0.1f; this.Yandere.EmptyHands(); this.Yandere.CanMove = false; this.Student = this.StudentManager.Students[7]; this.Student.Prompt.Label[0].text = " Talk"; this.Student.Pushable = false; this.Student.Meeting = false; this.Student.Routine = false; this.Student.MeetTimer = 0f; this.Offering = true; } if (this.Offering) { this.Yandere.transform.rotation = Quaternion.Slerp(this.Yandere.transform.rotation, base.transform.rotation, Time.deltaTime * 10f); this.Yandere.MoveTowardsTarget(base.transform.position + Vector3.down); Quaternion b = Quaternion.LookRotation(this.Yandere.transform.position - this.Student.transform.position); this.Student.transform.rotation = Quaternion.Slerp(this.Student.transform.rotation, b, Time.deltaTime * 10f); Animation component = this.Yandere.Character.GetComponent <Animation>(); Animation component2 = this.Student.Character.GetComponent <Animation>(); if (!this.Spoken) { if (this.EventSpeaker[this.EventPhase] == 1) { component.CrossFade(this.EventAnim[this.EventPhase]); component2.CrossFade(this.Student.IdleAnim, 1f); } else { component2.CrossFade(this.EventAnim[this.EventPhase]); component.CrossFade(this.Yandere.IdleAnim, 1f); } this.EventSubtitle.transform.localScale = new Vector3(1f, 1f, 1f); this.EventSubtitle.text = this.EventSpeech[this.EventPhase]; AudioSource component3 = base.GetComponent <AudioSource>(); component3.clip = this.EventClip[this.EventPhase]; component3.Play(); this.Spoken = true; } else { if (Input.GetButtonDown("A")) { this.Timer += this.EventClip[this.EventPhase].length + 1f; } if (this.EventSpeaker[this.EventPhase] == 1) { if (component[this.EventAnim[this.EventPhase]].time >= component[this.EventAnim[this.EventPhase]].length) { component.CrossFade(this.Yandere.IdleAnim); } } else if (component2[this.EventAnim[this.EventPhase]].time >= component2[this.EventAnim[this.EventPhase]].length) { component2.CrossFade(this.Student.IdleAnim); } this.Timer += Time.deltaTime; if (this.Timer > this.EventClip[this.EventPhase].length) { this.EventSubtitle.text = string.Empty; } if (this.Timer > this.EventClip[this.EventPhase].length + 1f) { this.Spoken = false; this.EventPhase++; this.Timer = 0f; if (this.EventPhase == 14) { if (!ConversationGlobals.GetTopicDiscovered(23)) { this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); ConversationGlobals.SetTopicDiscovered(23, true); } if (!ConversationGlobals.GetTopicLearnedByStudent(23, 7)) { this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion); ConversationGlobals.SetTopicLearnedByStudent(23, 7, true); } } if (this.EventPhase == this.EventSpeech.Length) { SchemeGlobals.SetSchemeStage(6, 5); this.Student.CurrentDestination = this.Student.Destinations[this.Student.Phase]; this.Student.Pathfinding.target = this.Student.Destinations[this.Student.Phase]; this.Student.Pathfinding.canSearch = true; this.Student.Pathfinding.canMove = true; this.Student.Routine = true; this.EventSubtitle.transform.localScale = Vector3.zero; this.Yandere.CanMove = true; this.Jukebox.Dip = 1f; UnityEngine.Object.Destroy(base.gameObject); } } } } else if (this.StudentManager.Students[7].Pushed || !this.StudentManager.Students[7].Alive) { base.gameObject.SetActive(false); } }
// Token: 0x060018E0 RID: 6368 RVA: 0x000E67C4 File Offset: 0x000E49C4 private void Update() { if (!this.Clock.StopTime && this.EventCheck) { if (this.Clock.HourTime > this.EventTime + 0.5f) { base.enabled = false; } else if (this.Clock.HourTime > this.EventTime) { this.EventStudent = this.StudentManager.Students[this.EventStudentID]; if (this.EventStudent != null && !this.EventStudent.InEvent && this.EventStudent.DistanceToDestination < 1f && !this.StudentManager.CommunalLocker.RivalPhone.Stolen) { this.EventStudent.CharacterAnimation.cullingType = AnimationCullingType.AlwaysAnimate; if (this.EventStudentID == 11) { this.EventFriend = this.StudentManager.Students[this.EventFriendID]; if (this.EventFriend != null) { this.EventFriend.CharacterAnimation.CrossFade(this.EventFriend.IdleAnim); this.EventFriend.Pathfinding.canSearch = false; this.EventFriend.Pathfinding.canMove = false; this.EventFriend.TargetDistance = 0.5f; this.EventFriend.SpeechLines.Stop(); this.EventFriend.PhoneEvent = this; this.EventFriend.CanTalk = false; this.EventFriend.Routine = false; this.EventFriend.InEvent = true; this.EventFriend.Prompt.Hide(); } } if (this.EventStudent.Routine && !this.EventStudent.Distracted && !this.EventStudent.Talking && !this.EventStudent.Meeting && !this.EventStudent.Investigating && this.EventStudent.Indoors) { if (!this.EventStudent.WitnessedMurder) { this.EventStudent.CurrentDestination = this.EventStudent.Destinations[this.EventStudent.Phase]; this.EventStudent.Pathfinding.target = this.EventStudent.Destinations[this.EventStudent.Phase]; this.EventStudent.Obstacle.checkTime = 99f; this.EventStudent.SpeechLines.Stop(); this.EventStudent.PhoneEvent = this; this.EventStudent.CanTalk = false; this.EventStudent.InEvent = true; this.EventStudent.Prompt.Hide(); this.EventCheck = false; this.EventActive = true; if (this.EventStudent.Following) { this.EventStudent.Pathfinding.canMove = true; this.EventStudent.Pathfinding.speed = 1f; this.EventStudent.Following = false; this.EventStudent.Routine = true; this.Yandere.Followers--; this.EventStudent.Subtitle.UpdateLabel(SubtitleType.StopFollowApology, 0, 3f); this.EventStudent.Prompt.Label[0].text = " Talk"; } } else { base.enabled = false; } } } } } if (this.EventActive) { if (this.EventStudent.DistanceToDestination < 0.5f) { this.EventStudent.Pathfinding.canSearch = false; this.EventStudent.Pathfinding.canMove = false; } if (this.Clock.HourTime > this.EventTime + 0.5f || this.EventStudent.WitnessedMurder || this.EventStudent.Splashed || this.EventStudent.Alarmed || this.EventStudent.Dying || !this.EventStudent.Alive) { this.EndEvent(); return; } if (!this.EventStudent.Pathfinding.canMove) { if (this.EventPhase == 1) { this.Timer += Time.deltaTime; this.EventStudent.CharacterAnimation.CrossFade(this.EventAnim[0]); AudioClipPlayer.Play(this.EventClip[0], this.EventStudent.transform.position, 5f, 10f, out this.VoiceClip, out this.CurrentClipLength); this.EventPhase++; } else if (this.EventPhase == 2) { this.Timer += Time.deltaTime; if (this.Timer > 1.5f) { this.EventStudent.SmartPhone.SetActive(true); this.EventStudent.SmartPhone.transform.localPosition = new Vector3(-0.015f, -0.005f, -0.015f); this.EventStudent.SmartPhone.transform.localEulerAngles = new Vector3(0f, -150f, 165f); } if (this.Timer > 2f) { AudioClipPlayer.Play(this.EventClip[1], this.EventStudent.transform.position, 5f, 10f, out this.VoiceClip, out this.CurrentClipLength); this.EventSubtitle.text = this.EventSpeech[1]; this.Timer = 0f; this.EventPhase++; } } else if (this.EventPhase == 3) { this.Timer += Time.deltaTime; if (this.Timer > this.CurrentClipLength) { this.EventStudent.Character.GetComponent <Animation>().CrossFade(this.EventStudent.RunAnim); this.EventStudent.CurrentDestination = this.EventLocation; this.EventStudent.Pathfinding.target = this.EventLocation; this.EventStudent.Pathfinding.canSearch = true; this.EventStudent.Pathfinding.canMove = true; this.EventStudent.Pathfinding.speed = 4f; this.EventSubtitle.text = string.Empty; this.Timer = 0f; this.EventPhase++; } } else if (this.EventPhase == 4) { if (this.EventStudentID != 11) { this.DumpPoint.enabled = true; } this.EventStudent.Private = true; this.EventStudent.Character.GetComponent <Animation>().CrossFade(this.EventAnim[2]); AudioClipPlayer.Play(this.EventClip[2], this.EventStudent.transform.position, 5f, 10f, out this.VoiceClip, out this.CurrentClipLength); this.EventPhase++; } else if (this.EventPhase < 13) { if (this.VoiceClip != null) { this.VoiceClip.GetComponent <AudioSource>().pitch = Time.timeScale; this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].time = this.VoiceClip.GetComponent <AudioSource>().time; if (this.VoiceClip.GetComponent <AudioSource>().time > this.SpeechTimes[this.EventPhase - 3]) { this.EventSubtitle.text = this.EventSpeech[this.EventPhase - 3]; this.EventPhase++; } } } else { if (this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].time >= this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].length * 90.33333f) { this.EventStudent.SmartPhone.SetActive(true); } if (this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].time >= this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].length) { this.EndEvent(); } } float num = Vector3.Distance(this.Yandere.transform.position, this.EventStudent.transform.position); if (num < 10f) { float num2 = Mathf.Abs((num - 10f) * 0.2f); if (num2 < 0f) { num2 = 0f; } if (num2 > 1f) { num2 = 1f; } this.Jukebox.Dip = 1f - 0.5f * num2; this.EventSubtitle.transform.localScale = new Vector3(num2, num2, num2); } else { this.EventSubtitle.transform.localScale = Vector3.zero; } if (base.enabled && this.EventPhase > 4) { if (num < 5f) { this.Yandere.Eavesdropping = true; } else { this.Yandere.Eavesdropping = false; } } if (this.EventPhase == 11 && num < 5f) { if (this.EventStudentID == 30) { if (!EventGlobals.Event2) { EventGlobals.Event2 = true; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Info); ConversationGlobals.SetTopicDiscovered(25, true); this.Yandere.NotificationManager.TopicName = "Money"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); this.Yandere.NotificationManager.TopicName = "Money"; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion); ConversationGlobals.SetTopicLearnedByStudent(25, this.EventStudentID, true); } } else if (!EventGlobals.OsanaEvent1) { EventGlobals.OsanaEvent1 = true; this.Yandere.NotificationManager.DisplayNotification(NotificationType.Info); } } } if ((this.EventStudent.Pathfinding.canMove || this.EventPhase > 3) && this.EventFriend != null && this.EventPhase > 3) { if (this.EventFriend.CurrentDestination != this.SpyLocation) { this.Timer += Time.deltaTime; if (this.Timer > 3f) { this.EventFriend.CharacterAnimation.CrossFade(this.EventStudent.RunAnim); this.EventFriend.CurrentDestination = this.SpyLocation; this.EventFriend.Pathfinding.target = this.SpyLocation; this.EventFriend.Pathfinding.canSearch = true; this.EventFriend.Pathfinding.canMove = true; this.EventFriend.Pathfinding.speed = 4f; this.EventFriend.Routine = true; this.Timer = 0f; return; } this.EventFriend.targetRotation = Quaternion.LookRotation(this.StudentManager.Students[this.EventStudentID].transform.position - this.EventFriend.transform.position); this.EventFriend.transform.rotation = Quaternion.Slerp(this.EventFriend.transform.rotation, this.EventFriend.targetRotation, 10f * Time.deltaTime); return; } else if (this.EventFriend.DistanceToDestination < 1f) { this.EventFriend.CharacterAnimation.CrossFade("f02_cornerPeek_00"); this.EventFriend.Pathfinding.canSearch = false; this.EventFriend.Pathfinding.canMove = false; this.SettleFriend(); } } } }
// Token: 0x0600023D RID: 573 RVA: 0x000306E8 File Offset: 0x0002EAE8 private void TopicCheck() { switch (this.RoomID) { case 3: if (!ConversationGlobals.GetTopicDiscovered(12)) { ConversationGlobals.SetTopicDiscovered(12, true); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); } break; case 13: if (!ConversationGlobals.GetTopicDiscovered(21)) { ConversationGlobals.SetTopicDiscovered(21, true); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); } break; case 15: if (!ConversationGlobals.GetTopicDiscovered(16)) { ConversationGlobals.SetTopicDiscovered(16, true); ConversationGlobals.SetTopicDiscovered(17, true); ConversationGlobals.SetTopicDiscovered(18, true); ConversationGlobals.SetTopicDiscovered(19, true); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); } break; case 26: if (!ConversationGlobals.GetTopicDiscovered(1)) { ConversationGlobals.SetTopicDiscovered(1, true); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); } break; case 27: if (!ConversationGlobals.GetTopicDiscovered(2)) { ConversationGlobals.SetTopicDiscovered(2, true); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); } break; case 28: if (!ConversationGlobals.GetTopicDiscovered(3)) { ConversationGlobals.SetTopicDiscovered(3, true); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); } break; case 29: if (!ConversationGlobals.GetTopicDiscovered(4)) { ConversationGlobals.SetTopicDiscovered(4, true); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); } break; case 30: if (!ConversationGlobals.GetTopicDiscovered(5)) { ConversationGlobals.SetTopicDiscovered(5, true); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); } break; case 31: if (!ConversationGlobals.GetTopicDiscovered(6)) { ConversationGlobals.SetTopicDiscovered(6, true); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); } break; case 32: if (!ConversationGlobals.GetTopicDiscovered(7)) { ConversationGlobals.SetTopicDiscovered(7, true); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); } break; case 34: if (!ConversationGlobals.GetTopicDiscovered(8)) { ConversationGlobals.SetTopicDiscovered(8, true); this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic); } break; } }