Пример #1
0
 // Token: 0x0600053D RID: 1341 RVA: 0x00049364 File Offset: 0x00047764
 private void Update()
 {
     if (this.Yandere.Follower != null && this.Yandere.Follower.StudentID == 7)
     {
         if (!ConversationGlobals.GetTopicLearnedByStudent(3, 7) && Vector3.Distance(this.Yandere.Follower.transform.position, this.OccultClub.position) < 5f)
         {
             if (!ConversationGlobals.GetTopicDiscovered(3))
             {
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                 ConversationGlobals.SetTopicDiscovered(3, true);
             }
             this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
             ConversationGlobals.SetTopicLearnedByStudent(3, 7, true);
         }
         if (!ConversationGlobals.GetTopicLearnedByStudent(14, 7))
         {
             StudentScript studentScript  = this.StudentManager.Students[22];
             StudentScript studentScript2 = this.StudentManager.Students[24];
             StudentScript x = this.StudentManager.Students[25];
             if (studentScript != null && x != null && studentScript.Actions[studentScript.Phase] == StudentActionType.ClubAction && studentScript.DistanceToDestination < 1f && studentScript2.Actions[studentScript2.Phase] == StudentActionType.ClubAction && studentScript2.DistanceToDestination < 1f && Vector3.Distance(this.Yandere.Follower.transform.position, this.MartialArts.position) < 5f)
             {
                 if (!ConversationGlobals.GetTopicDiscovered(14))
                 {
                     this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                     ConversationGlobals.SetTopicDiscovered(14, true);
                 }
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
                 ConversationGlobals.SetTopicLearnedByStudent(14, 7, true);
             }
         }
         if (!ConversationGlobals.GetTopicLearnedByStudent(16, 7))
         {
             StudentScript x2 = this.StudentManager.Students[22];
             StudentScript x3 = this.StudentManager.Students[25];
             if (x2 != null && x3 != null && this.VideoGames.gameObject.activeInHierarchy && Vector3.Distance(this.Yandere.Follower.transform.position, this.VideoGames.position) < 2.5f)
             {
                 if (!ConversationGlobals.GetTopicDiscovered(16))
                 {
                     this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                     ConversationGlobals.SetTopicDiscovered(16, true);
                 }
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
                 ConversationGlobals.SetTopicLearnedByStudent(16, 7, true);
             }
         }
         if (!ConversationGlobals.GetTopicLearnedByStudent(20, 7) && Vector3.Distance(this.Yandere.Follower.transform.position, this.Kitten.position) < 2.5f)
         {
             if (!ConversationGlobals.GetTopicDiscovered(20))
             {
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                 ConversationGlobals.SetTopicDiscovered(20, true);
             }
             this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
             ConversationGlobals.SetTopicLearnedByStudent(20, 7, true);
         }
     }
 }
Пример #2
0
 // Token: 0x06001A11 RID: 6673 RVA: 0x000FFB7C File Offset: 0x000FDD7C
 public static void WriteToGlobals(ConversationSaveData data)
 {
     foreach (int topicID in data.topicDiscovered)
     {
         ConversationGlobals.SetTopicDiscovered(topicID, true);
     }
     foreach (IntAndIntPair intAndIntPair in data.topicLearnedByStudent)
     {
         ConversationGlobals.SetTopicLearnedByStudent(intAndIntPair.first, intAndIntPair.second, true);
     }
 }
Пример #3
0
 public void Continue()
 {
     Debug.Log("Proceeding to next line.");
     this.Offering = true;
     this.Spoken   = false;
     this.EventPhase++;
     this.Timer = 0f;
     if (this.EventStudentID == 30 && this.EventPhase == 14)
     {
         if (!ConversationGlobals.GetTopicDiscovered(23))
         {
             this.Yandere.NotificationManager.TopicName = "Family";
             this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
             ConversationGlobals.SetTopicDiscovered(23, true);
         }
         if (!ConversationGlobals.GetTopicLearnedByStudent(23, this.EventStudentID))
         {
             this.Yandere.NotificationManager.TopicName = "Family";
             this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
             ConversationGlobals.SetTopicLearnedByStudent(23, this.EventStudentID, true);
         }
     }
     if (this.EventPhase == this.EventSpeech.Length)
     {
         if (this.EventStudentID == 11)
         {
             Debug.Log("Scheme #6 has advanced to stage 5.");
             SchemeGlobals.SetSchemeStage(6, 5);
         }
         else if (this.EventStudentID == 30)
         {
             SchemeGlobals.HelpingKokona = true;
             Debug.Log("SchemeGlobals.HelpingKokona is now true.");
         }
         this.Student.CurrentDestination    = this.Student.Destinations[this.Student.Phase];
         this.Student.Pathfinding.target    = this.Student.Destinations[this.Student.Phase];
         this.Student.Pathfinding.canSearch = true;
         this.Student.Pathfinding.canMove   = true;
         this.Student.Routine = true;
         this.Yandere.CanMove = true;
         this.Jukebox.Dip     = 1f;
         UnityEngine.Object.Destroy(base.gameObject);
     }
 }
Пример #4
0
 // Token: 0x06001730 RID: 5936 RVA: 0x000C4FDC File Offset: 0x000C31DC
 private void Update()
 {
     if (Input.GetButtonDown("A"))
     {
         this.HomeDarkness.Sprite.color  = new Color(0f, 0f, 0f, 0f);
         this.HomeDarkness.Cyberstalking = true;
         this.HomeDarkness.FadeOut       = true;
         base.gameObject.SetActive(false);
         for (int i = 1; i < 26; i++)
         {
             ConversationGlobals.SetTopicLearnedByStudent(i, this.HomeDarkness.HomeCamera.HomeInternet.Student, true);
             ConversationGlobals.SetTopicDiscovered(i, true);
         }
     }
     if (Input.GetButtonDown("B"))
     {
         base.gameObject.SetActive(false);
     }
 }
 // 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]);
     }
 }
