// Token: 0x06001A08 RID: 6664 RVA: 0x000FDE1C File Offset: 0x000FC01C
 public static void WriteToGlobals(PlayerSaveData data)
 {
     PlayerGlobals.Alerts             = data.alerts;
     PlayerGlobals.Enlightenment      = data.enlightenment;
     PlayerGlobals.EnlightenmentBonus = data.enlightenmentBonus;
     PlayerGlobals.Headset            = data.headset;
     PlayerGlobals.Kills           = data.kills;
     PlayerGlobals.Numbness        = data.numbness;
     PlayerGlobals.NumbnessBonus   = data.numbnessBonus;
     PlayerGlobals.PantiesEquipped = data.pantiesEquipped;
     PlayerGlobals.PantyShots      = data.pantyShots;
     Debug.Log("Is this being called anywhere?");
     foreach (int photoID in data.photo)
     {
         PlayerGlobals.SetPhoto(photoID, true);
     }
     foreach (int photoID2 in data.photoOnCorkboard)
     {
         PlayerGlobals.SetPhotoOnCorkboard(photoID2, true);
     }
     foreach (KeyValuePair <int, Vector2> keyValuePair in data.photoPosition)
     {
         PlayerGlobals.SetPhotoPosition(keyValuePair.Key, keyValuePair.Value);
     }
     foreach (KeyValuePair <int, float> keyValuePair2 in data.photoRotation)
     {
         PlayerGlobals.SetPhotoRotation(keyValuePair2.Key, keyValuePair2.Value);
     }
     PlayerGlobals.Reputation     = data.reputation;
     PlayerGlobals.Seduction      = data.seduction;
     PlayerGlobals.SeductionBonus = data.seductionBonus;
     foreach (int photoID3 in data.senpaiPhoto)
     {
         PlayerGlobals.SetSenpaiPhoto(photoID3, true);
     }
     PlayerGlobals.SenpaiShots  = data.senpaiShots;
     PlayerGlobals.SocialBonus  = data.socialBonus;
     PlayerGlobals.SpeedBonus   = data.speedBonus;
     PlayerGlobals.StealthBonus = data.stealthBonus;
     foreach (int studentID in data.studentFriend)
     {
         PlayerGlobals.SetStudentFriend(studentID, true);
     }
     foreach (string studentName in data.studentPantyShot)
     {
         PlayerGlobals.SetStudentPantyShot(studentName, true);
     }
 }
 private void Update()
 {
     if (!this.MissionMode && !this.NoDebug)
     {
         if (!this.Yandere.InClass && !this.Yandere.Chased && this.Yandere.Chasers == 0 && this.Yandere.CanMove)
         {
             if (Input.GetKeyDown(KeyCode.Backslash) && this.Yandere.transform.position.y < 100f)
             {
                 this.EasterEggWindow.SetActive(false);
                 this.Window.SetActive(!this.Window.activeInHierarchy);
             }
         }
         else if (this.Window.activeInHierarchy)
         {
             this.Window.SetActive(false);
         }
         if (this.Window.activeInHierarchy)
         {
             if (Input.GetKeyDown(KeyCode.F1))
             {
                 StudentGlobals.FemaleUniform = 1;
                 StudentGlobals.MaleUniform   = 1;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F2))
             {
                 StudentGlobals.FemaleUniform = 2;
                 StudentGlobals.MaleUniform   = 2;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F3))
             {
                 StudentGlobals.FemaleUniform = 3;
                 StudentGlobals.MaleUniform   = 3;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F4))
             {
                 StudentGlobals.FemaleUniform = 4;
                 StudentGlobals.MaleUniform   = 4;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F5))
             {
                 StudentGlobals.FemaleUniform = 5;
                 StudentGlobals.MaleUniform   = 5;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F6))
             {
                 StudentGlobals.FemaleUniform = 6;
                 StudentGlobals.MaleUniform   = 6;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F7))
             {
                 this.ID = 1;
                 while (this.ID < 8)
                 {
                     this.StudentManager.DrinkingFountains[this.ID].PowerSwitch.PowerOutlet.SabotagedOutlet.SetActive(true);
                     this.StudentManager.DrinkingFountains[this.ID].Puddle.SetActive(true);
                     this.ID++;
                 }
                 this.Window.SetActive(false);
             }
             else if (Input.GetKeyDown(KeyCode.F8))
             {
                 GameGlobals.CensorBlood = !GameGlobals.CensorBlood;
                 this.WeaponManager.ChangeBloodTexture();
                 this.Yandere.Bloodiness += 0f;
                 this.Window.SetActive(false);
             }
             else if (Input.GetKeyDown(KeyCode.F9))
             {
                 this.Yandere.AttackManager.Censor = !this.Yandere.AttackManager.Censor;
                 this.Window.SetActive(false);
             }
             else if (Input.GetKeyDown(KeyCode.F10))
             {
                 this.StudentManager.Students[21].Attempts = 101;
                 this.StudentManager.Students[22].Attempts = 101;
                 this.StudentManager.Students[23].Attempts = 101;
                 this.StudentManager.Students[24].Attempts = 101;
                 this.StudentManager.Students[25].Attempts = 101;
                 this.Window.SetActive(false);
             }
             else if (!Input.GetKeyDown(KeyCode.F12))
             {
                 if (Input.GetKeyDown(KeyCode.Alpha1))
                 {
                     DateGlobals.Weekday = DayOfWeek.Monday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha2))
                 {
                     DateGlobals.Weekday = DayOfWeek.Tuesday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha3))
                 {
                     DateGlobals.Weekday = DayOfWeek.Wednesday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha4))
                 {
                     DateGlobals.Weekday = DayOfWeek.Thursday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha5))
                 {
                     DateGlobals.Weekday = DayOfWeek.Friday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha6))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[1].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha7))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[2].position + new Vector3(0.75f, 0f, 0f);
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha8))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[3].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha9))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[4].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.Clock.PresentTime = 426f;
                     StudentScript studentScript = this.StudentManager.Students[30];
                     if (studentScript != null)
                     {
                         if (studentScript.Phase < 2)
                         {
                             studentScript.ShoeRemoval.Start();
                             studentScript.ShoeRemoval.PutOnShoes();
                             studentScript.CanTalk            = true;
                             studentScript.Phase              = 2;
                             studentScript.CurrentDestination = studentScript.Destinations[2];
                             studentScript.Pathfinding.target = studentScript.Destinations[2];
                         }
                         studentScript.transform.position = studentScript.Destinations[2].position;
                     }
                     StudentScript studentScript2 = this.StudentManager.Students[28];
                     if (studentScript2 != null)
                     {
                         studentScript2.ShoeRemoval.Start();
                         studentScript2.ShoeRemoval.PutOnShoes();
                         studentScript2.Phase = 2;
                         studentScript2.CurrentDestination = studentScript2.Destinations[2];
                         studentScript2.Pathfinding.target = studentScript2.Destinations[2];
                         studentScript2.transform.position = studentScript2.Destinations[2].position;
                     }
                     StudentScript studentScript3 = this.StudentManager.Students[39];
                     if (studentScript3 != null)
                     {
                         studentScript3.ShoeRemoval.Start();
                         studentScript3.ShoeRemoval.PutOnShoes();
                         studentScript3.Phase = 2;
                         studentScript3.ScheduleBlocks[2].action = "Stand";
                         studentScript3.GetDestinations();
                         studentScript3.CurrentDestination = this.MidoriSpot;
                         studentScript3.Pathfinding.target = this.MidoriSpot;
                         studentScript3.transform.position = this.MidoriSpot.position;
                     }
                     this.Window.SetActive(false);
                     Physics.SyncTransforms();
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha0))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[11].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.Window.SetActive(false);
                     Physics.SyncTransforms();
                 }
                 else if (Input.GetKeyDown(KeyCode.A))
                 {
                     if (SchoolAtmosphere.Type == SchoolAtmosphereType.High)
                     {
                         SchoolGlobals.SchoolAtmosphere = 0.5f;
                     }
                     else if (SchoolAtmosphere.Type == SchoolAtmosphereType.Medium)
                     {
                         SchoolGlobals.SchoolAtmosphere = 0f;
                     }
                     else
                     {
                         SchoolGlobals.SchoolAtmosphere = 1f;
                     }
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.C))
                 {
                     this.ID = 1;
                     while (this.ID < 11)
                     {
                         CollectibleGlobals.SetTapeCollected(this.ID, true);
                         this.ID++;
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.D))
                 {
                     this.ID = 0;
                     while (this.ID < 5)
                     {
                         StudentScript studentScript4 = this.StudentManager.Students[76 + this.ID];
                         if (studentScript4 != null)
                         {
                             if (studentScript4.Phase < 2)
                             {
                                 studentScript4.ShoeRemoval.Start();
                                 studentScript4.ShoeRemoval.PutOnShoes();
                                 studentScript4.Phase = 2;
                                 studentScript4.CurrentDestination = studentScript4.Destinations[2];
                                 studentScript4.Pathfinding.target = studentScript4.Destinations[2];
                             }
                             studentScript4.transform.position = studentScript4.Destinations[2].position;
                         }
                         this.ID++;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.F))
                 {
                     this.GreenScreen.SetActive(true);
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.G))
                 {
                     StudentScript studentScript5 = this.StudentManager.Students[this.RooftopStudent];
                     if (this.Clock.HourTime < 15f)
                     {
                         PlayerGlobals.SetStudentFriend(this.RooftopStudent, true);
                         this.Yandere.transform.position = this.RooftopSpot.position + new Vector3(1f, 0f, 0f);
                         this.WeaponManager.Weapons[6].transform.position = this.Yandere.transform.position + new Vector3(0f, 0f, 1.915f);
                         if (studentScript5 != null)
                         {
                             this.StudentManager.OfferHelp.UpdateLocation();
                             this.StudentManager.OfferHelp.enabled = true;
                             if (!studentScript5.Indoors)
                             {
                                 if (studentScript5.ShoeRemoval.Locker == null)
                                 {
                                     studentScript5.ShoeRemoval.Start();
                                 }
                                 studentScript5.ShoeRemoval.PutOnShoes();
                             }
                             studentScript5.CharacterAnimation.Play(studentScript5.IdleAnim);
                             studentScript5.transform.position    = this.RooftopSpot.position;
                             studentScript5.transform.rotation    = this.RooftopSpot.rotation;
                             studentScript5.Prompt.Label[0].text  = "     Push";
                             studentScript5.CurrentDestination    = this.RooftopSpot;
                             studentScript5.Pathfinding.target    = this.RooftopSpot;
                             studentScript5.Pathfinding.canSearch = false;
                             studentScript5.Pathfinding.canMove   = false;
                             studentScript5.SpeechLines.Stop();
                             studentScript5.Pushable = true;
                             studentScript5.Routine  = false;
                             studentScript5.Meeting  = true;
                             studentScript5.MeetTime = 0f;
                         }
                         if (this.Clock.HourTime < 7.1f)
                         {
                             this.Clock.PresentTime = 426f;
                         }
                     }
                     else
                     {
                         this.Clock.PresentTime            = 960f;
                         studentScript5.transform.position = this.Lockers.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.K))
                 {
                     SchoolGlobals.KidnapVictim  = 25;
                     StudentGlobals.StudentSlave = 25;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.L))
                 {
                     SchemeGlobals.SetSchemeStage(1, 2);
                     EventGlobals.Event1 = true;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.M))
                 {
                     PlayerGlobals.Money          = 100f;
                     this.Yandere.Inventory.Money = 100f;
                     this.Yandere.Inventory.UpdateMoney();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.O))
                 {
                     this.Yandere.Inventory.RivalPhone = true;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.P))
                 {
                     this.ID = 2;
                     while (this.ID < 93)
                     {
                         StudentScript studentScript6 = this.StudentManager.Students[this.ID];
                         if (studentScript6 != null)
                         {
                             studentScript6.Patience = 999;
                             studentScript6.Pestered = -999;
                             studentScript6.Ignoring = false;
                         }
                         this.ID++;
                     }
                     this.Yandere.Inventory.PantyShots += 20;
                     PlayerGlobals.PantyShots          += 20;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Q))
                 {
                     this.Censor();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.R))
                 {
                     if (PlayerGlobals.Reputation == -100f)
                     {
                         PlayerGlobals.Reputation = -66.66666f;
                     }
                     else if (PlayerGlobals.Reputation == -66.66666f)
                     {
                         PlayerGlobals.Reputation = 0f;
                     }
                     else if (PlayerGlobals.Reputation == 0f)
                     {
                         PlayerGlobals.Reputation = 66.66666f;
                     }
                     else if (PlayerGlobals.Reputation == 66.66666f)
                     {
                         PlayerGlobals.Reputation = 100f;
                     }
                     else if (PlayerGlobals.Reputation == 100f)
                     {
                         PlayerGlobals.Reputation = -100f;
                     }
                     this.Reputation.Reputation = PlayerGlobals.Reputation;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.S))
                 {
                     this.Yandere.Class.PhysicalGrade = 5;
                     this.Yandere.Class.Seduction     = 5;
                     this.StudentManager.Police.UpdateCorpses();
                     this.ID = 1;
                     while (this.ID < 101)
                     {
                         StudentGlobals.SetStudentPhotographed(this.ID, true);
                         this.ID++;
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.T))
                 {
                     this.Zoom.OverShoulder = !this.Zoom.OverShoulder;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.U))
                 {
                     PlayerGlobals.SetStudentFriend(28, true);
                     PlayerGlobals.SetStudentFriend(30, true);
                     this.ID = 1;
                     while (this.ID < 26)
                     {
                         ConversationGlobals.SetTopicLearnedByStudent(this.ID, 30, true);
                         ConversationGlobals.SetTopicDiscovered(this.ID, true);
                         this.ID++;
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Z))
                 {
                     this.Yandere.Police.Invalid = true;
                     if (Input.GetKey(KeyCode.LeftShift))
                     {
                         this.ID = 2;
                         while (this.ID < 93)
                         {
                             this.StudentManager.Students[this.ID] != null;
                             this.ID++;
                         }
                     }
                     else
                     {
                         this.ID = 2;
                         while (this.ID < 101)
                         {
                             StudentScript studentScript7 = this.StudentManager.Students[this.ID];
                             if (studentScript7 != null)
                             {
                                 studentScript7.SpawnAlarmDisc();
                                 studentScript7.BecomeRagdoll();
                                 studentScript7.DeathType = DeathType.EasterEgg;
                             }
                             this.ID++;
                         }
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.X))
                 {
                     TaskGlobals.SetTaskStatus(36, 3);
                     SchoolGlobals.ReactedToGameLeader = false;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Backspace))
                 {
                     Time.timeScale         = 1f;
                     this.Clock.PresentTime = 1079f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.BackQuote))
                 {
                     Globals.DeleteAll();
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Space))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[5].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     for (int i = 46; i < 51; i++)
                     {
                         if (this.StudentManager.Students[i] != null)
                         {
                             this.StudentManager.Students[i].transform.position = this.TeleportSpot[5].position;
                             if (!this.StudentManager.Students[i].Indoors)
                             {
                                 if (this.StudentManager.Students[i].ShoeRemoval.Locker == null)
                                 {
                                     this.StudentManager.Students[i].ShoeRemoval.Start();
                                 }
                                 this.StudentManager.Students[i].ShoeRemoval.PutOnShoes();
                             }
                         }
                     }
                     this.Clock.PresentTime = 1015f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     this.Window.SetActive(false);
                     this.OsanaEvent1.enabled = false;
                     this.OsanaEvent2.enabled = false;
                     this.OsanaEvent3.enabled = false;
                     Physics.SyncTransforms();
                 }
                 else if (Input.GetKeyDown(KeyCode.LeftAlt))
                 {
                     this.Turtle.SpawnWeapons();
                     this.Yandere.transform.position = this.TeleportSpot[6].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.Clock.PresentTime = 425f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.LeftControl))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[7].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.RightControl))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[8].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Equals))
                 {
                     this.Clock.PresentTime += 10f;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Return))
                 {
                     this.Yandere.transform.eulerAngles = this.TeleportSpot[10].eulerAngles;
                     this.Yandere.transform.position    = this.TeleportSpot[10].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.StudentManager.Students[1].ShoeRemoval.Start();
                     this.StudentManager.Students[1].ShoeRemoval.PutOnShoes();
                     this.StudentManager.Students[1].transform.position = new Vector3(0f, 12.1f, -25f);
                     this.StudentManager.Students[1].Alarmed            = true;
                     this.StudentManager.Students[11].Lethal            = true;
                     this.StudentManager.Students[11].ShoeRemoval.Start();
                     this.StudentManager.Students[11].ShoeRemoval.PutOnShoes();
                     this.StudentManager.Students[11].transform.position = new Vector3(0f, 12.1f, -25f);
                     this.Clock.PresentTime = 780f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.B))
                 {
                     this.Yandere.Inventory.Headset = true;
                     this.StudentManager.LoveManager.SuitorProgress = 1;
                     DatingGlobals.SuitorProgress = 1;
                     PlayerGlobals.SetStudentFriend(6, true);
                     PlayerGlobals.SetStudentFriend(11, true);
                     for (int j = 0; j < 11; j++)
                     {
                         DatingGlobals.SetComplimentGiven(j, false);
                     }
                     this.ID = 1;
                     while (this.ID < 26)
                     {
                         ConversationGlobals.SetTopicLearnedByStudent(this.ID, 11, true);
                         ConversationGlobals.SetTopicDiscovered(this.ID, true);
                         this.ID++;
                     }
                     StudentScript studentScript8 = this.StudentManager.Students[11];
                     if (studentScript8 != null)
                     {
                         studentScript8.ShoeRemoval.Start();
                         studentScript8.ShoeRemoval.PutOnShoes();
                         studentScript8.CanTalk            = true;
                         studentScript8.Phase              = 2;
                         studentScript8.Pestered           = 0;
                         studentScript8.Patience           = 999;
                         studentScript8.Ignoring           = false;
                         studentScript8.CurrentDestination = studentScript8.Destinations[2];
                         studentScript8.Pathfinding.target = studentScript8.Destinations[2];
                         studentScript8.transform.position = studentScript8.Destinations[2].position;
                     }
                     StudentScript studentScript9 = this.StudentManager.Students[6];
                     if (studentScript9 != null)
                     {
                         studentScript9.ShoeRemoval.Start();
                         studentScript9.ShoeRemoval.PutOnShoes();
                         studentScript9.Phase              = 2;
                         studentScript9.Pestered           = 0;
                         studentScript9.Patience           = 999;
                         studentScript9.Ignoring           = false;
                         studentScript9.CurrentDestination = studentScript9.Destinations[2];
                         studentScript9.Pathfinding.target = studentScript9.Destinations[2];
                         studentScript9.transform.position = studentScript9.Destinations[2].position;
                     }
                     StudentScript studentScript10 = this.StudentManager.Students[10];
                     if (studentScript9 != null)
                     {
                         studentScript9.transform.position = studentScript8.transform.position;
                     }
                     CollectibleGlobals.SetGiftPurchased(6, true);
                     CollectibleGlobals.SetGiftPurchased(7, true);
                     CollectibleGlobals.SetGiftPurchased(8, true);
                     CollectibleGlobals.SetGiftPurchased(9, true);
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Pause))
                 {
                     this.Clock.StopTime = !this.Clock.StopTime;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.W))
                 {
                     this.StudentManager.ToggleBookBags();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.H))
                 {
                     StudentGlobals.FragileSlave  = 5;
                     StudentGlobals.FragileTarget = 31;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.I))
                 {
                     this.StudentManager.Students[3].BecomeRagdoll();
                     this.WeaponManager.Weapons[1].Blood.enabled = true;
                     this.WeaponManager.Weapons[1].FingerprintID = 2;
                     this.WeaponManager.Weapons[1].Victims[3]    = true;
                     this.StudentManager.Students[5].BecomeRagdoll();
                     this.WeaponManager.Weapons[2].Blood.enabled = true;
                     this.WeaponManager.Weapons[2].FingerprintID = 4;
                     this.WeaponManager.Weapons[2].Victims[5]    = true;
                 }
                 else if (!Input.GetKeyDown(KeyCode.J))
                 {
                     if (Input.GetKeyDown(KeyCode.V))
                     {
                         this.StudentManager.LoveManager.ConfessToSuitor = true;
                         this.StudentManager.DatingMinigame.Affection    = 100f;
                         DateGlobals.Weekday = DayOfWeek.Friday;
                         this.Window.SetActive(false);
                     }
                     else if (Input.GetKeyDown(KeyCode.N))
                     {
                         this.ElectrocutionKit[0].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[1].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[2].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[3].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[3].SetActive(true);
                     }
                 }
             }
             if (Input.GetKeyDown(KeyCode.Tab))
             {
                 DatingGlobals.SuitorProgress = 2;
                 SceneManager.LoadScene("LoadingScene");
             }
             if (Input.GetKeyDown(KeyCode.CapsLock))
             {
                 this.StudentManager.LoveManager.ConfessToSuitor = true;
             }
         }
         else
         {
             if (Input.GetKey(KeyCode.BackQuote))
             {
                 this.Timer += Time.deltaTime;
                 if (this.Timer > 1f)
                 {
                     this.ID = 0;
                     while (this.ID < this.StudentManager.NPCsTotal)
                     {
                         if (StudentGlobals.GetStudentDying(this.ID))
                         {
                             StudentGlobals.SetStudentDying(this.ID, false);
                         }
                         this.ID++;
                     }
                     SceneManager.LoadScene("LoadingScene");
                 }
             }
             if (Input.GetKeyUp(KeyCode.BackQuote))
             {
                 this.Timer = 0f;
             }
         }
         if (this.TryNextFrame)
         {
             this.UpdateCensor();
         }
     }
     else
     {
         if (Input.GetKeyDown(KeyCode.Backslash))
         {
             this.MissionModeWindow.SetActive(!this.MissionModeWindow.activeInHierarchy);
             this.DebugInputs++;
         }
         if (this.MissionModeWindow.activeInHierarchy)
         {
             if (Input.GetKeyDown(KeyCode.Alpha1))
             {
                 this.Censor();
             }
             if (Input.GetKeyDown(KeyCode.Alpha2))
             {
                 GameGlobals.CensorBlood = !GameGlobals.CensorBlood;
                 this.WeaponManager.ChangeBloodTexture();
                 this.Yandere.Bloodiness += 0f;
             }
             if (Input.GetKeyDown(KeyCode.Alpha3))
             {
                 this.Yandere.AttackManager.Censor = !this.Yandere.AttackManager.Censor;
             }
         }
     }
     if (this.WaitingForNumber)
     {
         if (Input.GetKey("1"))
         {
             Debug.Log("Going to class should trigger panty shot lecture.");
             SchemeGlobals.SetSchemeStage(1, 100);
             StudentGlobals.ExpelProgress          = 0;
             this.Counselor.CutsceneManager.Scheme = 1;
             this.Counselor.LectureID = 1;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("2"))
         {
             Debug.Log("Going to class should trigger theft lecture.");
             SchemeGlobals.SetSchemeStage(2, 100);
             StudentGlobals.ExpelProgress          = 1;
             this.Counselor.CutsceneManager.Scheme = 2;
             this.Counselor.LectureID = 2;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("3"))
         {
             Debug.Log("Going to class should trigger contraband lecture.");
             SchemeGlobals.SetSchemeStage(3, 100);
             StudentGlobals.ExpelProgress          = 2;
             this.Counselor.CutsceneManager.Scheme = 3;
             this.Counselor.LectureID = 3;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("4"))
         {
             Debug.Log("Going to class should trigger Vandalism lecture.");
             SchemeGlobals.SetSchemeStage(4, 100);
             StudentGlobals.ExpelProgress          = 3;
             this.Counselor.CutsceneManager.Scheme = 4;
             this.Counselor.LectureID = 4;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("5"))
         {
             Debug.Log("Going to class at lunchtime should get Osana expelled!");
             SchemeGlobals.SetSchemeStage(5, 100);
             StudentGlobals.ExpelProgress          = 4;
             this.Counselor.CutsceneManager.Scheme = 5;
             this.Counselor.LectureID = 5;
             this.WaitingForNumber    = false;
         }
     }
 }
Exemplo n.º 3
0
 // 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);
         }
     }
 }