Example #1
0
 // Token: 0x06001C3B RID: 7227 RVA: 0x001528B4 File Offset: 0x00150AB4
 private void Update()
 {
     if (this.Window.activeInHierarchy)
     {
         if (Input.GetButtonDown("A"))
         {
             TaskGlobals.SetTaskStatus(this.StudentID, 1);
             this.Yandere.TargetStudent.TalkTimer   = 100f;
             this.Yandere.TargetStudent.Interaction = StudentInteractionType.GivingTask;
             this.Yandere.TargetStudent.TaskPhase   = 4;
             this.PromptBar.ClearButtons();
             this.PromptBar.Show = false;
             this.Window.SetActive(false);
             this.UpdateTaskObjects(this.StudentID);
             Time.timeScale = 1f;
         }
         else if (Input.GetButtonDown("B"))
         {
             this.Yandere.TargetStudent.TalkTimer   = 100f;
             this.Yandere.TargetStudent.Interaction = StudentInteractionType.GivingTask;
             this.Yandere.TargetStudent.TaskPhase   = 0;
             this.PromptBar.ClearButtons();
             this.PromptBar.Show = false;
             this.Window.SetActive(false);
             Time.timeScale = 1f;
         }
     }
     if (this.TaskComplete)
     {
         if (this.TrueTimer == 0f)
         {
             base.GetComponent <AudioSource>().Play();
         }
         this.TrueTimer += Time.deltaTime;
         this.Timer     += Time.deltaTime;
         if (this.ID < this.TaskCompleteLetters.Length && this.Timer > 0.05f)
         {
             this.TaskCompleteLetters[this.ID].SetActive(true);
             this.Timer = 0f;
             this.ID++;
         }
         if (this.TaskCompleteLetters[12].transform.localPosition.y < -725f)
         {
             this.ID = 0;
             while (this.ID < this.TaskCompleteLetters.Length)
             {
                 this.TaskCompleteLetters[this.ID].GetComponent <GrowShrinkScript>().Return();
                 this.ID++;
             }
             this.TaskCheck();
             this.DialogueWheel.End();
             this.TaskComplete = false;
             this.TrueTimer    = 0f;
             this.Timer        = 0f;
             this.ID           = 0;
         }
     }
 }
 // Token: 0x06000751 RID: 1873 RVA: 0x0006F17C File Offset: 0x0006D57C
 public static void WriteToGlobals(TaskSaveData data)
 {
     foreach (int photoID in data.kittenPhoto)
     {
         TaskGlobals.SetKittenPhoto(photoID, true);
     }
     foreach (KeyValuePair <int, int> keyValuePair in data.taskStatus)
     {
         TaskGlobals.SetTaskStatus(keyValuePair.Key, keyValuePair.Value);
     }
 }
Example #3
0
 // Token: 0x06000881 RID: 2177 RVA: 0x00099F90 File Offset: 0x00098390
 private void Update()
 {
     if (TaskGlobals.GetTaskStatus(6) == 1 && this.Prompts[6].Circle[3].fillAmount == 0f)
     {
         if (this.StudentManager.Students[6] != null)
         {
             this.StudentManager.Students[6].TaskPhase = 5;
         }
         TaskGlobals.SetTaskStatus(6, 2);
         UnityEngine.Object.Destroy(this.TaskObjects[6]);
     }
     if (TaskGlobals.GetTaskStatus(15) == 1 && this.Prompts[15].Circle[3] != null && this.Prompts[15].Circle[3].fillAmount == 0f)
     {
         if (this.StudentManager.Students[15] != null)
         {
             this.StudentManager.Students[15].TaskPhase = 5;
         }
         TaskGlobals.SetTaskStatus(15, 2);
         UnityEngine.Object.Destroy(this.TaskObjects[15]);
     }
     if (TaskGlobals.GetTaskStatus(33) == 1 && this.Prompts[33].Circle[3] != null && this.Prompts[33].Circle[3].fillAmount == 0f)
     {
         if (this.StudentManager.Students[33] != null)
         {
             this.StudentManager.Students[33].TaskPhase = 5;
         }
         TaskGlobals.SetTaskStatus(33, 2);
         UnityEngine.Object.Destroy(this.TaskObjects[33]);
     }
     if (!this.Yandere.Talking)
     {
         if (TaskGlobals.GetTaskStatus(32) == 1)
         {
             if (this.Yandere.Inventory.Cigs)
             {
                 if (this.StudentManager.Students[32] != null)
                 {
                     this.StudentManager.Students[32].TaskPhase = 5;
                 }
                 TaskGlobals.SetTaskStatus(32, 2);
             }
         }
         else if (TaskGlobals.GetTaskStatus(32) == 2 && !this.Yandere.Inventory.Cigs)
         {
             if (this.StudentManager.Students[32] != null)
             {
                 this.StudentManager.Students[32].TaskPhase = 4;
             }
             TaskGlobals.SetTaskStatus(32, 1);
         }
     }
 }