Пример #6
0
    // Token: 0x0600023D RID: 573 RVA: 0x000306E8 File Offset: 0x0002EAE8
    private void TopicCheck()
    {
        switch (this.RoomID)
        {
        case 3:
            if (!ConversationGlobals.GetTopicDiscovered(12))
            {
                ConversationGlobals.SetTopicDiscovered(12, true);
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
            }
            break;

        case 13:
            if (!ConversationGlobals.GetTopicDiscovered(21))
            {
                ConversationGlobals.SetTopicDiscovered(21, true);
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
            }
            break;

        case 15:
            if (!ConversationGlobals.GetTopicDiscovered(16))
            {
                ConversationGlobals.SetTopicDiscovered(16, true);
                ConversationGlobals.SetTopicDiscovered(17, true);
                ConversationGlobals.SetTopicDiscovered(18, true);
                ConversationGlobals.SetTopicDiscovered(19, true);
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
            }
            break;

        case 26:
            if (!ConversationGlobals.GetTopicDiscovered(1))
            {
                ConversationGlobals.SetTopicDiscovered(1, true);
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
            }
            break;

        case 27:
            if (!ConversationGlobals.GetTopicDiscovered(2))
            {
                ConversationGlobals.SetTopicDiscovered(2, true);
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
            }
            break;

        case 28:
            if (!ConversationGlobals.GetTopicDiscovered(3))
            {
                ConversationGlobals.SetTopicDiscovered(3, true);
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
            }
            break;

        case 29:
            if (!ConversationGlobals.GetTopicDiscovered(4))
            {
                ConversationGlobals.SetTopicDiscovered(4, true);
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
            }
            break;

        case 30:
            if (!ConversationGlobals.GetTopicDiscovered(5))
            {
                ConversationGlobals.SetTopicDiscovered(5, true);
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
            }
            break;

        case 31:
            if (!ConversationGlobals.GetTopicDiscovered(6))
            {
                ConversationGlobals.SetTopicDiscovered(6, true);
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
            }
            break;

        case 32:
            if (!ConversationGlobals.GetTopicDiscovered(7))
            {
                ConversationGlobals.SetTopicDiscovered(7, true);
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
            }
            break;

        case 34:
            if (!ConversationGlobals.GetTopicDiscovered(8))
            {
                ConversationGlobals.SetTopicDiscovered(8, true);
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
            }
            break;
        }
    }
 private void Update()
 {
     if (this.Yandere.Follower != null)
     {
         for (int i = 1; i < 11; i++)
         {
             if (!this.Ignore[i] && Vector3.Distance(this.Yandere.Follower.transform.position, this.Clubs[i].position) < 4f && !ConversationGlobals.GetTopicLearnedByStudent(i, this.FollowerID))
             {
                 this.Yandere.NotificationManager.TopicName = this.TopicNames[i];
                 if (!ConversationGlobals.GetTopicDiscovered(i))
                 {
                     this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                     ConversationGlobals.SetTopicDiscovered(i, true);
                 }
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
                 ConversationGlobals.SetTopicLearnedByStudent(i, this.FollowerID, true);
                 this.Ignore[i] = true;
             }
         }
         if (!this.Ignore[11] && Vector3.Distance(this.Yandere.Follower.transform.position, this.Clubs[11].position) < 4f && !ConversationGlobals.GetTopicLearnedByStudent(11, this.FollowerID))
         {
             if (!ConversationGlobals.GetTopicDiscovered(11))
             {
                 this.Yandere.NotificationManager.TopicName = "Video Games";
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                 this.Yandere.NotificationManager.TopicName = "Anime";
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                 this.Yandere.NotificationManager.TopicName = "Cosplay";
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                 this.Yandere.NotificationManager.TopicName = "Memes";
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                 ConversationGlobals.SetTopicDiscovered(11, true);
                 ConversationGlobals.SetTopicDiscovered(12, true);
                 ConversationGlobals.SetTopicDiscovered(13, true);
                 ConversationGlobals.SetTopicDiscovered(14, true);
             }
             this.Yandere.NotificationManager.TopicName = "Video Games";
             this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
             this.Yandere.NotificationManager.TopicName = "Anime";
             this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
             this.Yandere.NotificationManager.TopicName = "Cosplay";
             this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
             this.Yandere.NotificationManager.TopicName = "Memes";
             this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
             ConversationGlobals.SetTopicLearnedByStudent(11, this.FollowerID, true);
             ConversationGlobals.SetTopicLearnedByStudent(12, this.FollowerID, true);
             ConversationGlobals.SetTopicLearnedByStudent(13, this.FollowerID, true);
             ConversationGlobals.SetTopicLearnedByStudent(14, this.FollowerID, true);
             this.Ignore[11] = true;
         }
         if (!this.Ignore[15] && Vector3.Distance(this.Yandere.Follower.transform.position, this.Kitten.position) < 2.5f && !ConversationGlobals.GetTopicLearnedByStudent(15, this.FollowerID))
         {
             this.Yandere.NotificationManager.TopicName = "Cats";
             if (!ConversationGlobals.GetTopicDiscovered(15))
             {
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                 ConversationGlobals.SetTopicDiscovered(15, true);
             }
             this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
             ConversationGlobals.SetTopicLearnedByStudent(15, this.FollowerID, true);
             this.Ignore[15] = true;
         }
         if (!this.Ignore[16] && Vector3.Distance(this.Yandere.Follower.transform.position, this.Clubs[6].position) < 4f && !ConversationGlobals.GetTopicLearnedByStudent(16, this.FollowerID))
         {
             this.Yandere.NotificationManager.TopicName = "Justice";
             if (!ConversationGlobals.GetTopicDiscovered(16))
             {
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                 ConversationGlobals.SetTopicDiscovered(16, true);
             }
             this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
             ConversationGlobals.SetTopicLearnedByStudent(16, this.FollowerID, true);
             this.Ignore[16] = true;
         }
         if (!this.Ignore[17] && Vector3.Distance(this.Yandere.Follower.transform.position, this.DelinquentZone.position) < 4f && !ConversationGlobals.GetTopicLearnedByStudent(17, this.FollowerID))
         {
             this.Yandere.NotificationManager.TopicName = "Violence";
             if (!ConversationGlobals.GetTopicDiscovered(17))
             {
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                 ConversationGlobals.SetTopicDiscovered(17, true);
             }
             this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
             ConversationGlobals.SetTopicLearnedByStudent(17, this.FollowerID, true);
             this.Ignore[17] = true;
         }
         if (!this.Ignore[18] && Vector3.Distance(this.Yandere.Follower.transform.position, this.Library.position) < 4f && !ConversationGlobals.GetTopicLearnedByStudent(18, this.FollowerID))
         {
             this.Yandere.NotificationManager.TopicName = "Reading";
             if (!ConversationGlobals.GetTopicDiscovered(18))
             {
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                 ConversationGlobals.SetTopicDiscovered(18, true);
             }
             this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
             ConversationGlobals.SetTopicLearnedByStudent(18, this.FollowerID, true);
             this.Ignore[18] = true;
         }
     }
 }
