public void UpdateLocation() { Debug.Log("The ''Offer Help'' prompt for Student " + this.EventStudentID + " was told to update its location."); this.Student = this.StudentManager.Students[this.EventStudentID]; if (this.Student.CurrentDestination == this.StudentManager.MeetSpots.List[7]) { base.transform.position = this.Locations[1].position; base.transform.eulerAngles = this.Locations[1].eulerAngles; } else if (this.Student.CurrentDestination == this.StudentManager.MeetSpots.List[8]) { base.transform.position = this.Locations[2].position; base.transform.eulerAngles = this.Locations[2].eulerAngles; } else if (this.Student.CurrentDestination == this.StudentManager.MeetSpots.List[9]) { base.transform.position = this.Locations[3].position; base.transform.eulerAngles = this.Locations[3].eulerAngles; } else if (this.Student.CurrentDestination == this.StudentManager.MeetSpots.List[10]) { base.transform.position = this.Locations[4].position; base.transform.eulerAngles = this.Locations[4].eulerAngles; } if (this.EventStudentID == 11) { if (!PlayerGlobals.GetStudentFriend(11)) { this.Prompt.Label[0].text = " Must Befriend Student First"; this.Unable = true; } this.Prompt.MyCollider.enabled = true; return; } if (this.EventStudentID == 30) { if (!PlayerGlobals.GetStudentFriend(30)) { this.Prompt.Label[0].text = " Must Befriend Student First"; this.Unable = true; } this.Prompt.MyCollider.enabled = true; return; } if (this.EventStudentID == 5) { this.Prompt.MyCollider.enabled = true; } }
public IEnumerator UpdatePortraits() { if (this.Debugging) { Debug.Log("The Student Info Menu was instructed to get photos."); } int num; for (int ID = 1; ID < 101; ID = num + 1) { if (this.Debugging) { Debug.Log("1 - We entered the loop."); } if (ID == 0) { this.StudentPortraits[ID].Portrait.mainTexture = this.InfoChan; } else { if (this.Debugging) { Debug.Log("2 - ID is not zero."); } if (!this.PortraitLoaded[ID]) { if (this.Debugging) { Debug.Log("3 - PortraitLoaded is false."); } if (ID < 12 || (ID > 20 && ID < 98)) { if (this.Debugging) { Debug.Log("4 - ID is less than 98."); } if (StudentGlobals.GetStudentPhotographed(ID)) { if (this.Debugging) { Debug.Log("5 - GetStudentPhotographed is true."); } string text = string.Concat(new string[] { "file:///", Application.streamingAssetsPath, "/Portraits/Student_", ID.ToString(), ".png" }); if (this.Debugging) { Debug.Log("Path is: " + text); } WWW www = new WWW(text); if (this.Debugging) { Debug.Log("Waiting for www to return."); } yield return(www); if (this.Debugging) { Debug.Log("www has returned."); } if (www.error == null) { if (!StudentGlobals.GetStudentReplaced(ID)) { this.StudentPortraits[ID].Portrait.mainTexture = www.texture; } else { this.StudentPortraits[ID].Portrait.mainTexture = this.BlankPortrait; } } else { this.StudentPortraits[ID].Portrait.mainTexture = this.UnknownPortrait; } this.PortraitLoaded[ID] = true; www = null; } else { this.StudentPortraits[ID].Portrait.mainTexture = this.UnknownPortrait; } } else if (ID == 98) { this.StudentPortraits[ID].Portrait.mainTexture = this.Counselor; } else if (ID == 99) { this.StudentPortraits[ID].Portrait.mainTexture = this.Headmaster; } else if (ID == 100) { this.StudentPortraits[ID].Portrait.mainTexture = this.InfoChan; } else { this.StudentPortraits[ID].Portrait.mainTexture = this.RivalPortraits[ID]; } } } if (PlayerGlobals.GetStudentPantyShot(this.JSON.Students[ID].Name)) { this.StudentPortraits[ID].Panties.SetActive(true); } this.StudentPortraits[ID].Friend.SetActive(PlayerGlobals.GetStudentFriend(ID)); if (StudentGlobals.GetStudentDying(ID) || StudentGlobals.GetStudentDead(ID)) { this.StudentPortraits[ID].DeathShadow.SetActive(true); } if (MissionModeGlobals.MissionMode && ID == 1) { this.StudentPortraits[ID].DeathShadow.SetActive(true); } if (SceneManager.GetActiveScene().name == "SchoolScene" && this.StudentManager.Students[ID] != null && this.StudentManager.Students[ID].Tranquil) { this.StudentPortraits[ID].DeathShadow.SetActive(true); } if (StudentGlobals.GetStudentArrested(ID)) { this.StudentPortraits[ID].PrisonBars.SetActive(true); this.StudentPortraits[ID].DeathShadow.SetActive(true); } num = ID; } yield break; }
// Token: 0x06000225 RID: 549 RVA: 0x0002D9A0 File Offset: 0x0002BDA0 public void HideShadows() { this.TaskIcon.spriteName = ((!PlayerGlobals.GetStudentFriend(this.Yandere.TargetStudent.StudentID)) ? "Task" : "Heart"); this.Impatience.fillAmount = 0f; for (int i = 1; i < 7; i++) { UISprite uisprite = this.Shadow[i]; uisprite.color = new Color(uisprite.color.r, uisprite.color.g, uisprite.color.b, 0f); } for (int j = 1; j < 5; j++) { UISprite uisprite2 = this.FavorShadow[j]; uisprite2.color = new Color(uisprite2.color.r, uisprite2.color.g, uisprite2.color.b, 0f); } for (int k = 1; k < 7; k++) { UISprite uisprite3 = this.ClubShadow[k]; uisprite3.color = new Color(uisprite3.color.r, uisprite3.color.g, uisprite3.color.b, 0f); } for (int l = 1; l < 5; l++) { UISprite uisprite4 = this.LoveShadow[l]; uisprite4.color = new Color(uisprite4.color.r, uisprite4.color.g, uisprite4.color.b, 0f); } if (!this.Yandere.TargetStudent.Witness || this.Yandere.TargetStudent.Forgave || this.Yandere.TargetStudent.Club == ClubType.Council) { UISprite uisprite5 = this.Shadow[1]; uisprite5.color = new Color(uisprite5.color.r, uisprite5.color.g, uisprite5.color.b, 0.75f); } if (this.Yandere.TargetStudent.Complimented || this.Yandere.TargetStudent.Club == ClubType.Council) { UISprite uisprite6 = this.Shadow[2]; uisprite6.color = new Color(uisprite6.color.r, uisprite6.color.g, uisprite6.color.b, 0.75f); } if (this.Yandere.TargetStudent.Gossiped || this.Yandere.TargetStudent.Club == ClubType.Council) { UISprite uisprite7 = this.Shadow[3]; uisprite7.color = new Color(uisprite7.color.r, uisprite7.color.g, uisprite7.color.b, 0.75f); } if (this.Yandere.Bloodiness > 0f || this.Yandere.Sanity < 33.33333f || this.Yandere.TargetStudent.Club == ClubType.Council) { UISprite uisprite8 = this.Shadow[3]; uisprite8.color = new Color(uisprite8.color.r, uisprite8.color.g, uisprite8.color.b, 0.75f); UISprite uisprite9 = this.Shadow[5]; uisprite9.color = new Color(uisprite9.color.r, uisprite9.color.g, uisprite9.color.b, 0.75f); UISprite uisprite10 = this.Shadow[6]; uisprite10.color = new Color(uisprite10.color.r, uisprite10.color.g, uisprite10.color.b, 0.75f); } else if (this.Reputation.Reputation < -33.33333f) { UISprite uisprite11 = this.Shadow[3]; uisprite11.color = new Color(uisprite11.color.r, uisprite11.color.g, uisprite11.color.b, 0.75f); } if (!this.Yandere.TargetStudent.Indoors || this.Yandere.TargetStudent.Club == ClubType.Council) { UISprite uisprite12 = this.Shadow[5]; uisprite12.color = new Color(uisprite12.color.r, uisprite12.color.g, uisprite12.color.b, 0.75f); } else if (!PlayerGlobals.GetStudentFriend(this.Yandere.TargetStudent.StudentID)) { if (this.Yandere.TargetStudent.StudentID != 6 && this.Yandere.TargetStudent.StudentID != 7 && this.Yandere.TargetStudent.StudentID != 13 && this.Yandere.TargetStudent.StudentID != 14 && this.Yandere.TargetStudent.StudentID != 15 && this.Yandere.TargetStudent.StudentID != 32 && this.Yandere.TargetStudent.StudentID != 33) { UISprite uisprite13 = this.Shadow[5]; uisprite13.color = new Color(uisprite13.color.r, uisprite13.color.g, uisprite13.color.b, 0.75f); } else { if (this.Yandere.TargetStudent.TaskPhase > 0 && this.Yandere.TargetStudent.TaskPhase < 5) { UISprite uisprite14 = this.Shadow[5]; uisprite14.color = new Color(uisprite14.color.r, uisprite14.color.g, uisprite14.color.b, 0.75f); } if (this.Yandere.TargetStudent.StudentID == 32) { if (this.Clock.Period != 3 || this.Yandere.TargetStudent.DistanceToDestination > 1f) { UISprite uisprite15 = this.Shadow[5]; uisprite15.color = new Color(uisprite15.color.r, uisprite15.color.g, uisprite15.color.b, 0.75f); } else if (TaskGlobals.GetTaskStatus(32) == 1 && this.Yandere.Inventory.Cigs) { UISprite uisprite16 = this.Shadow[5]; uisprite16.color = new Color(uisprite16.color.r, uisprite16.color.g, uisprite16.color.b, 0f); } } } } else if (this.Yandere.TargetStudent.StudentID != 7 && this.Yandere.TargetStudent.StudentID != 13) { UISprite uisprite17 = this.Shadow[5]; uisprite17.color = new Color(uisprite17.color.r, uisprite17.color.g, uisprite17.color.b, 0.75f); } else if (!this.Yandere.TargetStudent.Male && this.LoveManager.SuitorProgress == 0) { UISprite uisprite18 = this.Shadow[5]; uisprite18.color = new Color(uisprite18.color.r, uisprite18.color.g, uisprite18.color.b, 0.75f); } if (!this.Yandere.TargetStudent.Indoors || this.Yandere.TargetStudent.Club == ClubType.Council) { UISprite uisprite19 = this.Shadow[6]; uisprite19.color = new Color(uisprite19.color.r, uisprite19.color.g, uisprite19.color.b, 0.75f); } else { if (!PlayerGlobals.GetStudentFriend(this.Yandere.TargetStudent.StudentID)) { UISprite uisprite20 = this.Shadow[6]; uisprite20.color = new Color(uisprite20.color.r, uisprite20.color.g, uisprite20.color.b, 0.75f); } if ((this.Yandere.TargetStudent.Male && PlayerGlobals.Seduction + PlayerGlobals.SeductionBonus > 3) || PlayerGlobals.Seduction + PlayerGlobals.SeductionBonus > 4) { UISprite uisprite21 = this.Shadow[6]; uisprite21.color = new Color(uisprite21.color.r, uisprite21.color.g, uisprite21.color.b, 0f); } } if (ClubGlobals.Club == this.Yandere.TargetStudent.Club) { UISprite uisprite22 = this.ClubShadow[1]; uisprite22.color = new Color(uisprite22.color.r, uisprite22.color.g, uisprite22.color.b, 0.75f); UISprite uisprite23 = this.ClubShadow[2]; uisprite23.color = new Color(uisprite23.color.r, uisprite23.color.g, uisprite23.color.b, 0.75f); } if (this.Yandere.ClubAttire || this.Yandere.Mask != null || this.Yandere.Gloves != null || this.Yandere.Container != null) { UISprite uisprite24 = this.ClubShadow[3]; uisprite24.color = new Color(uisprite24.color.r, uisprite24.color.g, uisprite24.color.b, 0.75f); } if (ClubGlobals.Club != this.Yandere.TargetStudent.Club) { UISprite uisprite25 = this.ClubShadow[2]; uisprite25.color = new Color(uisprite25.color.r, uisprite25.color.g, uisprite25.color.b, 0f); UISprite uisprite26 = this.ClubShadow[3]; uisprite26.color = new Color(uisprite26.color.r, uisprite26.color.g, uisprite26.color.b, 0.75f); UISprite uisprite27 = this.ClubShadow[5]; uisprite27.color = new Color(uisprite27.color.r, uisprite27.color.g, uisprite27.color.b, 0.75f); } UISprite uisprite28 = this.ClubShadow[6]; uisprite28.color = new Color(uisprite28.color.r, uisprite28.color.g, uisprite28.color.b, 0.75f); if (this.Yandere.Followers > 0) { UISprite uisprite29 = this.FavorShadow[1]; uisprite29.color = new Color(uisprite29.color.r, uisprite29.color.g, uisprite29.color.b, 0.75f); } if (this.Yandere.TargetStudent.DistanceToDestination > 0.5f) { UISprite uisprite30 = this.FavorShadow[2]; uisprite30.color = new Color(uisprite30.color.r, uisprite30.color.g, uisprite30.color.b, 0.75f); } if (!this.Yandere.TargetStudent.Male) { UISprite uisprite31 = this.LoveShadow[1]; uisprite31.color = new Color(uisprite31.color.r, uisprite31.color.g, uisprite31.color.b, 0.75f); } if (this.DatingMinigame == null || !this.Yandere.Inventory.Headset || (this.Yandere.TargetStudent.Male && !this.LoveManager.RivalWaiting) || this.LoveManager.Courted) { UISprite uisprite32 = this.LoveShadow[2]; uisprite32.color = new Color(uisprite32.color.r, uisprite32.color.g, uisprite32.color.b, 0.75f); } if (!this.Yandere.TargetStudent.Male || !this.Yandere.Inventory.Rose || this.Yandere.TargetStudent.Rose) { UISprite uisprite33 = this.LoveShadow[4]; uisprite33.color = new Color(uisprite33.color.r, uisprite33.color.g, uisprite33.color.b, 0.75f); } }
// Token: 0x06000224 RID: 548 RVA: 0x0002C190 File Offset: 0x0002A590 private void Update() { if (!this.Show) { if (base.transform.localScale.x > 0.1f) { base.transform.localScale = Vector3.Lerp(base.transform.localScale, Vector3.zero, Time.deltaTime * 10f); } else if (this.Panel.enabled) { base.transform.localScale = Vector3.zero; this.Panel.enabled = false; } } else { if (this.ClubLeader) { this.Interaction.localScale = Vector3.Lerp(this.Interaction.localScale, Vector3.zero, Time.deltaTime * 10f); this.Favors.localScale = Vector3.Lerp(this.Favors.localScale, Vector3.zero, Time.deltaTime * 10f); this.Club.localScale = Vector3.Lerp(this.Club.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f); this.Love.localScale = Vector3.Lerp(this.Love.localScale, Vector3.zero, Time.deltaTime * 10f); } else if (this.AskingFavor) { this.Interaction.localScale = Vector3.Lerp(this.Interaction.localScale, Vector3.zero, Time.deltaTime * 10f); this.Favors.localScale = Vector3.Lerp(this.Favors.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f); this.Club.localScale = Vector3.Lerp(this.Club.localScale, Vector3.zero, Time.deltaTime * 10f); this.Love.localScale = Vector3.Lerp(this.Love.localScale, Vector3.zero, Time.deltaTime * 10f); } else if (this.Matchmaking) { this.Interaction.localScale = Vector3.Lerp(this.Interaction.localScale, Vector3.zero, Time.deltaTime * 10f); this.Favors.localScale = Vector3.Lerp(this.Favors.localScale, Vector3.zero, Time.deltaTime * 10f); this.Club.localScale = Vector3.Lerp(this.Club.localScale, Vector3.zero, Time.deltaTime * 10f); this.Love.localScale = Vector3.Lerp(this.Love.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f); } else { this.Interaction.localScale = Vector3.Lerp(this.Interaction.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f); this.Favors.localScale = Vector3.Lerp(this.Favors.localScale, Vector3.zero, Time.deltaTime * 10f); this.Club.localScale = Vector3.Lerp(this.Club.localScale, Vector3.zero, Time.deltaTime * 10f); this.Love.localScale = Vector3.Lerp(this.Love.localScale, Vector3.zero, Time.deltaTime * 10f); } this.MouseDelta.x = this.MouseDelta.x + Input.GetAxis("Mouse X"); this.MouseDelta.y = this.MouseDelta.y + Input.GetAxis("Mouse Y"); if (this.MouseDelta.x > 11f) { this.MouseDelta.x = 11f; } else if (this.MouseDelta.x < -11f) { this.MouseDelta.x = -11f; } if (this.MouseDelta.y > 11f) { this.MouseDelta.y = 11f; } else if (this.MouseDelta.y < -11f) { this.MouseDelta.y = -11f; } base.transform.localScale = Vector3.Lerp(base.transform.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f); if (!this.AskingFavor && !this.Matchmaking) { if (Input.GetAxis("Vertical") < 0.5f && Input.GetAxis("Vertical") > -0.5f && Input.GetAxis("Horizontal") < 0.5f && Input.GetAxis("Horizontal") > -0.5f) { this.Selected = 0; } if ((Input.GetAxis("Vertical") > 0.5f && Input.GetAxis("Horizontal") < 0.5f && Input.GetAxis("Horizontal") > -0.5f) || (this.MouseDelta.y > 10f && this.MouseDelta.x < 10f && this.MouseDelta.x > -10f)) { this.Selected = 1; } if ((Input.GetAxis("Vertical") > 0f && Input.GetAxis("Horizontal") > 0.5f) || (this.MouseDelta.y > 0f && this.MouseDelta.x > 10f)) { this.Selected = 2; } if ((Input.GetAxis("Vertical") < 0f && Input.GetAxis("Horizontal") > 0.5f) || (this.MouseDelta.y < 0f && this.MouseDelta.x > 10f)) { this.Selected = 3; } if ((Input.GetAxis("Vertical") < -0.5f && Input.GetAxis("Horizontal") < 0.5f && Input.GetAxis("Horizontal") > -0.5f) || (this.MouseDelta.y < -10f && this.MouseDelta.x < 10f && this.MouseDelta.x > -10f)) { this.Selected = 4; } if ((Input.GetAxis("Vertical") < 0f && Input.GetAxis("Horizontal") < -0.5f) || (this.MouseDelta.y < 0f && this.MouseDelta.x < -10f)) { this.Selected = 5; } if ((Input.GetAxis("Vertical") > 0f && Input.GetAxis("Horizontal") < -0.5f) || (this.MouseDelta.y > 0f && this.MouseDelta.x < -10f)) { this.Selected = 6; } if (!this.ClubLeader) { if (this.Selected == 5) { this.CenterLabel.text = (PlayerGlobals.GetStudentFriend(this.Yandere.TargetStudent.StudentID) ? "Love" : this.Text[this.Selected]); } else { this.CenterLabel.text = this.Text[this.Selected]; } } else { this.CenterLabel.text = this.ClubText[this.Selected]; } } else { if (Input.GetAxis("Vertical") < 0.5f && Input.GetAxis("Vertical") > -0.5f && Input.GetAxis("Horizontal") < 0.5f && Input.GetAxis("Horizontal") > -0.5f) { this.Selected = 0; } if ((Input.GetAxis("Vertical") > 0.5f && Input.GetAxis("Horizontal") < 0.5f && Input.GetAxis("Horizontal") > -0.5f) || (this.MouseDelta.y > 10f && this.MouseDelta.x < 10f && this.MouseDelta.x > -10f)) { this.Selected = 1; } if ((Input.GetAxis("Vertical") < 0.5f && Input.GetAxis("Vertical") > -0.5f && Input.GetAxis("Horizontal") > 0.5f) || (this.MouseDelta.y < 10f && this.MouseDelta.y > -10f && this.MouseDelta.x > 10f)) { this.Selected = 2; } if ((Input.GetAxis("Vertical") < -0.5f && Input.GetAxis("Horizontal") < 0.5f && Input.GetAxis("Horizontal") > -0.5f) || (this.MouseDelta.y < -10f && this.MouseDelta.x < 10f && this.MouseDelta.x > -10f)) { this.Selected = 3; } if ((Input.GetAxis("Vertical") < 0.5f && Input.GetAxis("Vertical") > -0.5f && Input.GetAxis("Horizontal") < -0.5f) || (this.MouseDelta.y < 10f && this.MouseDelta.y > -10f && this.MouseDelta.x < -10f)) { this.Selected = 4; } if (this.Selected < this.FavorText.Length) { this.CenterLabel.text = ((!this.AskingFavor) ? this.LoveText[this.Selected] : this.FavorText[this.Selected]); } } if (!this.ClubLeader) { for (int i = 1; i < 7; i++) { Transform transform = this.Segment[i].transform; transform.localScale = Vector3.Lerp(transform.localScale, (this.Selected != i) ? new Vector3(1f, 1f, 1f) : new Vector3(1.3f, 1.3f, 1f), Time.deltaTime * 10f); } } else { for (int j = 1; j < 7; j++) { Transform transform2 = this.ClubSegment[j].transform; transform2.localScale = Vector3.Lerp(transform2.localScale, (this.Selected != j) ? new Vector3(1f, 1f, 1f) : new Vector3(1.3f, 1.3f, 1f), Time.deltaTime * 10f); } } if (!this.Matchmaking) { for (int k = 1; k < 5; k++) { Transform transform3 = this.FavorSegment[k].transform; transform3.localScale = Vector3.Lerp(transform3.localScale, (this.Selected != k) ? new Vector3(1f, 1f, 1f) : new Vector3(1.3f, 1.3f, 1f), Time.deltaTime * 10f); } } else { for (int l = 1; l < 5; l++) { Transform transform4 = this.LoveSegment[l].transform; transform4.localScale = Vector3.Lerp(transform4.localScale, (this.Selected != l) ? new Vector3(1f, 1f, 1f) : new Vector3(1.3f, 1.3f, 1f), Time.deltaTime * 10f); } } if (Input.GetButtonDown("A")) { if (this.ClubLeader) { if (this.Selected != 0 && this.ClubShadow[this.Selected].color.a == 0f) { if (this.Selected == 1) { this.Impatience.fillAmount = 0f; this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubInfo; this.Yandere.TargetStudent.TalkTimer = 100f; this.Yandere.TargetStudent.ClubPhase = 1; this.Show = false; } if (this.Selected == 2) { this.Impatience.fillAmount = 0f; this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubJoin; this.Yandere.TargetStudent.TalkTimer = 100f; this.Show = false; this.ClubManager.CheckGrudge(this.Yandere.TargetStudent.Club); if (ClubGlobals.GetQuitClub(this.Yandere.TargetStudent.Club)) { this.Yandere.TargetStudent.ClubPhase = 4; } else if (ClubGlobals.Club != ClubType.None) { this.Yandere.TargetStudent.ClubPhase = 5; } else if (this.ClubManager.ClubGrudge) { this.Yandere.TargetStudent.ClubPhase = 6; } else { this.Yandere.TargetStudent.ClubPhase = 1; } } if (this.Selected == 3) { this.Impatience.fillAmount = 0f; this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubQuit; this.Yandere.TargetStudent.TalkTimer = 100f; this.Yandere.TargetStudent.ClubPhase = 1; this.Show = false; } if (this.Selected == 4) { this.Impatience.fillAmount = 0f; this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubBye; this.Yandere.TargetStudent.TalkTimer = this.Yandere.Subtitle.ClubFarewellClips[(int)this.Yandere.TargetStudent.Club].length; this.Show = false; } if (this.Selected == 5) { this.Impatience.fillAmount = 0f; this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubActivity; this.Yandere.TargetStudent.TalkTimer = 100f; if (this.Clock.HourTime < 17f) { this.Yandere.TargetStudent.ClubPhase = 4; } else if (this.Clock.HourTime > 17.5f) { this.Yandere.TargetStudent.ClubPhase = 5; } else { this.Yandere.TargetStudent.ClubPhase = 1; } this.Show = false; } if (this.Selected == 6) { } } } else if (this.AskingFavor) { if (this.Selected != 0) { if (this.Selected < this.FavorShadow.Length && this.FavorShadow[this.Selected] != null && this.FavorShadow[this.Selected].color.a == 0f) { if (this.Selected == 1) { this.Impatience.fillAmount = 0f; this.Yandere.Interaction = YandereInteractionType.FollowMe; this.Yandere.TalkTimer = 3f; this.Show = false; } if (this.Selected == 2) { this.Impatience.fillAmount = 0f; this.Yandere.Interaction = YandereInteractionType.GoAway; this.Yandere.TalkTimer = 3f; this.Show = false; } if (this.Selected == 4) { this.PauseScreen.StudentInfoMenu.Distracting = true; this.PauseScreen.StudentInfoMenu.gameObject.SetActive(true); this.PauseScreen.StudentInfoMenu.Column = 0; this.PauseScreen.StudentInfoMenu.Row = 0; this.PauseScreen.StudentInfoMenu.UpdateHighlight(); base.StartCoroutine(this.PauseScreen.StudentInfoMenu.UpdatePortraits()); this.PauseScreen.MainMenu.SetActive(false); this.PauseScreen.Panel.enabled = true; this.PauseScreen.Sideways = true; this.PauseScreen.Show = true; Time.timeScale = 0f; this.PromptBar.ClearButtons(); this.PromptBar.Label[1].text = "Cancel"; this.PromptBar.UpdateButtons(); this.PromptBar.Show = true; this.Impatience.fillAmount = 0f; this.Yandere.Interaction = YandereInteractionType.DistractThem; this.Yandere.TalkTimer = 3f; this.Show = false; } } if (this.Selected == 3) { this.AskingFavor = false; } } } else if (this.Matchmaking) { if (this.Selected != 0) { if (this.Selected < this.LoveShadow.Length && this.LoveShadow[this.Selected] != null && this.LoveShadow[this.Selected].color.a == 0f) { if (this.Selected == 1) { this.PromptBar.ClearButtons(); this.PromptBar.Label[0].text = "Select"; this.PromptBar.Label[4].text = "Change"; this.PromptBar.UpdateButtons(); this.PromptBar.Show = true; this.AppearanceWindow.gameObject.SetActive(true); this.AppearanceWindow.Show = true; this.Show = false; } if (this.Selected == 2) { this.Impatience.fillAmount = 0f; this.Yandere.Interaction = YandereInteractionType.Court; this.Yandere.TalkTimer = 5f; this.Show = false; } if (this.Selected == 4) { this.Impatience.fillAmount = 0f; this.Yandere.Interaction = YandereInteractionType.Confess; this.Yandere.TalkTimer = 5f; this.Show = false; } } if (this.Selected == 3) { this.Matchmaking = false; } } } else if (this.Selected != 0 && this.Shadow[this.Selected].color.a == 0f) { if (this.Selected == 1) { this.Impatience.fillAmount = 0f; this.Yandere.Interaction = YandereInteractionType.Apologizing; this.Yandere.TalkTimer = 3f; this.Show = false; } if (this.Selected == 2) { this.Impatience.fillAmount = 0f; this.Yandere.Interaction = YandereInteractionType.Compliment; this.Yandere.TalkTimer = 3f; this.Show = false; } if (this.Selected == 3) { this.PauseScreen.StudentInfoMenu.Gossiping = true; this.PauseScreen.StudentInfoMenu.gameObject.SetActive(true); this.PauseScreen.StudentInfoMenu.Column = 0; this.PauseScreen.StudentInfoMenu.Row = 0; this.PauseScreen.StudentInfoMenu.UpdateHighlight(); base.StartCoroutine(this.PauseScreen.StudentInfoMenu.UpdatePortraits()); this.PauseScreen.MainMenu.SetActive(false); this.PauseScreen.Panel.enabled = true; this.PauseScreen.Sideways = true; this.PauseScreen.Show = true; Time.timeScale = 0f; this.PromptBar.ClearButtons(); this.PromptBar.Label[0].text = string.Empty; this.PromptBar.Label[1].text = "Cancel"; this.PromptBar.UpdateButtons(); this.PromptBar.Show = true; this.Impatience.fillAmount = 0f; this.Yandere.Interaction = YandereInteractionType.Gossip; this.Yandere.TalkTimer = 3f; this.Show = false; } if (this.Selected == 4) { this.Impatience.fillAmount = 0f; this.Yandere.Interaction = YandereInteractionType.Bye; this.Yandere.TalkTimer = 2f; this.Show = false; } if (this.Selected == 5) { if (!PlayerGlobals.GetStudentFriend(this.Yandere.TargetStudent.StudentID)) { this.CheckTaskCompletion(); if (this.Yandere.TargetStudent.TaskPhase == 0) { this.Impatience.fillAmount = 0f; this.Yandere.TargetStudent.Interaction = StudentInteractionType.GivingTask; this.Yandere.TargetStudent.TalkTimer = 100f; this.Yandere.TargetStudent.TaskPhase = 1; } else { this.Impatience.fillAmount = 0f; this.Yandere.TargetStudent.Interaction = StudentInteractionType.GivingTask; this.Yandere.TargetStudent.TalkTimer = 100f; } this.Show = false; } else if (this.Yandere.LoveManager.SuitorProgress == 0) { this.PauseScreen.StudentInfoMenu.MatchMaking = true; this.PauseScreen.StudentInfoMenu.gameObject.SetActive(true); this.PauseScreen.StudentInfoMenu.Column = 0; this.PauseScreen.StudentInfoMenu.Row = 0; this.PauseScreen.StudentInfoMenu.UpdateHighlight(); base.StartCoroutine(this.PauseScreen.StudentInfoMenu.UpdatePortraits()); this.PauseScreen.MainMenu.SetActive(false); this.PauseScreen.Panel.enabled = true; this.PauseScreen.Sideways = true; this.PauseScreen.Show = true; Time.timeScale = 0f; this.PromptBar.ClearButtons(); this.PromptBar.Label[0].text = "View Info"; this.PromptBar.Label[1].text = "Cancel"; this.PromptBar.UpdateButtons(); this.PromptBar.Show = true; this.Impatience.fillAmount = 0f; this.Yandere.Interaction = YandereInteractionType.NamingCrush; this.Yandere.TalkTimer = 3f; this.Show = false; } else { this.Matchmaking = true; } } if (this.Selected == 6) { this.AskingFavor = true; } } } } this.PreviousPosition = Input.mousePosition; }
// Token: 0x060007E2 RID: 2018 RVA: 0x000797DC File Offset: 0x00077BDC public IEnumerator UpdatePortraits() { for (int ID = 1; ID < 101; ID++) { if (ID == 0) { this.StudentPortraits[ID].Portrait.mainTexture = this.InfoChan; } else if (!this.PortraitLoaded[ID]) { if (ID < 98) { if (StudentGlobals.GetStudentPhotographed(ID)) { string path = string.Concat(new string[] { "file:///", Application.streamingAssetsPath, "/Portraits/Student_", ID.ToString(), ".png" }); WWW www = new WWW(path); yield return(www); if (www.error == null) { if (!StudentGlobals.GetStudentReplaced(ID)) { if (!this.CustomPortraits) { this.StudentPortraits[ID].Portrait.mainTexture = ((ID >= 33 && ID <= 85) ? this.BlankPortrait : www.texture); } else { this.StudentPortraits[ID].Portrait.mainTexture = www.texture; } } else { this.StudentPortraits[ID].Portrait.mainTexture = this.BlankPortrait; } } else { this.StudentPortraits[ID].Portrait.mainTexture = this.UnknownPortrait; } this.PortraitLoaded[ID] = true; } else { this.StudentPortraits[ID].Portrait.mainTexture = this.UnknownPortrait; } } else if (ID == 98) { this.StudentPortraits[ID].Portrait.mainTexture = this.Counselor; } else if (ID == 99) { this.StudentPortraits[ID].Portrait.mainTexture = this.Headmaster; } else if (ID == 100) { this.StudentPortraits[ID].Portrait.mainTexture = this.InfoChan; } } if (PlayerGlobals.GetStudentPantyShot(this.JSON.Students[ID].Name)) { this.StudentPortraits[ID].Panties.SetActive(true); } this.StudentPortraits[ID].Friend.SetActive(PlayerGlobals.GetStudentFriend(ID)); if (StudentGlobals.GetStudentDying(ID) || StudentGlobals.GetStudentDead(ID)) { this.StudentPortraits[ID].DeathShadow.SetActive(true); } if (SceneManager.GetActiveScene().name == "SchoolScene" && this.StudentManager.Students[ID] != null && this.StudentManager.Students[ID].Tranquil) { this.StudentPortraits[ID].DeathShadow.SetActive(true); } if (StudentGlobals.GetStudentArrested(ID)) { this.StudentPortraits[ID].PrisonBars.SetActive(true); this.StudentPortraits[ID].DeathShadow.SetActive(true); } } yield break; }
// Token: 0x06001A07 RID: 6663 RVA: 0x000FDC0C File Offset: 0x000FBE0C public static PlayerSaveData ReadFromGlobals() { PlayerSaveData playerSaveData = new PlayerSaveData(); playerSaveData.alerts = PlayerGlobals.Alerts; playerSaveData.enlightenment = PlayerGlobals.Enlightenment; playerSaveData.enlightenmentBonus = PlayerGlobals.EnlightenmentBonus; playerSaveData.headset = PlayerGlobals.Headset; playerSaveData.kills = PlayerGlobals.Kills; playerSaveData.numbness = PlayerGlobals.Numbness; playerSaveData.numbnessBonus = PlayerGlobals.NumbnessBonus; playerSaveData.pantiesEquipped = PlayerGlobals.PantiesEquipped; playerSaveData.pantyShots = PlayerGlobals.PantyShots; foreach (int num in PlayerGlobals.KeysOfPhoto()) { if (PlayerGlobals.GetPhoto(num)) { playerSaveData.photo.Add(num); } } foreach (int num2 in PlayerGlobals.KeysOfPhotoOnCorkboard()) { if (PlayerGlobals.GetPhotoOnCorkboard(num2)) { playerSaveData.photoOnCorkboard.Add(num2); } } foreach (int num3 in PlayerGlobals.KeysOfPhotoPosition()) { playerSaveData.photoPosition.Add(num3, PlayerGlobals.GetPhotoPosition(num3)); } foreach (int num4 in PlayerGlobals.KeysOfPhotoRotation()) { playerSaveData.photoRotation.Add(num4, PlayerGlobals.GetPhotoRotation(num4)); } playerSaveData.reputation = PlayerGlobals.Reputation; playerSaveData.seduction = PlayerGlobals.Seduction; playerSaveData.seductionBonus = PlayerGlobals.SeductionBonus; foreach (int num5 in PlayerGlobals.KeysOfSenpaiPhoto()) { if (PlayerGlobals.GetSenpaiPhoto(num5)) { playerSaveData.senpaiPhoto.Add(num5); } } playerSaveData.senpaiShots = PlayerGlobals.SenpaiShots; playerSaveData.socialBonus = PlayerGlobals.SocialBonus; playerSaveData.speedBonus = PlayerGlobals.SpeedBonus; playerSaveData.stealthBonus = PlayerGlobals.StealthBonus; foreach (int num6 in PlayerGlobals.KeysOfStudentFriend()) { if (PlayerGlobals.GetStudentFriend(num6)) { playerSaveData.studentFriend.Add(num6); } } foreach (string text in PlayerGlobals.KeysOfStudentPantyShot()) { if (PlayerGlobals.GetStudentPantyShot(text)) { playerSaveData.studentPantyShot.Add(text); } } return(playerSaveData); }
// 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); } } }