Example #4
0
 // Token: 0x06001DCC RID: 7628 RVA: 0x001731D8 File Offset: 0x001713D8
 private void Start()
 {
     this.Midori.transform.localPosition    = new Vector3(1540f, 0f, 0f);
     this.Midori.transform.localEulerAngles = Vector3.zero;
     this.Midori.gameObject.SetActive(false);
     if (YanvaniaGlobals.DraculaDefeated)
     {
         TaskGlobals.SetTaskStatus(38, 2);
         this.SkipButton.SetActive(true);
         this.Logo.gameObject.SetActive(false);
     }
     else
     {
         this.SkipButton.SetActive(false);
     }
     this.Prologue.gameObject.SetActive(false);
     this.Prologue.localPosition = new Vector3(this.Prologue.localPosition.x, -2665f, this.Prologue.localPosition.z);
     this.Darkness.color         = new Color(this.Darkness.color.r, this.Darkness.color.g, this.Darkness.color.b, 1f);
     this.Buttons.alpha          = 0f;
     this.Logo.color             = new Color(this.Logo.color.r, this.Logo.color.g, this.Logo.color.b, 0f);
 }
 // 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]);
     }
 }
 private void Update()
 {
     if (!this.MissionMode && !this.NoDebug)
     {
         if (!this.Yandere.InClass && !this.Yandere.Chased && this.Yandere.Chasers == 0 && this.Yandere.CanMove)
         {
             if (Input.GetKeyDown(KeyCode.Backslash) && this.Yandere.transform.position.y < 100f)
             {
                 this.EasterEggWindow.SetActive(false);
                 this.Window.SetActive(!this.Window.activeInHierarchy);
             }
         }
         else if (this.Window.activeInHierarchy)
         {
             this.Window.SetActive(false);
         }
         if (this.Window.activeInHierarchy)
         {
             if (Input.GetKeyDown(KeyCode.F1))
             {
                 StudentGlobals.FemaleUniform = 1;
                 StudentGlobals.MaleUniform   = 1;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F2))
             {
                 StudentGlobals.FemaleUniform = 2;
                 StudentGlobals.MaleUniform   = 2;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F3))
             {
                 StudentGlobals.FemaleUniform = 3;
                 StudentGlobals.MaleUniform   = 3;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F4))
             {
                 StudentGlobals.FemaleUniform = 4;
                 StudentGlobals.MaleUniform   = 4;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F5))
             {
                 StudentGlobals.FemaleUniform = 5;
                 StudentGlobals.MaleUniform   = 5;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F6))
             {
                 StudentGlobals.FemaleUniform = 6;
                 StudentGlobals.MaleUniform   = 6;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F7))
             {
                 this.ID = 1;
                 while (this.ID < 8)
                 {
                     this.StudentManager.DrinkingFountains[this.ID].PowerSwitch.PowerOutlet.SabotagedOutlet.SetActive(true);
                     this.StudentManager.DrinkingFountains[this.ID].Puddle.SetActive(true);
                     this.ID++;
                 }
                 this.Window.SetActive(false);
             }
             else if (Input.GetKeyDown(KeyCode.F8))
             {
                 GameGlobals.CensorBlood = !GameGlobals.CensorBlood;
                 this.WeaponManager.ChangeBloodTexture();
                 this.Yandere.Bloodiness += 0f;
                 this.Window.SetActive(false);
             }
             else if (Input.GetKeyDown(KeyCode.F9))
             {
                 this.Yandere.AttackManager.Censor = !this.Yandere.AttackManager.Censor;
                 this.Window.SetActive(false);
             }
             else if (Input.GetKeyDown(KeyCode.F10))
             {
                 this.StudentManager.Students[21].Attempts = 101;
                 this.StudentManager.Students[22].Attempts = 101;
                 this.StudentManager.Students[23].Attempts = 101;
                 this.StudentManager.Students[24].Attempts = 101;
                 this.StudentManager.Students[25].Attempts = 101;
                 this.Window.SetActive(false);
             }
             else if (!Input.GetKeyDown(KeyCode.F12))
             {
                 if (Input.GetKeyDown(KeyCode.Alpha1))
                 {
                     DateGlobals.Weekday = DayOfWeek.Monday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha2))
                 {
                     DateGlobals.Weekday = DayOfWeek.Tuesday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha3))
                 {
                     DateGlobals.Weekday = DayOfWeek.Wednesday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha4))
                 {
                     DateGlobals.Weekday = DayOfWeek.Thursday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha5))
                 {
                     DateGlobals.Weekday = DayOfWeek.Friday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha6))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[1].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha7))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[2].position + new Vector3(0.75f, 0f, 0f);
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha8))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[3].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha9))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[4].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.Clock.PresentTime = 426f;
                     StudentScript studentScript = this.StudentManager.Students[30];
                     if (studentScript != null)
                     {
                         if (studentScript.Phase < 2)
                         {
                             studentScript.ShoeRemoval.Start();
                             studentScript.ShoeRemoval.PutOnShoes();
                             studentScript.CanTalk            = true;
                             studentScript.Phase              = 2;
                             studentScript.CurrentDestination = studentScript.Destinations[2];
                             studentScript.Pathfinding.target = studentScript.Destinations[2];
                         }
                         studentScript.transform.position = studentScript.Destinations[2].position;
                     }
                     StudentScript studentScript2 = this.StudentManager.Students[28];
                     if (studentScript2 != null)
                     {
                         studentScript2.ShoeRemoval.Start();
                         studentScript2.ShoeRemoval.PutOnShoes();
                         studentScript2.Phase = 2;
                         studentScript2.CurrentDestination = studentScript2.Destinations[2];
                         studentScript2.Pathfinding.target = studentScript2.Destinations[2];
                         studentScript2.transform.position = studentScript2.Destinations[2].position;
                     }
                     StudentScript studentScript3 = this.StudentManager.Students[39];
                     if (studentScript3 != null)
                     {
                         studentScript3.ShoeRemoval.Start();
                         studentScript3.ShoeRemoval.PutOnShoes();
                         studentScript3.Phase = 2;
                         studentScript3.ScheduleBlocks[2].action = "Stand";
                         studentScript3.GetDestinations();
                         studentScript3.CurrentDestination = this.MidoriSpot;
                         studentScript3.Pathfinding.target = this.MidoriSpot;
                         studentScript3.transform.position = this.MidoriSpot.position;
                     }
                     this.Window.SetActive(false);
                     Physics.SyncTransforms();
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha0))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[11].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.Window.SetActive(false);
                     Physics.SyncTransforms();
                 }
                 else if (Input.GetKeyDown(KeyCode.A))
                 {
                     if (SchoolAtmosphere.Type == SchoolAtmosphereType.High)
                     {
                         SchoolGlobals.SchoolAtmosphere = 0.5f;
                     }
                     else if (SchoolAtmosphere.Type == SchoolAtmosphereType.Medium)
                     {
                         SchoolGlobals.SchoolAtmosphere = 0f;
                     }
                     else
                     {
                         SchoolGlobals.SchoolAtmosphere = 1f;
                     }
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.C))
                 {
                     this.ID = 1;
                     while (this.ID < 11)
                     {
                         CollectibleGlobals.SetTapeCollected(this.ID, true);
                         this.ID++;
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.D))
                 {
                     this.ID = 0;
                     while (this.ID < 5)
                     {
                         StudentScript studentScript4 = this.StudentManager.Students[76 + this.ID];
                         if (studentScript4 != null)
                         {
                             if (studentScript4.Phase < 2)
                             {
                                 studentScript4.ShoeRemoval.Start();
                                 studentScript4.ShoeRemoval.PutOnShoes();
                                 studentScript4.Phase = 2;
                                 studentScript4.CurrentDestination = studentScript4.Destinations[2];
                                 studentScript4.Pathfinding.target = studentScript4.Destinations[2];
                             }
                             studentScript4.transform.position = studentScript4.Destinations[2].position;
                         }
                         this.ID++;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.F))
                 {
                     this.GreenScreen.SetActive(true);
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.G))
                 {
                     StudentScript studentScript5 = this.StudentManager.Students[this.RooftopStudent];
                     if (this.Clock.HourTime < 15f)
                     {
                         PlayerGlobals.SetStudentFriend(this.RooftopStudent, true);
                         this.Yandere.transform.position = this.RooftopSpot.position + new Vector3(1f, 0f, 0f);
                         this.WeaponManager.Weapons[6].transform.position = this.Yandere.transform.position + new Vector3(0f, 0f, 1.915f);
                         if (studentScript5 != null)
                         {
                             this.StudentManager.OfferHelp.UpdateLocation();
                             this.StudentManager.OfferHelp.enabled = true;
                             if (!studentScript5.Indoors)
                             {
                                 if (studentScript5.ShoeRemoval.Locker == null)
                                 {
                                     studentScript5.ShoeRemoval.Start();
                                 }
                                 studentScript5.ShoeRemoval.PutOnShoes();
                             }
                             studentScript5.CharacterAnimation.Play(studentScript5.IdleAnim);
                             studentScript5.transform.position    = this.RooftopSpot.position;
                             studentScript5.transform.rotation    = this.RooftopSpot.rotation;
                             studentScript5.Prompt.Label[0].text  = "     Push";
                             studentScript5.CurrentDestination    = this.RooftopSpot;
                             studentScript5.Pathfinding.target    = this.RooftopSpot;
                             studentScript5.Pathfinding.canSearch = false;
                             studentScript5.Pathfinding.canMove   = false;
                             studentScript5.SpeechLines.Stop();
                             studentScript5.Pushable = true;
                             studentScript5.Routine  = false;
                             studentScript5.Meeting  = true;
                             studentScript5.MeetTime = 0f;
                         }
                         if (this.Clock.HourTime < 7.1f)
                         {
                             this.Clock.PresentTime = 426f;
                         }
                     }
                     else
                     {
                         this.Clock.PresentTime            = 960f;
                         studentScript5.transform.position = this.Lockers.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.K))
                 {
                     SchoolGlobals.KidnapVictim  = 25;
                     StudentGlobals.StudentSlave = 25;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.L))
                 {
                     SchemeGlobals.SetSchemeStage(1, 2);
                     EventGlobals.Event1 = true;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.M))
                 {
                     PlayerGlobals.Money          = 100f;
                     this.Yandere.Inventory.Money = 100f;
                     this.Yandere.Inventory.UpdateMoney();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.O))
                 {
                     this.Yandere.Inventory.RivalPhone = true;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.P))
                 {
                     this.ID = 2;
                     while (this.ID < 93)
                     {
                         StudentScript studentScript6 = this.StudentManager.Students[this.ID];
                         if (studentScript6 != null)
                         {
                             studentScript6.Patience = 999;
                             studentScript6.Pestered = -999;
                             studentScript6.Ignoring = false;
                         }
                         this.ID++;
                     }
                     this.Yandere.Inventory.PantyShots += 20;
                     PlayerGlobals.PantyShots          += 20;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Q))
                 {
                     this.Censor();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.R))
                 {
                     if (PlayerGlobals.Reputation == -100f)
                     {
                         PlayerGlobals.Reputation = -66.66666f;
                     }
                     else if (PlayerGlobals.Reputation == -66.66666f)
                     {
                         PlayerGlobals.Reputation = 0f;
                     }
                     else if (PlayerGlobals.Reputation == 0f)
                     {
                         PlayerGlobals.Reputation = 66.66666f;
                     }
                     else if (PlayerGlobals.Reputation == 66.66666f)
                     {
                         PlayerGlobals.Reputation = 100f;
                     }
                     else if (PlayerGlobals.Reputation == 100f)
                     {
                         PlayerGlobals.Reputation = -100f;
                     }
                     this.Reputation.Reputation = PlayerGlobals.Reputation;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.S))
                 {
                     this.Yandere.Class.PhysicalGrade = 5;
                     this.Yandere.Class.Seduction     = 5;
                     this.StudentManager.Police.UpdateCorpses();
                     this.ID = 1;
                     while (this.ID < 101)
                     {
                         StudentGlobals.SetStudentPhotographed(this.ID, true);
                         this.ID++;
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.T))
                 {
                     this.Zoom.OverShoulder = !this.Zoom.OverShoulder;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.U))
                 {
                     PlayerGlobals.SetStudentFriend(28, true);
                     PlayerGlobals.SetStudentFriend(30, true);
                     this.ID = 1;
                     while (this.ID < 26)
                     {
                         ConversationGlobals.SetTopicLearnedByStudent(this.ID, 30, true);
                         ConversationGlobals.SetTopicDiscovered(this.ID, true);
                         this.ID++;
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Z))
                 {
                     this.Yandere.Police.Invalid = true;
                     if (Input.GetKey(KeyCode.LeftShift))
                     {
                         this.ID = 2;
                         while (this.ID < 93)
                         {
                             this.StudentManager.Students[this.ID] != null;
                             this.ID++;
                         }
                     }
                     else
                     {
                         this.ID = 2;
                         while (this.ID < 101)
                         {
                             StudentScript studentScript7 = this.StudentManager.Students[this.ID];
                             if (studentScript7 != null)
                             {
                                 studentScript7.SpawnAlarmDisc();
                                 studentScript7.BecomeRagdoll();
                                 studentScript7.DeathType = DeathType.EasterEgg;
                             }
                             this.ID++;
                         }
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.X))
                 {
                     TaskGlobals.SetTaskStatus(36, 3);
                     SchoolGlobals.ReactedToGameLeader = false;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Backspace))
                 {
                     Time.timeScale         = 1f;
                     this.Clock.PresentTime = 1079f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.BackQuote))
                 {
                     Globals.DeleteAll();
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Space))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[5].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     for (int i = 46; i < 51; i++)
                     {
                         if (this.StudentManager.Students[i] != null)
                         {
                             this.StudentManager.Students[i].transform.position = this.TeleportSpot[5].position;
                             if (!this.StudentManager.Students[i].Indoors)
                             {
                                 if (this.StudentManager.Students[i].ShoeRemoval.Locker == null)
                                 {
                                     this.StudentManager.Students[i].ShoeRemoval.Start();
                                 }
                                 this.StudentManager.Students[i].ShoeRemoval.PutOnShoes();
                             }
                         }
                     }
                     this.Clock.PresentTime = 1015f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     this.Window.SetActive(false);
                     this.OsanaEvent1.enabled = false;
                     this.OsanaEvent2.enabled = false;
                     this.OsanaEvent3.enabled = false;
                     Physics.SyncTransforms();
                 }
                 else if (Input.GetKeyDown(KeyCode.LeftAlt))
                 {
                     this.Turtle.SpawnWeapons();
                     this.Yandere.transform.position = this.TeleportSpot[6].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.Clock.PresentTime = 425f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.LeftControl))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[7].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.RightControl))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[8].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Equals))
                 {
                     this.Clock.PresentTime += 10f;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Return))
                 {
                     this.Yandere.transform.eulerAngles = this.TeleportSpot[10].eulerAngles;
                     this.Yandere.transform.position    = this.TeleportSpot[10].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.StudentManager.Students[1].ShoeRemoval.Start();
                     this.StudentManager.Students[1].ShoeRemoval.PutOnShoes();
                     this.StudentManager.Students[1].transform.position = new Vector3(0f, 12.1f, -25f);
                     this.StudentManager.Students[1].Alarmed            = true;
                     this.StudentManager.Students[11].Lethal            = true;
                     this.StudentManager.Students[11].ShoeRemoval.Start();
                     this.StudentManager.Students[11].ShoeRemoval.PutOnShoes();
                     this.StudentManager.Students[11].transform.position = new Vector3(0f, 12.1f, -25f);
                     this.Clock.PresentTime = 780f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.B))
                 {
                     this.Yandere.Inventory.Headset = true;
                     this.StudentManager.LoveManager.SuitorProgress = 1;
                     DatingGlobals.SuitorProgress = 1;
                     PlayerGlobals.SetStudentFriend(6, true);
                     PlayerGlobals.SetStudentFriend(11, true);
                     for (int j = 0; j < 11; j++)
                     {
                         DatingGlobals.SetComplimentGiven(j, false);
                     }
                     this.ID = 1;
                     while (this.ID < 26)
                     {
                         ConversationGlobals.SetTopicLearnedByStudent(this.ID, 11, true);
                         ConversationGlobals.SetTopicDiscovered(this.ID, true);
                         this.ID++;
                     }
                     StudentScript studentScript8 = this.StudentManager.Students[11];
                     if (studentScript8 != null)
                     {
                         studentScript8.ShoeRemoval.Start();
                         studentScript8.ShoeRemoval.PutOnShoes();
                         studentScript8.CanTalk            = true;
                         studentScript8.Phase              = 2;
                         studentScript8.Pestered           = 0;
                         studentScript8.Patience           = 999;
                         studentScript8.Ignoring           = false;
                         studentScript8.CurrentDestination = studentScript8.Destinations[2];
                         studentScript8.Pathfinding.target = studentScript8.Destinations[2];
                         studentScript8.transform.position = studentScript8.Destinations[2].position;
                     }
                     StudentScript studentScript9 = this.StudentManager.Students[6];
                     if (studentScript9 != null)
                     {
                         studentScript9.ShoeRemoval.Start();
                         studentScript9.ShoeRemoval.PutOnShoes();
                         studentScript9.Phase              = 2;
                         studentScript9.Pestered           = 0;
                         studentScript9.Patience           = 999;
                         studentScript9.Ignoring           = false;
                         studentScript9.CurrentDestination = studentScript9.Destinations[2];
                         studentScript9.Pathfinding.target = studentScript9.Destinations[2];
                         studentScript9.transform.position = studentScript9.Destinations[2].position;
                     }
                     StudentScript studentScript10 = this.StudentManager.Students[10];
                     if (studentScript9 != null)
                     {
                         studentScript9.transform.position = studentScript8.transform.position;
                     }
                     CollectibleGlobals.SetGiftPurchased(6, true);
                     CollectibleGlobals.SetGiftPurchased(7, true);
                     CollectibleGlobals.SetGiftPurchased(8, true);
                     CollectibleGlobals.SetGiftPurchased(9, true);
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Pause))
                 {
                     this.Clock.StopTime = !this.Clock.StopTime;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.W))
                 {
                     this.StudentManager.ToggleBookBags();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.H))
                 {
                     StudentGlobals.FragileSlave  = 5;
                     StudentGlobals.FragileTarget = 31;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.I))
                 {
                     this.StudentManager.Students[3].BecomeRagdoll();
                     this.WeaponManager.Weapons[1].Blood.enabled = true;
                     this.WeaponManager.Weapons[1].FingerprintID = 2;
                     this.WeaponManager.Weapons[1].Victims[3]    = true;
                     this.StudentManager.Students[5].BecomeRagdoll();
                     this.WeaponManager.Weapons[2].Blood.enabled = true;
                     this.WeaponManager.Weapons[2].FingerprintID = 4;
                     this.WeaponManager.Weapons[2].Victims[5]    = true;
                 }
                 else if (!Input.GetKeyDown(KeyCode.J))
                 {
                     if (Input.GetKeyDown(KeyCode.V))
                     {
                         this.StudentManager.LoveManager.ConfessToSuitor = true;
                         this.StudentManager.DatingMinigame.Affection    = 100f;
                         DateGlobals.Weekday = DayOfWeek.Friday;
                         this.Window.SetActive(false);
                     }
                     else if (Input.GetKeyDown(KeyCode.N))
                     {
                         this.ElectrocutionKit[0].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[1].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[2].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[3].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[3].SetActive(true);
                     }
                 }
             }
             if (Input.GetKeyDown(KeyCode.Tab))
             {
                 DatingGlobals.SuitorProgress = 2;
                 SceneManager.LoadScene("LoadingScene");
             }
             if (Input.GetKeyDown(KeyCode.CapsLock))
             {
                 this.StudentManager.LoveManager.ConfessToSuitor = true;
             }
         }
         else
         {
             if (Input.GetKey(KeyCode.BackQuote))
             {
                 this.Timer += Time.deltaTime;
                 if (this.Timer > 1f)
                 {
                     this.ID = 0;
                     while (this.ID < this.StudentManager.NPCsTotal)
                     {
                         if (StudentGlobals.GetStudentDying(this.ID))
                         {
                             StudentGlobals.SetStudentDying(this.ID, false);
                         }
                         this.ID++;
                     }
                     SceneManager.LoadScene("LoadingScene");
                 }
             }
             if (Input.GetKeyUp(KeyCode.BackQuote))
             {
                 this.Timer = 0f;
             }
         }
         if (this.TryNextFrame)
         {
             this.UpdateCensor();
         }
     }
     else
     {
         if (Input.GetKeyDown(KeyCode.Backslash))
         {
             this.MissionModeWindow.SetActive(!this.MissionModeWindow.activeInHierarchy);
             this.DebugInputs++;
         }
         if (this.MissionModeWindow.activeInHierarchy)
         {
             if (Input.GetKeyDown(KeyCode.Alpha1))
             {
                 this.Censor();
             }
             if (Input.GetKeyDown(KeyCode.Alpha2))
             {
                 GameGlobals.CensorBlood = !GameGlobals.CensorBlood;
                 this.WeaponManager.ChangeBloodTexture();
                 this.Yandere.Bloodiness += 0f;
             }
             if (Input.GetKeyDown(KeyCode.Alpha3))
             {
                 this.Yandere.AttackManager.Censor = !this.Yandere.AttackManager.Censor;
             }
         }
     }
     if (this.WaitingForNumber)
     {
         if (Input.GetKey("1"))
         {
             Debug.Log("Going to class should trigger panty shot lecture.");
             SchemeGlobals.SetSchemeStage(1, 100);
             StudentGlobals.ExpelProgress          = 0;
             this.Counselor.CutsceneManager.Scheme = 1;
             this.Counselor.LectureID = 1;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("2"))
         {
             Debug.Log("Going to class should trigger theft lecture.");
             SchemeGlobals.SetSchemeStage(2, 100);
             StudentGlobals.ExpelProgress          = 1;
             this.Counselor.CutsceneManager.Scheme = 2;
             this.Counselor.LectureID = 2;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("3"))
         {
             Debug.Log("Going to class should trigger contraband lecture.");
             SchemeGlobals.SetSchemeStage(3, 100);
             StudentGlobals.ExpelProgress          = 2;
             this.Counselor.CutsceneManager.Scheme = 3;
             this.Counselor.LectureID = 3;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("4"))
         {
             Debug.Log("Going to class should trigger Vandalism lecture.");
             SchemeGlobals.SetSchemeStage(4, 100);
             StudentGlobals.ExpelProgress          = 3;
             this.Counselor.CutsceneManager.Scheme = 4;
             this.Counselor.LectureID = 4;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("5"))
         {
             Debug.Log("Going to class at lunchtime should get Osana expelled!");
             SchemeGlobals.SetSchemeStage(5, 100);
             StudentGlobals.ExpelProgress          = 4;
             this.Counselor.CutsceneManager.Scheme = 5;
             this.Counselor.LectureID = 5;
             this.WaitingForNumber    = false;
         }
     }
 }
 private void Update()
 {
     if (this.Check)
     {
         if (this.Yandere.PickUp != null)
         {
             if (this.Yandere.PickUp.Clothing && this.Yandere.PickUp.GetComponent <FoldedUniformScript>().Clean&& this.Yandere.PickUp.GetComponent <FoldedUniformScript>().Type == 1 && this.Yandere.PickUp.gameObject.GetComponent <FoldedUniformScript>().Type == 1)
             {
                 this.Prompt.enabled = true;
             }
         }
         else
         {
             this.Prompt.Hide();
             this.Prompt.enabled = false;
         }
     }
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         this.Prompt.Circle[0].fillAmount = 1f;
         if (!this.Yandere.Chased && this.Yandere.Chasers == 0)
         {
             this.Yandere.Character.GetComponent <Animation>().CrossFade("f02_sewing_00");
             this.Yandere.MyController.radius = 0.1f;
             this.Yandere.CanMove             = false;
             this.Chair.enabled = false;
             this.Sewing        = true;
             base.GetComponent <AudioSource>().Play();
             this.Uniform = this.Yandere.PickUp;
             this.Yandere.EmptyHands();
             this.Uniform.transform.parent           = this.Yandere.RightHand;
             this.Uniform.transform.localPosition    = new Vector3(0f, 0f, 0.09f);
             this.Uniform.transform.localEulerAngles = new Vector3(0f, 0f, 0f);
             this.Uniform.MyRigidbody.useGravity     = false;
             this.Uniform.MyCollider.enabled         = false;
         }
     }
     if (this.Sewing)
     {
         this.Timer += Time.deltaTime;
         if (this.Timer < 5f)
         {
             this.targetRotation             = Quaternion.LookRotation(base.transform.parent.transform.parent.position - this.Yandere.transform.position);
             this.Yandere.transform.rotation = Quaternion.Slerp(this.Yandere.transform.rotation, this.targetRotation, Time.deltaTime * 10f);
             this.Yandere.MoveTowardsTarget(this.Chair.transform.position);
             return;
         }
         if (!this.MoveAway)
         {
             this.Yandere.Character.GetComponent <Animation>().CrossFade(this.Yandere.IdleAnim);
             this.Yandere.Inventory.ModifiedUniform     = true;
             this.StudentManager.Students[30].TaskPhase = 5;
             TaskGlobals.SetTaskStatus(30, 2);
             UnityEngine.Object.Destroy(this.Uniform.gameObject);
             this.MoveAway = true;
             this.Check    = false;
             return;
         }
         this.Yandere.MoveTowardsTarget(this.Chair.gameObject.transform.position + new Vector3(-0.5f, 0f, 0f));
         if (this.Timer > 6f)
         {
             this.Yandere.MyController.radius = 0.2f;
             this.Yandere.CanMove             = true;
             this.Chair.enabled = true;
             base.enabled       = false;
             this.Sewing        = false;
             this.Prompt.Hide();
             this.Prompt.enabled = false;
         }
     }
 }
 private void LateUpdate()
 {
     if (this.HomeYandere.transform.position.y > -5f)
     {
         Transform transform = this.Destinations[0];
         transform.position = new Vector3(-this.HomeYandere.transform.position.x, transform.position.y, transform.position.z);
     }
     this.Focus.position     = Vector3.Lerp(this.Focus.position, this.Target.position, Time.deltaTime * 10f);
     base.transform.position = Vector3.Lerp(base.transform.position, this.Destination.position, Time.deltaTime * 10f);
     base.transform.LookAt(this.Focus.position);
     if (this.ID != 11 && Input.GetButtonDown("A") && this.HomeYandere.CanMove && this.ID != 0)
     {
         this.Destination = this.Destinations[this.ID];
         this.Target      = this.Targets[this.ID];
         this.HomeWindows[this.ID].Show = true;
         this.HomeYandere.CanMove       = false;
         if (this.ID == 1 || this.ID == 8)
         {
             this.HomeExit.enabled = true;
         }
         else if (this.ID == 2)
         {
             this.HomeSleep.enabled = true;
         }
         else if (this.ID == 3)
         {
             this.HomeInternet.enabled = true;
         }
         else if (this.ID == 4)
         {
             this.CorkboardLabel.SetActive(false);
             this.HomeCorkboard.enabled = true;
             this.LoadingScreen.SetActive(true);
             this.HomeYandere.gameObject.SetActive(false);
         }
         else if (this.ID == 5)
         {
             this.HomeYandere.enabled = false;
             this.Controller.transform.localPosition = new Vector3(0.1245f, 0.032f, 0f);
             this.HomeYandere.transform.position     = new Vector3(1f, 0f, 0f);
             this.HomeYandere.transform.eulerAngles  = new Vector3(0f, 90f, 0f);
             this.HomeYandere.Character.GetComponent <Animation>().Play("f02_gaming_00");
             this.PromptBar.ClearButtons();
             this.PromptBar.Label[0].text = "Play";
             this.PromptBar.Label[1].text = "Back";
             this.PromptBar.Label[4].text = "Select";
             this.PromptBar.UpdateButtons();
             this.PromptBar.Show = true;
         }
         else if (this.ID == 6)
         {
             this.HomeSenpaiShrine.enabled = true;
             this.HomeYandere.gameObject.SetActive(false);
         }
         else if (this.ID == 7)
         {
             this.HomePantyChanger.enabled = true;
         }
         else if (this.ID == 9)
         {
             this.HomeManga.enabled = true;
         }
         else if (this.ID == 10)
         {
             this.PromptBar.ClearButtons();
             this.PromptBar.Label[0].text = "Accept";
             this.PromptBar.Label[1].text = "Back";
             this.PromptBar.UpdateButtons();
             this.PromptBar.Show = true;
             this.HomePrisoner.UpdateDesc();
             this.HomeYandere.gameObject.SetActive(false);
         }
         else if (this.ID == 12)
         {
             this.HomeAnime.enabled = true;
         }
     }
     if (this.Destination == this.Destinations[0])
     {
         this.Vignette.intensity           = ((this.HomeYandere.transform.position.y > -1f) ? Mathf.MoveTowards(this.Vignette.intensity, 1f, Time.deltaTime) : Mathf.MoveTowards(this.Vignette.intensity, 5f, Time.deltaTime * 5f));
         this.Vignette.chromaticAberration = Mathf.MoveTowards(this.Vignette.chromaticAberration, 1f, Time.deltaTime);
         this.Vignette.blur = Mathf.MoveTowards(this.Vignette.blur, 1f, Time.deltaTime);
     }
     else
     {
         this.Vignette.intensity           = ((this.HomeYandere.transform.position.y > -1f) ? Mathf.MoveTowards(this.Vignette.intensity, 0f, Time.deltaTime) : Mathf.MoveTowards(this.Vignette.intensity, 0f, Time.deltaTime * 5f));
         this.Vignette.chromaticAberration = Mathf.MoveTowards(this.Vignette.chromaticAberration, 0f, Time.deltaTime);
         this.Vignette.blur = Mathf.MoveTowards(this.Vignette.blur, 0f, Time.deltaTime);
     }
     this.Button.color = new Color(this.Button.color.r, this.Button.color.g, this.Button.color.b, Mathf.MoveTowards(this.Button.color.a, (this.ID > 0 && this.HomeYandere.CanMove) ? 1f : 0f, Time.deltaTime * 10f));
     if (this.HomeDarkness.FadeOut)
     {
         this.BasementJukebox.volume = Mathf.MoveTowards(this.BasementJukebox.volume, 0f, Time.deltaTime);
         this.RoomJukebox.volume     = Mathf.MoveTowards(this.RoomJukebox.volume, 0f, Time.deltaTime);
     }
     else if (this.HomeYandere.transform.position.y > -1f)
     {
         this.BasementJukebox.volume = Mathf.MoveTowards(this.BasementJukebox.volume, 0f, Time.deltaTime);
         this.RoomJukebox.volume     = Mathf.MoveTowards(this.RoomJukebox.volume, 0.5f, Time.deltaTime);
     }
     else if (!this.Torturing)
     {
         this.BasementJukebox.volume = Mathf.MoveTowards(this.BasementJukebox.volume, 0.5f, Time.deltaTime);
         this.RoomJukebox.volume     = Mathf.MoveTowards(this.RoomJukebox.volume, 0f, Time.deltaTime);
     }
     if (Input.GetKeyDown(KeyCode.Y))
     {
         TaskGlobals.SetTaskStatus(38, 1);
     }
     if (Input.GetKeyDown(KeyCode.M))
     {
         this.BasementJukebox.gameObject.SetActive(false);
         this.RoomJukebox.gameObject.SetActive(false);
     }
     if (Input.GetKeyDown(KeyCode.BackQuote))
     {
         HomeGlobals.Night = !HomeGlobals.Night;
         SceneManager.LoadScene(SceneManager.GetActiveScene().name);
     }
     if (Input.GetKeyDown(KeyCode.Equals))
     {
         Time.timeScale += 1f;
     }
     if (Input.GetKeyDown(KeyCode.Minus) && Time.timeScale > 1f)
     {
         Time.timeScale -= 1f;
     }
 }