Пример #8
0
 // Token: 0x060007A0 RID: 1952 RVA: 0x00074F8C File Offset: 0x0007338C
 private void CheckPhoto()
 {
     this.InfoX.SetActive(true);
     this.PantiesX.SetActive(true);
     this.SenpaiX.SetActive(true);
     this.ViolenceX.SetActive(true);
     this.KittenShot = false;
     this.Nemesis    = false;
     this.NotFace    = false;
     this.Skirt      = false;
     if (Physics.Raycast(this.SmartphoneCamera.transform.position, this.SmartphoneCamera.transform.TransformDirection(Vector3.forward), out this.hit, float.PositiveInfinity, this.OnlyPhotography))
     {
         if (this.hit.collider.gameObject.name == "Panties")
         {
             this.Student = this.hit.collider.gameObject.transform.root.gameObject.GetComponent <StudentScript>();
             this.PantiesX.SetActive(false);
         }
         else if (this.hit.collider.gameObject.name == "Face")
         {
             if (this.hit.collider.gameObject.tag == "Nemesis")
             {
                 this.Nemesis = true;
                 this.NemesisShots++;
             }
             else if (this.hit.collider.gameObject.tag == "Disguise")
             {
                 this.Disguise = true;
             }
             else
             {
                 this.Student = this.hit.collider.gameObject.transform.root.gameObject.GetComponent <StudentScript>();
                 if (this.Student.StudentID == 1)
                 {
                     this.SenpaiX.SetActive(false);
                 }
                 else
                 {
                     this.InfoX.SetActive(false);
                 }
             }
         }
         else if (this.hit.collider.gameObject.name == "NotFace")
         {
             this.NotFace = true;
         }
         else if (this.hit.collider.gameObject.name == "Skirt")
         {
             this.Skirt = true;
         }
         if (this.hit.collider.gameObject.name == "Kitten")
         {
             this.KittenShot = true;
             if (!ConversationGlobals.GetTopicDiscovered(20))
             {
                 ConversationGlobals.SetTopicDiscovered(20, true);
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
             }
         }
     }
     if (Physics.Raycast(this.SmartphoneCamera.transform.position, this.SmartphoneCamera.transform.TransformDirection(Vector3.forward), out this.hit, float.PositiveInfinity, this.OnlyRagdolls) && this.hit.collider.gameObject.layer == 11)
     {
         this.ViolenceX.SetActive(false);
     }
     if (Physics.Raycast(this.SmartphoneCamera.transform.position, this.SmartphoneCamera.transform.TransformDirection(Vector3.forward), out this.hit, float.PositiveInfinity, this.OnlyBlood) && this.hit.collider.gameObject.layer == 14)
     {
         this.ViolenceX.SetActive(false);
     }
 }
    private void CheckPhoto()
    {
        this.InfoX.SetActive(true);
        this.BullyX.SetActive(true);
        this.SenpaiX.SetActive(true);
        this.PantiesX.SetActive(true);
        this.ViolenceX.SetActive(true);
        this.AirGuitarShot = false;
        this.HorudaShot    = false;
        this.KittenShot    = false;
        this.OsanaShot     = false;
        this.Nemesis       = false;
        this.NotFace       = false;
        this.Skirt         = false;
        Vector3 direction;

        if (!this.Yandere.Selfie)
        {
            direction = this.SmartphoneCamera.transform.TransformDirection(Vector3.forward);
        }
        else
        {
            direction = this.SelfieRayParent.TransformDirection(Vector3.forward);
        }
        this.StudentManager.UpdateSkirts(true);
        if (Physics.Raycast(this.SmartphoneCamera.transform.position, direction, out this.hit, float.PositiveInfinity, this.OnlyPhotography))
        {
            Debug.Log("Took a picture of " + this.hit.collider.gameObject.name);
            Debug.Log("The root is " + this.hit.collider.gameObject.transform.root.name);
            if (this.hit.collider.gameObject.name == "Panties")
            {
                this.Student             = this.hit.collider.gameObject.transform.root.gameObject.GetComponent <StudentScript>();
                this.PhotoDescLabel.text = "Photo of: " + this.Student.Name + "'s Panties";
                this.PantiesX.SetActive(false);
            }
            else if (this.hit.collider.gameObject.name == "Face")
            {
                if (this.hit.collider.gameObject.tag == "Nemesis")
                {
                    this.PhotoDescLabel.text = "Photo of: Nemesis";
                    this.Nemesis             = true;
                    this.NemesisShots++;
                }
                else if (this.hit.collider.gameObject.tag == "Disguise")
                {
                    this.PhotoDescLabel.text = "Photo of: ?????";
                    this.Disguise            = true;
                }
                else
                {
                    this.Student = this.hit.collider.gameObject.transform.root.gameObject.GetComponent <StudentScript>();
                    if (this.Student.StudentID == 1)
                    {
                        this.PhotoDescLabel.text = "Photo of: Senpai";
                        this.SenpaiX.SetActive(false);
                    }
                    else
                    {
                        this.PhotoDescLabel.text = "Photo of: " + this.Student.Name;
                        this.InfoX.SetActive(false);
                    }
                }
            }
            else if (this.hit.collider.gameObject.name == "NotFace")
            {
                this.PhotoDescLabel.text = "Photo of: Blocked Face";
                this.NotFace             = true;
            }
            else if (this.hit.collider.gameObject.name == "Skirt")
            {
                this.PhotoDescLabel.text = "Photo of: Skirt";
                this.Skirt = true;
            }
            if (this.hit.collider.transform.root.gameObject.name == "Student_51 (Miyuji Shan)" && this.StudentManager.Students[51].AirGuitar.isPlaying)
            {
                this.AirGuitarShot = true;
                this.PhotoDescription.SetActive(true);
                this.PhotoDescLabel.text = "Photo of: Miyuji's True Nature?";
            }
            if (this.hit.collider.gameObject.name == "Kitten")
            {
                this.KittenShot = true;
                this.PhotoDescription.SetActive(true);
                this.PhotoDescLabel.text = "Photo of: Kitten";
                if (!ConversationGlobals.GetTopicDiscovered(15))
                {
                    ConversationGlobals.SetTopicDiscovered(15, true);
                    this.Yandere.NotificationManager.TopicName = "Cats";
                    this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                }
            }
            if (this.hit.collider.gameObject.tag == "Horuda")
            {
                this.HorudaShot = true;
                this.PhotoDescription.SetActive(true);
                this.PhotoDescLabel.text = "Photo of: Horuda's Hiding Spot";
            }
            if (this.hit.collider.gameObject.tag == "Bully")
            {
                this.PhotoDescLabel.text = "Photo of: Student Speaking With Bully";
                this.BullyPhotoCollider  = this.hit.collider.gameObject;
                this.BullyX.SetActive(false);
            }
            if (this.hit.collider.gameObject.tag == "RivalEvidence")
            {
                this.OsanaShot = true;
                this.PhotoDescription.SetActive(true);
                this.PhotoDescLabel.text = "Photo of: Osana Vandalizing School Property";
            }
        }
        if (Physics.Raycast(this.SmartphoneCamera.transform.position, direction, out this.hit, float.PositiveInfinity, this.OnlyRagdolls) && this.hit.collider.gameObject.layer == 11)
        {
            this.PhotoDescLabel.text = "Photo of: Corpse";
            this.ViolenceX.SetActive(false);
        }
        if (Physics.Raycast(this.SmartphoneCamera.transform.position, this.SmartphoneCamera.transform.TransformDirection(Vector3.forward), out this.hit, float.PositiveInfinity, this.OnlyBlood) && this.hit.collider.gameObject.layer == 14)
        {
            this.PhotoDescLabel.text = "Photo of: Blood";
            this.ViolenceX.SetActive(false);
        }
        this.StudentManager.UpdateSkirts(false);
    }
 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;
         }
     }
 }
Пример #11
0
 // Token: 0x06000638 RID: 1592 RVA: 0x00058E34 File Offset: 0x00057234
 private void Update()
 {
     if (!this.Clock.StopTime && this.EventCheck)
     {
         if (this.Clock.HourTime > this.EventTime + 0.5f)
         {
             base.enabled = false;
         }
         else if (this.Clock.HourTime > this.EventTime)
         {
             this.EventStudent = this.StudentManager.Students[this.EventStudentID];
             if (this.EventStudent != null && this.EventStudent.Routine && !this.EventStudent.Distracted && !this.EventStudent.Talking && !this.EventStudent.Meeting && this.EventStudent.Indoors)
             {
                 if (!this.EventStudent.WitnessedMurder)
                 {
                     this.EventStudent.CurrentDestination = this.EventStudent.Destinations[this.EventStudent.Phase];
                     this.EventStudent.Pathfinding.target = this.EventStudent.Destinations[this.EventStudent.Phase];
                     this.EventStudent.Obstacle.checkTime = 99f;
                     this.EventStudent.SpeechLines.Stop();
                     this.EventStudent.PhoneEvent = this;
                     this.EventStudent.CanTalk    = false;
                     this.EventStudent.InEvent    = true;
                     this.EventStudent.Private    = true;
                     this.EventStudent.Prompt.Hide();
                     this.EventCheck  = false;
                     this.EventActive = true;
                     if (this.EventStudent.Following)
                     {
                         this.EventStudent.Pathfinding.canMove = true;
                         this.EventStudent.Pathfinding.speed   = 1f;
                         this.EventStudent.Following           = false;
                         this.EventStudent.Routine             = true;
                         this.Yandere.Followers--;
                         this.EventStudent.Subtitle.UpdateLabel(SubtitleType.StopFollowApology, 0, 3f);
                         this.EventStudent.Prompt.Label[0].text = "     Talk";
                     }
                 }
                 else
                 {
                     base.enabled = false;
                 }
             }
         }
     }
     if (this.EventActive)
     {
         if (this.EventStudent.DistanceToDestination < 0.5f)
         {
             this.EventStudent.Pathfinding.canSearch = false;
             this.EventStudent.Pathfinding.canMove   = false;
         }
         if (this.Clock.HourTime > this.EventTime + 0.5f || this.EventStudent.WitnessedMurder || this.EventStudent.Splashed || this.EventStudent.Alarmed || this.EventStudent.Dying || !this.EventStudent.Alive)
         {
             this.EndEvent();
         }
         else if (!this.EventStudent.Pathfinding.canMove)
         {
             if (this.EventPhase == 1)
             {
                 this.Timer += Time.deltaTime;
                 this.EventStudent.Character.GetComponent <Animation>().CrossFade(this.EventAnim[0]);
                 AudioClipPlayer.Play(this.EventClip[0], this.EventStudent.transform.position, 5f, 10f, out this.VoiceClip, out this.CurrentClipLength);
                 this.EventPhase++;
             }
             else if (this.EventPhase == 2)
             {
                 this.Timer += Time.deltaTime;
                 if (this.Timer > 1.5f)
                 {
                     if (this.EventStudent.StudentID == 33)
                     {
                         this.EventStudent.SmartPhone.SetActive(true);
                     }
                     else
                     {
                         this.EventStudent.Phone.SetActive(true);
                     }
                 }
                 if (this.Timer > 3f)
                 {
                     AudioClipPlayer.Play(this.EventClip[1], this.EventStudent.transform.position, 5f, 10f, out this.VoiceClip, out this.CurrentClipLength);
                     this.EventSubtitle.text = this.EventSpeech[1];
                     this.Timer = 0f;
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 3)
             {
                 this.Timer += Time.deltaTime;
                 if (this.Timer > this.CurrentClipLength)
                 {
                     this.EventStudent.Character.GetComponent <Animation>().CrossFade(this.EventStudent.RunAnim);
                     this.EventStudent.CurrentDestination    = this.EventLocation;
                     this.EventStudent.Pathfinding.target    = this.EventLocation;
                     this.EventStudent.Pathfinding.canSearch = true;
                     this.EventStudent.Pathfinding.canMove   = true;
                     this.EventStudent.Pathfinding.speed     = 4f;
                     this.EventSubtitle.text = string.Empty;
                     this.Timer = 0f;
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 4)
             {
                 this.DumpPoint.enabled = true;
                 this.EventStudent.Character.GetComponent <Animation>().CrossFade(this.EventAnim[2]);
                 AudioClipPlayer.Play(this.EventClip[2], this.EventStudent.transform.position, 5f, 10f, out this.VoiceClip, out this.CurrentClipLength);
                 this.EventPhase++;
             }
             else if (this.EventPhase < 13)
             {
                 if (this.VoiceClip != null)
                 {
                     this.VoiceClip.GetComponent <AudioSource>().pitch = Time.timeScale;
                     this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].time = this.VoiceClip.GetComponent <AudioSource>().time;
                     if (this.VoiceClip.GetComponent <AudioSource>().time > this.SpeechTimes[this.EventPhase - 3])
                     {
                         this.EventSubtitle.text = this.EventSpeech[this.EventPhase - 3];
                         this.EventPhase++;
                     }
                 }
             }
             else
             {
                 if (this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].time >= this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].length * 90.33333f)
                 {
                     if (this.EventStudent.StudentID == 33)
                     {
                         this.EventStudent.SmartPhone.SetActive(true);
                     }
                     else
                     {
                         this.EventStudent.Phone.SetActive(true);
                     }
                 }
                 if (this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].time >= this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].length)
                 {
                     this.EndEvent();
                 }
             }
             float num = Vector3.Distance(this.Yandere.transform.position, this.EventStudent.transform.position);
             if (num < 10f)
             {
                 float num2 = Mathf.Abs((num - 10f) * 0.2f);
                 if (num2 < 0f)
                 {
                     num2 = 0f;
                 }
                 if (num2 > 1f)
                 {
                     num2 = 1f;
                 }
                 this.EventSubtitle.transform.localScale = new Vector3(num2, num2, num2);
             }
             else
             {
                 this.EventSubtitle.transform.localScale = Vector3.zero;
             }
             if (this.EventPhase == 11 && num < 5f && !EventGlobals.Event2)
             {
                 EventGlobals.Event2 = true;
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Info);
                 ConversationGlobals.SetTopicDiscovered(25, true);
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
                 ConversationGlobals.SetTopicLearnedByStudent(25, this.EventStudentID, true);
             }
         }
     }
 }
 // Token: 0x060018E0 RID: 6368 RVA: 0x000E67C4 File Offset: 0x000E49C4
 private void Update()
 {
     if (!this.Clock.StopTime && this.EventCheck)
     {
         if (this.Clock.HourTime > this.EventTime + 0.5f)
         {
             base.enabled = false;
         }
         else if (this.Clock.HourTime > this.EventTime)
         {
             this.EventStudent = this.StudentManager.Students[this.EventStudentID];
             if (this.EventStudent != null && !this.EventStudent.InEvent && this.EventStudent.DistanceToDestination < 1f && !this.StudentManager.CommunalLocker.RivalPhone.Stolen)
             {
                 this.EventStudent.CharacterAnimation.cullingType = AnimationCullingType.AlwaysAnimate;
                 if (this.EventStudentID == 11)
                 {
                     this.EventFriend = this.StudentManager.Students[this.EventFriendID];
                     if (this.EventFriend != null)
                     {
                         this.EventFriend.CharacterAnimation.CrossFade(this.EventFriend.IdleAnim);
                         this.EventFriend.Pathfinding.canSearch = false;
                         this.EventFriend.Pathfinding.canMove   = false;
                         this.EventFriend.TargetDistance        = 0.5f;
                         this.EventFriend.SpeechLines.Stop();
                         this.EventFriend.PhoneEvent = this;
                         this.EventFriend.CanTalk    = false;
                         this.EventFriend.Routine    = false;
                         this.EventFriend.InEvent    = true;
                         this.EventFriend.Prompt.Hide();
                     }
                 }
                 if (this.EventStudent.Routine && !this.EventStudent.Distracted && !this.EventStudent.Talking && !this.EventStudent.Meeting && !this.EventStudent.Investigating && this.EventStudent.Indoors)
                 {
                     if (!this.EventStudent.WitnessedMurder)
                     {
                         this.EventStudent.CurrentDestination = this.EventStudent.Destinations[this.EventStudent.Phase];
                         this.EventStudent.Pathfinding.target = this.EventStudent.Destinations[this.EventStudent.Phase];
                         this.EventStudent.Obstacle.checkTime = 99f;
                         this.EventStudent.SpeechLines.Stop();
                         this.EventStudent.PhoneEvent = this;
                         this.EventStudent.CanTalk    = false;
                         this.EventStudent.InEvent    = true;
                         this.EventStudent.Prompt.Hide();
                         this.EventCheck  = false;
                         this.EventActive = true;
                         if (this.EventStudent.Following)
                         {
                             this.EventStudent.Pathfinding.canMove = true;
                             this.EventStudent.Pathfinding.speed   = 1f;
                             this.EventStudent.Following           = false;
                             this.EventStudent.Routine             = true;
                             this.Yandere.Followers--;
                             this.EventStudent.Subtitle.UpdateLabel(SubtitleType.StopFollowApology, 0, 3f);
                             this.EventStudent.Prompt.Label[0].text = "     Talk";
                         }
                     }
                     else
                     {
                         base.enabled = false;
                     }
                 }
             }
         }
     }
     if (this.EventActive)
     {
         if (this.EventStudent.DistanceToDestination < 0.5f)
         {
             this.EventStudent.Pathfinding.canSearch = false;
             this.EventStudent.Pathfinding.canMove   = false;
         }
         if (this.Clock.HourTime > this.EventTime + 0.5f || this.EventStudent.WitnessedMurder || this.EventStudent.Splashed || this.EventStudent.Alarmed || this.EventStudent.Dying || !this.EventStudent.Alive)
         {
             this.EndEvent();
             return;
         }
         if (!this.EventStudent.Pathfinding.canMove)
         {
             if (this.EventPhase == 1)
             {
                 this.Timer += Time.deltaTime;
                 this.EventStudent.CharacterAnimation.CrossFade(this.EventAnim[0]);
                 AudioClipPlayer.Play(this.EventClip[0], this.EventStudent.transform.position, 5f, 10f, out this.VoiceClip, out this.CurrentClipLength);
                 this.EventPhase++;
             }
             else if (this.EventPhase == 2)
             {
                 this.Timer += Time.deltaTime;
                 if (this.Timer > 1.5f)
                 {
                     this.EventStudent.SmartPhone.SetActive(true);
                     this.EventStudent.SmartPhone.transform.localPosition    = new Vector3(-0.015f, -0.005f, -0.015f);
                     this.EventStudent.SmartPhone.transform.localEulerAngles = new Vector3(0f, -150f, 165f);
                 }
                 if (this.Timer > 2f)
                 {
                     AudioClipPlayer.Play(this.EventClip[1], this.EventStudent.transform.position, 5f, 10f, out this.VoiceClip, out this.CurrentClipLength);
                     this.EventSubtitle.text = this.EventSpeech[1];
                     this.Timer = 0f;
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 3)
             {
                 this.Timer += Time.deltaTime;
                 if (this.Timer > this.CurrentClipLength)
                 {
                     this.EventStudent.Character.GetComponent <Animation>().CrossFade(this.EventStudent.RunAnim);
                     this.EventStudent.CurrentDestination    = this.EventLocation;
                     this.EventStudent.Pathfinding.target    = this.EventLocation;
                     this.EventStudent.Pathfinding.canSearch = true;
                     this.EventStudent.Pathfinding.canMove   = true;
                     this.EventStudent.Pathfinding.speed     = 4f;
                     this.EventSubtitle.text = string.Empty;
                     this.Timer = 0f;
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 4)
             {
                 if (this.EventStudentID != 11)
                 {
                     this.DumpPoint.enabled = true;
                 }
                 this.EventStudent.Private = true;
                 this.EventStudent.Character.GetComponent <Animation>().CrossFade(this.EventAnim[2]);
                 AudioClipPlayer.Play(this.EventClip[2], this.EventStudent.transform.position, 5f, 10f, out this.VoiceClip, out this.CurrentClipLength);
                 this.EventPhase++;
             }
             else if (this.EventPhase < 13)
             {
                 if (this.VoiceClip != null)
                 {
                     this.VoiceClip.GetComponent <AudioSource>().pitch = Time.timeScale;
                     this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].time = this.VoiceClip.GetComponent <AudioSource>().time;
                     if (this.VoiceClip.GetComponent <AudioSource>().time > this.SpeechTimes[this.EventPhase - 3])
                     {
                         this.EventSubtitle.text = this.EventSpeech[this.EventPhase - 3];
                         this.EventPhase++;
                     }
                 }
             }
             else
             {
                 if (this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].time >= this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].length * 90.33333f)
                 {
                     this.EventStudent.SmartPhone.SetActive(true);
                 }
                 if (this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].time >= this.EventStudent.Character.GetComponent <Animation>()[this.EventAnim[2]].length)
                 {
                     this.EndEvent();
                 }
             }
             float num = Vector3.Distance(this.Yandere.transform.position, this.EventStudent.transform.position);
             if (num < 10f)
             {
                 float num2 = Mathf.Abs((num - 10f) * 0.2f);
                 if (num2 < 0f)
                 {
                     num2 = 0f;
                 }
                 if (num2 > 1f)
                 {
                     num2 = 1f;
                 }
                 this.Jukebox.Dip = 1f - 0.5f * num2;
                 this.EventSubtitle.transform.localScale = new Vector3(num2, num2, num2);
             }
             else
             {
                 this.EventSubtitle.transform.localScale = Vector3.zero;
             }
             if (base.enabled && this.EventPhase > 4)
             {
                 if (num < 5f)
                 {
                     this.Yandere.Eavesdropping = true;
                 }
                 else
                 {
                     this.Yandere.Eavesdropping = false;
                 }
             }
             if (this.EventPhase == 11 && num < 5f)
             {
                 if (this.EventStudentID == 30)
                 {
                     if (!EventGlobals.Event2)
                     {
                         EventGlobals.Event2 = true;
                         this.Yandere.NotificationManager.DisplayNotification(NotificationType.Info);
                         ConversationGlobals.SetTopicDiscovered(25, true);
                         this.Yandere.NotificationManager.TopicName = "Money";
                         this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                         this.Yandere.NotificationManager.TopicName = "Money";
                         this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
                         ConversationGlobals.SetTopicLearnedByStudent(25, this.EventStudentID, true);
                     }
                 }
                 else if (!EventGlobals.OsanaEvent1)
                 {
                     EventGlobals.OsanaEvent1 = true;
                     this.Yandere.NotificationManager.DisplayNotification(NotificationType.Info);
                 }
             }
         }
         if ((this.EventStudent.Pathfinding.canMove || this.EventPhase > 3) && this.EventFriend != null && this.EventPhase > 3)
         {
             if (this.EventFriend.CurrentDestination != this.SpyLocation)
             {
                 this.Timer += Time.deltaTime;
                 if (this.Timer > 3f)
                 {
                     this.EventFriend.CharacterAnimation.CrossFade(this.EventStudent.RunAnim);
                     this.EventFriend.CurrentDestination    = this.SpyLocation;
                     this.EventFriend.Pathfinding.target    = this.SpyLocation;
                     this.EventFriend.Pathfinding.canSearch = true;
                     this.EventFriend.Pathfinding.canMove   = true;
                     this.EventFriend.Pathfinding.speed     = 4f;
                     this.EventFriend.Routine = true;
                     this.Timer = 0f;
                     return;
                 }
                 this.EventFriend.targetRotation     = Quaternion.LookRotation(this.StudentManager.Students[this.EventStudentID].transform.position - this.EventFriend.transform.position);
                 this.EventFriend.transform.rotation = Quaternion.Slerp(this.EventFriend.transform.rotation, this.EventFriend.targetRotation, 10f * Time.deltaTime);
                 return;
             }
             else if (this.EventFriend.DistanceToDestination < 1f)
             {
                 this.EventFriend.CharacterAnimation.CrossFade("f02_cornerPeek_00");
                 this.EventFriend.Pathfinding.canSearch = false;
                 this.EventFriend.Pathfinding.canMove   = false;
                 this.SettleFriend();
             }
         }
     }
 }