Example #9
0
 // Token: 0x0600174D RID: 5965 RVA: 0x000C8734 File Offset: 0x000C6934
 private void Update()
 {
     if (this.HomeCamera.Destination == this.HomeCamera.Destinations[5])
     {
         if (Input.GetKeyDown("y"))
         {
             TaskGlobals.SetTaskStatus(38, 1);
             SceneManager.LoadScene(SceneManager.GetActiveScene().name);
         }
         this.TV.localScale = Vector3.Lerp(this.TV.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f);
         if (!this.HomeYandere.CanMove)
         {
             if (this.HomeDarkness.FadeOut)
             {
                 Transform transform  = this.HomeCamera.Destinations[5];
                 Transform transform2 = this.HomeCamera.Targets[5];
                 transform.position = new Vector3(Mathf.Lerp(transform.position.x, transform2.position.x, Time.deltaTime * 0.75f), Mathf.Lerp(transform.position.y, transform2.position.y, Time.deltaTime * 10f), Mathf.Lerp(transform.position.z, transform2.position.z, Time.deltaTime * 10f));
                 return;
             }
             if (this.InputManager.TappedDown)
             {
                 this.ID++;
                 if (this.ID > 5)
                 {
                     this.ID = 1;
                 }
                 this.TitleScreen.mainTexture = this.TitleScreens[this.ID];
                 this.Highlight.localPosition = new Vector3(this.Highlight.localPosition.x, 150f - (float)this.ID * 50f, this.Highlight.localPosition.z);
             }
             if (this.InputManager.TappedUp)
             {
                 this.ID--;
                 if (this.ID < 1)
                 {
                     this.ID = 5;
                 }
                 this.TitleScreen.mainTexture = this.TitleScreens[this.ID];
                 this.Highlight.localPosition = new Vector3(this.Highlight.localPosition.x, 150f - (float)this.ID * 50f, this.Highlight.localPosition.z);
             }
             if (Input.GetButtonDown("A") && this.GameTitles[this.ID].color.a == 1f)
             {
                 Transform transform3 = this.HomeCamera.Targets[5];
                 transform3.localPosition       = new Vector3(transform3.localPosition.x, 1.153333f, transform3.localPosition.z);
                 this.HomeDarkness.Sprite.color = new Color(this.HomeDarkness.Sprite.color.r, this.HomeDarkness.Sprite.color.g, this.HomeDarkness.Sprite.color.b, -1f);
                 this.HomeDarkness.FadeOut      = true;
                 this.HomeWindow.Show           = false;
                 this.PromptBar.Show            = false;
                 this.HomeCamera.ID             = 5;
             }
             if (Input.GetButtonDown("B"))
             {
                 this.Quit();
                 return;
             }
         }
     }
     else
     {
         this.TV.localScale = Vector3.Lerp(this.TV.localScale, Vector3.zero, Time.deltaTime * 10f);
     }
 }
 // Token: 0x06001C11 RID: 7185 RVA: 0x0014EE04 File Offset: 0x0014D004
 public void UpdateTaskStatus()
 {
     if (TaskGlobals.GetTaskStatus(8) == 1 && this.StudentManager.Students[8] != null)
     {
         if (this.StudentManager.Students[8].TaskPhase == 0)
         {
             this.StudentManager.Students[8].TaskPhase = 4;
         }
         if (this.Yandere.Inventory.Soda)
         {
             this.StudentManager.Students[8].TaskPhase = 5;
         }
     }
     if (TaskGlobals.GetTaskStatus(11) == 1)
     {
         if (this.StudentManager.Students[11] != null)
         {
             if (this.StudentManager.Students[11].TaskPhase == 0)
             {
                 this.StudentManager.Students[11].TaskPhase = 4;
             }
             this.TaskObjects[11].SetActive(true);
         }
     }
     else if (this.TaskObjects[11] != null)
     {
         this.TaskObjects[11].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(25) == 1)
     {
         if (this.StudentManager.Students[25] != null)
         {
             if (this.StudentManager.Students[25].TaskPhase == 0)
             {
                 this.StudentManager.Students[25].TaskPhase = 4;
             }
             this.TaskObjects[25].SetActive(true);
         }
     }
     else if (this.TaskObjects[25] != null)
     {
         this.TaskObjects[25].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(28) == 1 && this.StudentManager.Students[28] != null)
     {
         if (this.StudentManager.Students[28].TaskPhase == 0)
         {
             this.StudentManager.Students[28].TaskPhase = 4;
         }
         for (int i = 1; i < 26; i++)
         {
             if (TaskGlobals.GetKittenPhoto(i))
             {
                 Debug.Log("Riku's Task can be turned in.");
                 this.StudentManager.Students[28].TaskPhase = 5;
             }
         }
     }
     if (TaskGlobals.GetTaskStatus(30) == 1 && this.StudentManager.Students[30] != null && this.StudentManager.Students[30].TaskPhase == 0)
     {
         this.StudentManager.Students[30].TaskPhase = 4;
     }
     if (TaskGlobals.GetTaskStatus(36) == 1 && this.StudentManager.Students[36] != null)
     {
         if (this.StudentManager.Students[36].TaskPhase == 0)
         {
             this.StudentManager.Students[36].TaskPhase = 4;
         }
         if (this.GirlsQuestioned[1] && this.GirlsQuestioned[2] && this.GirlsQuestioned[3] && this.GirlsQuestioned[4] && this.GirlsQuestioned[5])
         {
             Debug.Log("Gema's task should be ready to turn in!");
             this.StudentManager.Students[36].TaskPhase = 5;
         }
     }
     if (TaskGlobals.GetTaskStatus(37) == 1)
     {
         if (this.StudentManager.Students[37] != null)
         {
             if (this.StudentManager.Students[37].TaskPhase == 0)
             {
                 this.StudentManager.Students[37].TaskPhase = 4;
             }
             this.TaskObjects[37].SetActive(true);
         }
     }
     else if (this.TaskObjects[37] != null)
     {
         this.TaskObjects[37].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(38) == 1)
     {
         if (this.StudentManager.Students[38] != null && this.StudentManager.Students[38].TaskPhase == 0)
         {
             this.StudentManager.Students[38].TaskPhase = 4;
         }
     }
     else if (TaskGlobals.GetTaskStatus(38) == 2 && this.StudentManager.Students[38] != null)
     {
         this.StudentManager.Students[38].TaskPhase = 5;
     }
     if (ClubGlobals.GetClubClosed(ClubType.LightMusic) || this.StudentManager.Students[51] == null)
     {
         if (this.StudentManager.Students[52] != null)
         {
             this.StudentManager.Students[52].TaskPhase = 100;
         }
         TaskGlobals.SetTaskStatus(52, 100);
     }
     else if (TaskGlobals.GetTaskStatus(52) == 1 && this.StudentManager.Students[52] != null)
     {
         this.StudentManager.Students[52].TaskPhase = 4;
         for (int j = 1; j < 52; j++)
         {
             if (TaskGlobals.GetGuitarPhoto(j))
             {
                 this.StudentManager.Students[52].TaskPhase = 5;
             }
         }
     }
     if (TaskGlobals.GetTaskStatus(81) == 1 && this.StudentManager.Students[81] != null)
     {
         if (this.StudentManager.Students[81].TaskPhase == 0)
         {
             this.StudentManager.Students[81].TaskPhase = 4;
         }
         for (int k = 1; k < 26; k++)
         {
             if (TaskGlobals.GetHorudaPhoto(k))
             {
                 Debug.Log("Musume's Task can be turned in.");
                 this.StudentManager.Students[81].TaskPhase = 5;
             }
         }
     }
     TaskGlobals.GetTaskStatus(81);
 }
 // 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);
         }
     }
 }