Пример #13
0
    private void TopicCheck()
    {
        if (this.RoomID > 25 && this.RoomID < 37)
        {
            this.StudentManager.TutorialWindow.ShowClubMessage = true;
        }
        switch (this.RoomID)
        {
        case 1:
        case 2:
        case 4:
        case 5:
        case 6:
        case 7:
        case 8:
        case 9:
        case 10:
        case 11:
        case 12:
        case 14:
        case 15:
        case 16:
        case 17:
        case 18:
        case 19:
        case 20:
        case 21:
        case 23:
        case 24:
        case 25:
        case 33:
        case 37:
            break;

        case 3:
            if (!ConversationGlobals.GetTopicDiscovered(22))
            {
                ConversationGlobals.SetTopicDiscovered(22, true);
                this.Yandere.NotificationManager.TopicName = "School";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                return;
            }
            break;

        case 13:
            if (!ConversationGlobals.GetTopicDiscovered(18))
            {
                ConversationGlobals.SetTopicDiscovered(18, true);
                this.Yandere.NotificationManager.TopicName = "Reading";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                return;
            }
            break;

        case 22:
            if (!ConversationGlobals.GetTopicDiscovered(11))
            {
                ConversationGlobals.SetTopicDiscovered(11, true);
                ConversationGlobals.SetTopicDiscovered(12, true);
                ConversationGlobals.SetTopicDiscovered(13, true);
                ConversationGlobals.SetTopicDiscovered(14, true);
                this.Yandere.NotificationManager.TopicName = "Video Games";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                this.Yandere.NotificationManager.TopicName = "Anime";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                this.Yandere.NotificationManager.TopicName = "Cosplay";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                this.Yandere.NotificationManager.TopicName = "Memes";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                return;
            }
            break;

        case 26:
            if (!ConversationGlobals.GetTopicDiscovered(1))
            {
                ConversationGlobals.SetTopicDiscovered(1, true);
                this.Yandere.NotificationManager.TopicName = "Cooking";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                return;
            }
            break;

        case 27:
            if (!ConversationGlobals.GetTopicDiscovered(2))
            {
                ConversationGlobals.SetTopicDiscovered(2, true);
                this.Yandere.NotificationManager.TopicName = "Drama";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                return;
            }
            break;

        case 28:
            if (!ConversationGlobals.GetTopicDiscovered(3))
            {
                ConversationGlobals.SetTopicDiscovered(3, true);
                this.Yandere.NotificationManager.TopicName = "Occult";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                return;
            }
            break;

        case 29:
            if (!ConversationGlobals.GetTopicDiscovered(4))
            {
                ConversationGlobals.SetTopicDiscovered(4, true);
                this.Yandere.NotificationManager.TopicName = "Art";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                return;
            }
            break;

        case 30:
            if (!ConversationGlobals.GetTopicDiscovered(5))
            {
                ConversationGlobals.SetTopicDiscovered(5, true);
                this.Yandere.NotificationManager.TopicName = "Music";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                return;
            }
            break;

        case 31:
            if (!ConversationGlobals.GetTopicDiscovered(6))
            {
                ConversationGlobals.SetTopicDiscovered(6, true);
                this.Yandere.NotificationManager.TopicName = "Martial Arts";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                return;
            }
            break;

        case 32:
            if (!ConversationGlobals.GetTopicDiscovered(7))
            {
                ConversationGlobals.SetTopicDiscovered(7, true);
                this.Yandere.NotificationManager.TopicName = "Photography";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                return;
            }
            break;

        case 34:
            if (!ConversationGlobals.GetTopicDiscovered(8))
            {
                ConversationGlobals.SetTopicDiscovered(8, true);
                this.Yandere.NotificationManager.TopicName = "Science";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                return;
            }
            break;

        case 35:
            if (!ConversationGlobals.GetTopicDiscovered(9))
            {
                ConversationGlobals.SetTopicDiscovered(9, true);
                this.Yandere.NotificationManager.TopicName = "Sports";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                return;
            }
            break;

        case 36:
            if (!ConversationGlobals.GetTopicDiscovered(10))
            {
                ConversationGlobals.SetTopicDiscovered(10, true);
                this.Yandere.NotificationManager.TopicName = "Gardening";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
            }
            if (!ConversationGlobals.GetTopicDiscovered(24))
            {
                ConversationGlobals.SetTopicDiscovered(24, true);
                this.Yandere.NotificationManager.TopicName = "Nature";
                this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
            }
            break;

        default:
            return;
        }
    }
Пример #14
0
 // Token: 0x060001A7 RID: 423 RVA: 0x0001DDC8 File Offset: 0x0001C1C8
 private void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
     }
     if (!this.Clock.StopTime && this.EventCheck && this.Clock.HourTime > this.EventTime)
     {
         this.EventStudent = this.StudentManager.Students[this.EventStudentID];
         if (this.EventStudent != null && !this.EventStudent.Distracted && !this.EventStudent.Meeting)
         {
             if (!this.EventStudent.WitnessedMurder)
             {
                 this.Snacks.Prompt.Hide();
                 this.Snacks.Prompt.enabled           = false;
                 this.Snacks.enabled                  = false;
                 this.EventStudent.CurrentDestination = this.EventLocations[0];
                 this.EventStudent.Pathfinding.target = this.EventLocations[0];
                 this.EventStudent.Obstacle.checkTime = 99f;
                 this.EventStudent.CookingEvent       = this;
                 this.EventStudent.InEvent            = true;
                 this.EventStudent.Private            = true;
                 this.EventStudent.Prompt.Hide();
                 this.EventCheck  = false;
                 this.EventActive = true;
                 if (this.EventStudent.Following)
                 {
                     this.EventStudent.Pathfinding.canMove = true;
                     this.EventStudent.Pathfinding.speed   = 1f;
                     this.EventStudent.Following           = false;
                     this.EventStudent.Routine             = true;
                     this.Yandere.Followers--;
                     this.EventStudent.Subtitle.UpdateLabel(SubtitleType.StopFollowApology, 0, 3f);
                     this.EventStudent.Prompt.Label[0].text = "     Talk";
                 }
             }
             else
             {
                 base.enabled = false;
             }
         }
     }
     if (this.EventActive)
     {
         if (this.Clock.HourTime > this.EventTime + 0.5f || this.EventStudent.WitnessedMurder || this.EventStudent.Splashed || this.EventStudent.Alarmed || this.EventStudent.Dying || this.EventStudent.Yandere.Cooking)
         {
             this.EndEvent();
         }
         else if (!this.EventStudent.Pathfinding.canMove)
         {
             if (!ConversationGlobals.GetTopicLearnedByStudent(1, 7) && Vector3.Distance(this.Yandere.transform.position, this.EventStudent.transform.position) < 5f)
             {
                 if (!ConversationGlobals.GetTopicDiscovered(1))
                 {
                     this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                     ConversationGlobals.SetTopicDiscovered(1, true);
                 }
                 this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
                 ConversationGlobals.SetTopicLearnedByStudent(1, 7, true);
             }
             if (this.EventPhase == -1)
             {
                 this.Timer += Time.deltaTime;
                 if (this.Timer > 5f)
                 {
                     SchemeGlobals.SetSchemeStage(4, 5);
                     this.Schemes.UpdateInstructions();
                     this.RivalPhone.SetActive(false);
                     this.EventSubtitle.text = string.Empty;
                     this.EventPhase++;
                     this.Timer = 0f;
                 }
             }
             else if (this.EventPhase == 0)
             {
                 if (!this.RivalPhone.activeInHierarchy)
                 {
                     this.EventStudent.Character.GetComponent <Animation>().Play("f02_prepareFood_00");
                     this.Octodog.transform.parent           = this.EventStudent.RightHand;
                     this.Octodog.transform.localPosition    = new Vector3(0.0129f, -0.02475f, 0.0316f);
                     this.Octodog.transform.localEulerAngles = new Vector3(-90f, 0f, 0f);
                     this.Sausage.transform.parent           = this.EventStudent.RightHand;
                     this.Sausage.transform.localPosition    = new Vector3(0.013f, -0.038f, 0.015f);
                     this.Sausage.transform.localEulerAngles = Vector3.zero;
                     this.EventPhase++;
                 }
                 else
                 {
                     AudioClipPlayer.Play(this.EventClip[0], this.EventStudent.transform.position + Vector3.up, 5f, 10f, out this.VoiceClip, out this.CurrentClipLength);
                     this.EventStudent.Character.GetComponent <Animation>().CrossFade(this.EventAnim[0]);
                     this.EventSubtitle.text = this.EventSpeech[0];
                     this.EventPhase--;
                 }
             }
             else if (this.EventPhase == 1)
             {
                 if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time > 1f)
                 {
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 2)
             {
                 this.Refrigerator.GetComponent <Animation>().Play("FridgeOpen");
                 if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time > 3f)
                 {
                     this.Jar.transform.parent = this.EventStudent.RightHand;
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 3)
             {
                 if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time > 5f)
                 {
                     this.JarLid.transform.parent = this.EventStudent.LeftHand;
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 4)
             {
                 if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time > 6f)
                 {
                     this.JarLid.transform.parent           = this.CookingClub;
                     this.JarLid.transform.localPosition    = new Vector3(0.334585f, 1f, -0.2528915f);
                     this.JarLid.transform.localEulerAngles = new Vector3(0f, 30f, 0f);
                     this.Jar.transform.parent           = this.CookingClub;
                     this.Jar.transform.localPosition    = new Vector3(0.29559f, 1f, 0.2029152f);
                     this.Jar.transform.localEulerAngles = new Vector3(0f, -150f, 0f);
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 5)
             {
                 if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time > 7f)
                 {
                     this.Knife.GetComponent <WeaponScript>().FingerprintID = this.EventStudent.StudentID;
                     this.Knife.parent           = this.EventStudent.LeftHand;
                     this.Knife.localPosition    = new Vector3(0f, -0.01f, 0f);
                     this.Knife.localEulerAngles = new Vector3(0f, 0f, -90f);
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 6)
             {
                 if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time >= this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].length)
                 {
                     this.EventStudent.Character.GetComponent <Animation>().CrossFade("f02_cutFood_00");
                     this.Sausage.SetActive(true);
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 7)
             {
                 if (this.EventStudent.Character.GetComponent <Animation>()["f02_cutFood_00"].time > 2.66666f)
                 {
                     this.Octodog.SetActive(true);
                     this.Sausage.SetActive(false);
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 8)
             {
                 if (this.EventStudent.Character.GetComponent <Animation>()["f02_cutFood_00"].time > 3f)
                 {
                     this.Rotation = Mathf.MoveTowards(this.Rotation, 90f, Time.deltaTime * 360f);
                     this.Octodog.transform.localEulerAngles = new Vector3(this.Rotation, this.Octodog.transform.localEulerAngles.y, this.Octodog.transform.localEulerAngles.z);
                     this.Octodog.transform.localPosition    = new Vector3(this.Octodog.transform.localPosition.x, this.Octodog.transform.localPosition.y, Mathf.MoveTowards(this.Octodog.transform.localPosition.z, 0.012f, Time.deltaTime));
                 }
                 if (this.EventStudent.Character.GetComponent <Animation>()["f02_cutFood_00"].time > 6f)
                 {
                     this.Octodog.SetActive(false);
                     this.Octodogs[this.Loop].gameObject.SetActive(true);
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 9)
             {
                 if (this.EventStudent.Character.GetComponent <Animation>()["f02_cutFood_00"].time >= this.EventStudent.Character.GetComponent <Animation>()["f02_cutFood_00"].length)
                 {
                     if (this.Loop < this.Octodogs.Length - 1)
                     {
                         this.Octodog.transform.localEulerAngles = new Vector3(-90f, this.Octodog.transform.localEulerAngles.y, this.Octodog.transform.localEulerAngles.z);
                         this.Octodog.transform.localPosition    = new Vector3(this.Octodog.transform.localPosition.x, this.Octodog.transform.localPosition.y, 0.0316f);
                         this.EventStudent.Character.GetComponent <Animation>()["f02_cutFood_00"].time = 0f;
                         this.EventStudent.Character.GetComponent <Animation>().Play("f02_cutFood_00");
                         this.Sausage.SetActive(true);
                         this.EventPhase = 7;
                         this.Rotation   = -90f;
                         this.Loop++;
                     }
                     else
                     {
                         this.EventStudent.Character.GetComponent <Animation>().Play("f02_prepareFood_00");
                         this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time  = this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].length;
                         this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].speed = -1f;
                         this.EventPhase++;
                     }
                 }
             }
             else if (this.EventPhase == 10)
             {
                 if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time < this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].length - 1f)
                 {
                     this.Knife.parent           = this.CookingClub;
                     this.Knife.localPosition    = new Vector3(0.197f, 1.1903f, -0.33333f);
                     this.Knife.localEulerAngles = new Vector3(45f, -90f, -90f);
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 11)
             {
                 if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time < this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].length - 2f)
                 {
                     this.JarLid.parent = this.EventStudent.LeftHand;
                     this.Jar.parent    = this.EventStudent.RightHand;
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 12)
             {
                 if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time < this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].length - 3f)
                 {
                     this.JarLid.parent           = this.Jar;
                     this.JarLid.localPosition    = new Vector3(0f, 0.175f, 0f);
                     this.JarLid.localEulerAngles = Vector3.zero;
                     this.Refrigerator.GetComponent <Animation>().Play("FridgeOpen");
                     this.Refrigerator.GetComponent <Animation>()["FridgeOpen"].time  = this.Refrigerator.GetComponent <Animation>()["FridgeOpen"].length;
                     this.Refrigerator.GetComponent <Animation>()["FridgeOpen"].speed = -1f;
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 13)
             {
                 if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time < this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].length - 5f)
                 {
                     this.Jar.parent           = this.CookingClub;
                     this.Jar.localPosition    = new Vector3(0.1f, 0.941f, 0.75f);
                     this.Jar.localEulerAngles = new Vector3(0f, 90f, 0f);
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 14)
             {
                 if (this.EventStudent.Character.GetComponent <Animation>()["f02_prepareFood_00"].time <= 0f)
                 {
                     this.Knife.GetComponent <Collider>().enabled = true;
                     this.Plate.parent                    = this.EventStudent.RightHand;
                     this.Plate.localPosition             = new Vector3(0f, 0.011f, -0.156765f);
                     this.Plate.localEulerAngles          = new Vector3(0f, -90f, -180f);
                     this.EventStudent.CurrentDestination = this.EventLocations[1];
                     this.EventStudent.Pathfinding.target = this.EventLocations[1];
                     this.EventStudent.Character.GetComponent <Animation>()[this.EventStudent.CarryAnim].weight = 1f;
                     this.EventPhase++;
                 }
             }
             else if (this.EventPhase == 15)
             {
                 this.Plate.parent           = this.CookingClub;
                 this.Plate.localPosition    = new Vector3(-3.66666f, 0.9066666f, -2.379f);
                 this.Plate.localEulerAngles = new Vector3(0f, -90f, 0f);
                 this.EndEvent();
             }
             float num = Vector3.Distance(this.Yandere.transform.position, this.EventStudent.transform.position);
             if (num < 10f)
             {
                 float num2 = Mathf.Abs((num - 10f) * 0.2f);
                 if (num2 < 0f)
                 {
                     num2 = 0f;
                 }
                 if (num2 > 1f)
                 {
                     num2 = 1f;
                 }
                 this.EventSubtitle.transform.localScale = new Vector3(num2, num2, num2);
             }
             else
             {
                 this.EventSubtitle.transform.localScale = Vector3.zero;
             }
         }
     }
 }
Пример #15
0
 // Token: 0x0600060E RID: 1550 RVA: 0x00055380 File Offset: 0x00053780
 private void Update()
 {
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         this.Jukebox.Dip = 0.1f;
         this.Yandere.EmptyHands();
         this.Yandere.CanMove = false;
         this.Student         = this.StudentManager.Students[7];
         this.Student.Prompt.Label[0].text = "     Talk";
         this.Student.Pushable             = false;
         this.Student.Meeting   = false;
         this.Student.Routine   = false;
         this.Student.MeetTimer = 0f;
         this.Offering          = true;
     }
     if (this.Offering)
     {
         this.Yandere.transform.rotation = Quaternion.Slerp(this.Yandere.transform.rotation, base.transform.rotation, Time.deltaTime * 10f);
         this.Yandere.MoveTowardsTarget(base.transform.position + Vector3.down);
         Quaternion b = Quaternion.LookRotation(this.Yandere.transform.position - this.Student.transform.position);
         this.Student.transform.rotation = Quaternion.Slerp(this.Student.transform.rotation, b, Time.deltaTime * 10f);
         Animation component  = this.Yandere.Character.GetComponent <Animation>();
         Animation component2 = this.Student.Character.GetComponent <Animation>();
         if (!this.Spoken)
         {
             if (this.EventSpeaker[this.EventPhase] == 1)
             {
                 component.CrossFade(this.EventAnim[this.EventPhase]);
                 component2.CrossFade(this.Student.IdleAnim, 1f);
             }
             else
             {
                 component2.CrossFade(this.EventAnim[this.EventPhase]);
                 component.CrossFade(this.Yandere.IdleAnim, 1f);
             }
             this.EventSubtitle.transform.localScale = new Vector3(1f, 1f, 1f);
             this.EventSubtitle.text = this.EventSpeech[this.EventPhase];
             AudioSource component3 = base.GetComponent <AudioSource>();
             component3.clip = this.EventClip[this.EventPhase];
             component3.Play();
             this.Spoken = true;
         }
         else
         {
             if (Input.GetButtonDown("A"))
             {
                 this.Timer += this.EventClip[this.EventPhase].length + 1f;
             }
             if (this.EventSpeaker[this.EventPhase] == 1)
             {
                 if (component[this.EventAnim[this.EventPhase]].time >= component[this.EventAnim[this.EventPhase]].length)
                 {
                     component.CrossFade(this.Yandere.IdleAnim);
                 }
             }
             else if (component2[this.EventAnim[this.EventPhase]].time >= component2[this.EventAnim[this.EventPhase]].length)
             {
                 component2.CrossFade(this.Student.IdleAnim);
             }
             this.Timer += Time.deltaTime;
             if (this.Timer > this.EventClip[this.EventPhase].length)
             {
                 this.EventSubtitle.text = string.Empty;
             }
             if (this.Timer > this.EventClip[this.EventPhase].length + 1f)
             {
                 this.Spoken = false;
                 this.EventPhase++;
                 this.Timer = 0f;
                 if (this.EventPhase == 14)
                 {
                     if (!ConversationGlobals.GetTopicDiscovered(23))
                     {
                         this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                         ConversationGlobals.SetTopicDiscovered(23, true);
                     }
                     if (!ConversationGlobals.GetTopicLearnedByStudent(23, 7))
                     {
                         this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
                         ConversationGlobals.SetTopicLearnedByStudent(23, 7, true);
                     }
                 }
                 if (this.EventPhase == this.EventSpeech.Length)
                 {
                     SchemeGlobals.SetSchemeStage(6, 5);
                     this.Student.CurrentDestination    = this.Student.Destinations[this.Student.Phase];
                     this.Student.Pathfinding.target    = this.Student.Destinations[this.Student.Phase];
                     this.Student.Pathfinding.canSearch = true;
                     this.Student.Pathfinding.canMove   = true;
                     this.Student.Routine = true;
                     this.EventSubtitle.transform.localScale = Vector3.zero;
                     this.Yandere.CanMove = true;
                     this.Jukebox.Dip     = 1f;
                     UnityEngine.Object.Destroy(base.gameObject);
                 }
             }
         }
     }
     else if (this.StudentManager.Students[7].Pushed || !this.StudentManager.Students[7].Alive)
     {
         base.gameObject.SetActive(false);
     }
 }
Пример #16
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);
         }
     }
 }
 // Token: 0x060002A9 RID: 681 RVA: 0x000345D8 File Offset: 0x000329D8
 private void Update() {
   if (!this.Clock.StopTime && this.EventCheck) {
     if (this.EventStudent[1] == null) {
       this.EventStudent[1] = this.StudentManager.Students[6];
     } else if (!this.EventStudent[1].Alive) {
       this.EventCheck = false;
       base.enabled = false;
     }
     if (this.EventStudent[2] == null) {
       this.EventStudent[2] = this.StudentManager.Students[7];
     } else if (!this.EventStudent[2].Alive) {
       this.EventCheck = false;
       base.enabled = false;
     }
     if (this.Clock.HourTime > 13.01f && this.EventStudent[1] != null && this.EventStudent[2] != null && this.EventStudent[1].Pathfinding.canMove && this.EventStudent[1].Pathfinding.canMove) {
       this.EventStudent[1].CurrentDestination = this.EventLocation[1];
       this.EventStudent[1].Pathfinding.target = this.EventLocation[1];
       this.EventStudent[1].EventManager = this;
       this.EventStudent[1].InEvent = true;
       this.EventStudent[2].CurrentDestination = this.EventLocation[2];
       this.EventStudent[2].Pathfinding.target = this.EventLocation[2];
       this.EventStudent[2].EventManager = this;
       this.EventStudent[2].InEvent = true;
       this.EventCheck = false;
       this.EventOn = true;
     }
   }
   if (this.EventOn) {
     float num = Vector3.Distance(this.Yandere.transform.position, this.EventStudent[this.EventSpeaker[this.EventPhase]].transform.position);
     if (this.Clock.HourTime > 13.5f || this.EventStudent[1].WitnessedCorpse || this.EventStudent[2].WitnessedCorpse || this.EventStudent[1].Dying || this.EventStudent[2].Dying || this.EventStudent[2].Splashed) {
       this.EndEvent();
     } else {
       if (!this.EventStudent[1].Pathfinding.canMove && !this.EventStudent[1].Private) {
         this.EventStudent[1].Character.GetComponent<Animation>().CrossFade(this.EventStudent[1].IdleAnim);
         this.EventStudent[1].Private = true;
         this.StudentManager.UpdateStudents();
       }
       if (!this.EventStudent[2].Pathfinding.canMove && !this.EventStudent[2].Private) {
         this.EventStudent[2].Character.GetComponent<Animation>().CrossFade(this.EventStudent[2].IdleAnim);
         this.EventStudent[2].Private = true;
         this.StudentManager.UpdateStudents();
       }
       if (!this.EventStudent[1].Pathfinding.canMove && !this.EventStudent[2].Pathfinding.canMove) {
         if (!this.InterruptZone.activeInHierarchy) {
           this.InterruptZone.SetActive(true);
         }
         if (!this.Spoken) {
           this.EventStudent[this.EventSpeaker[this.EventPhase]].Character.GetComponent<Animation>().CrossFade(this.EventAnim[this.EventPhase]);
           if (num < 10f) {
             this.EventSubtitle.text = this.EventSpeech[this.EventPhase];
           }
           AudioClipPlayer.Play(this.EventClip[this.EventPhase], this.EventStudent[this.EventSpeaker[this.EventPhase]].transform.position + Vector3.up * 1.5f, 5f, 10f, out this.VoiceClip, this.Yandere.transform.position.y);
           this.Spoken = true;
         } else {
           if (this.Yandere.transform.position.z > 0f) {
             this.Timer += Time.deltaTime;
             if (this.Timer > this.EventClip[this.EventPhase].length) {
               this.EventSubtitle.text = string.Empty;
             }
             if (this.Yandere.transform.position.y < this.EventStudent[1].transform.position.y - 1f) {
               this.EventSubtitle.transform.localScale = Vector3.zero;
             } else if (num < 10f) {
               this.Scale = Mathf.Abs((num - 10f) * 0.2f);
               if (this.Scale < 0f) {
                 this.Scale = 0f;
               }
               if (this.Scale > 1f) {
                 this.Scale = 1f;
               }
               this.EventSubtitle.transform.localScale = new Vector3(this.Scale, this.Scale, this.Scale);
             } else {
               this.EventSubtitle.transform.localScale = Vector3.zero;
             }
             Animation component = this.EventStudent[this.EventSpeaker[this.EventPhase]].Character.GetComponent<Animation>();
             if (component[this.EventAnim[this.EventPhase]].time >= component[this.EventAnim[this.EventPhase]].length) {
               component.CrossFade(this.EventStudent[this.EventSpeaker[this.EventPhase]].IdleAnim);
             }
             if (this.Timer > this.EventClip[this.EventPhase].length + 1f) {
               this.Spoken = false;
               this.EventPhase++;
               this.Timer = 0f;
               if (this.EventPhase == 4) {
                 if (!ConversationGlobals.GetTopicDiscovered(22)) {
                   this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
                   ConversationGlobals.SetTopicDiscovered(22, true);
                 }
                 if (!ConversationGlobals.GetTopicLearnedByStudent(22, 7)) {
                   this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
                   ConversationGlobals.SetTopicLearnedByStudent(22, 7, true);
                 }
               }
               if (this.EventPhase == this.EventSpeech.Length) {
                 this.EndEvent();
               }
             }
           }
           if (this.Yandere.transform.position.y > this.EventStudent[1].transform.position.y - 1f && this.EventPhase == 7 && num < 5f && !EventGlobals.Event1) {
             this.Yandere.NotificationManager.DisplayNotification(NotificationType.Info);
             EventGlobals.Event1 = true;
           }
         }
       }
     }
   }
 }