Beispiel #1
0
 // Token: 0x06000226 RID: 550 RVA: 0x0002E8A4 File Offset: 0x0002CCA4
 private void CheckTaskCompletion()
 {
     if (TaskGlobals.GetTaskStatus(this.Yandere.TargetStudent.StudentID) == 2 && this.Yandere.TargetStudent.StudentID == 32)
     {
         this.Yandere.Inventory.Cigs = false;
     }
 }
Beispiel #2
0
 // Token: 0x06000784 RID: 1924 RVA: 0x000713DE File Offset: 0x0006F7DE
 private void Start()
 {
     if (TaskGlobals.GetTaskStatus(7) > 2)
     {
         base.enabled = false;
     }
 }
Beispiel #3
0
 public static void DeleteAll()
 {
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_GuitarPhoto_", TaskGlobals.KeysOfGuitarPhoto());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_KittenPhoto_", TaskGlobals.KeysOfKittenPhoto());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_HorudaPhoto_", TaskGlobals.KeysOfHorudaPhoto());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_TaskStatus_", TaskGlobals.KeysOfTaskStatus());
 }
    // Token: 0x0600146C RID: 5228 RVA: 0x000B4160 File Offset: 0x000B2360
    public static void DeleteAll()
    {
        int profile = GameGlobals.Profile;

        ClassGlobals.DeleteAll();
        ClubGlobals.DeleteAll();
        CollectibleGlobals.DeleteAll();
        ConversationGlobals.DeleteAll();
        DateGlobals.DeleteAll();
        DatingGlobals.DeleteAll();
        EventGlobals.DeleteAll();
        GameGlobals.DeleteAll();
        HomeGlobals.DeleteAll();
        MissionModeGlobals.DeleteAll();
        PlayerGlobals.DeleteAll();
        PoseModeGlobals.DeleteAll();
        SchemeGlobals.DeleteAll();
        SchoolGlobals.DeleteAll();
        SenpaiGlobals.DeleteAll();
        StudentGlobals.DeleteAll();
        TaskGlobals.DeleteAll();
        YanvaniaGlobals.DeleteAll();
        WeaponGlobals.DeleteAll();
        TutorialGlobals.DeleteAll();
        CounselorGlobals.DeleteAll();
        YancordGlobals.DeleteAll();
        CorkboardGlobals.DeleteAll();
        GameGlobals.Profile = profile;
        DateGlobals.Week    = 1;
    }
    // Token: 0x0600087E RID: 2174 RVA: 0x00099D54 File Offset: 0x00098154
    public IEnumerator UpdateTaskInfo()
    {
        this.Highlight.localPosition = new Vector3(this.Highlight.localPosition.x, 200f - 25f * (float)this.ID, this.Highlight.localPosition.z);
        if (TaskGlobals.GetTaskStatus(this.ID) == 0)
        {
            this.StudentIcon.mainTexture = this.Silhouette;
            this.TaskIcon.mainTexture    = this.QuestionMark;
            this.TaskDesc.text           = "This task has not been discovered yet.";
        }
        else
        {
            string path = string.Concat(new string[]
            {
                "file:///",
                Application.streamingAssetsPath,
                "/Portraits/Student_",
                this.ID.ToString(),
                ".png"
            });
            WWW www = new WWW(path);
            yield return(www);

            this.StudentIcon.mainTexture = www.texture;
            this.TaskIcon.mainTexture    = this.TaskIcons[this.ID];
            this.TaskDesc.text           = this.TaskDescs[this.ID];
        }
        yield break;
    }
    // Token: 0x06001A1C RID: 6684 RVA: 0x000FF190 File Offset: 0x000FD390
    public static TaskSaveData ReadFromGlobals()
    {
        TaskSaveData taskSaveData = new TaskSaveData();

        foreach (int num in TaskGlobals.KeysOfGuitarPhoto())
        {
            if (TaskGlobals.GetGuitarPhoto(num))
            {
                taskSaveData.guitarPhoto.Add(num);
            }
        }
        foreach (int num2 in TaskGlobals.KeysOfKittenPhoto())
        {
            if (TaskGlobals.GetKittenPhoto(num2))
            {
                taskSaveData.kittenPhoto.Add(num2);
            }
        }
        foreach (int num3 in TaskGlobals.KeysOfHorudaPhoto())
        {
            if (TaskGlobals.GetHorudaPhoto(num3))
            {
                taskSaveData.horudaPhoto.Add(num3);
            }
        }
        foreach (int num4 in TaskGlobals.KeysOfTaskStatus())
        {
            taskSaveData.taskStatus.Add(num4, TaskGlobals.GetTaskStatus(num4));
        }
        return(taskSaveData);
    }
 // Token: 0x0600087D RID: 2173 RVA: 0x00099CEC File Offset: 0x000980EC
 public void UpdateTaskList()
 {
     for (int i = 1; i < this.TaskNames.Length; i++)
     {
         this.TaskNameLabels[i].text = ((TaskGlobals.GetTaskStatus(i) != 0) ? this.TaskNames[i] : "?????");
         this.Checkmarks[i].enabled  = (TaskGlobals.GetTaskStatus(i) == 3);
     }
 }
Beispiel #8
0
 // Token: 0x06001C3B RID: 7227 RVA: 0x001528B4 File Offset: 0x00150AB4
 private void Update()
 {
     if (this.Window.activeInHierarchy)
     {
         if (Input.GetButtonDown("A"))
         {
             TaskGlobals.SetTaskStatus(this.StudentID, 1);
             this.Yandere.TargetStudent.TalkTimer   = 100f;
             this.Yandere.TargetStudent.Interaction = StudentInteractionType.GivingTask;
             this.Yandere.TargetStudent.TaskPhase   = 4;
             this.PromptBar.ClearButtons();
             this.PromptBar.Show = false;
             this.Window.SetActive(false);
             this.UpdateTaskObjects(this.StudentID);
             Time.timeScale = 1f;
         }
         else if (Input.GetButtonDown("B"))
         {
             this.Yandere.TargetStudent.TalkTimer   = 100f;
             this.Yandere.TargetStudent.Interaction = StudentInteractionType.GivingTask;
             this.Yandere.TargetStudent.TaskPhase   = 0;
             this.PromptBar.ClearButtons();
             this.PromptBar.Show = false;
             this.Window.SetActive(false);
             Time.timeScale = 1f;
         }
     }
     if (this.TaskComplete)
     {
         if (this.TrueTimer == 0f)
         {
             base.GetComponent <AudioSource>().Play();
         }
         this.TrueTimer += Time.deltaTime;
         this.Timer     += Time.deltaTime;
         if (this.ID < this.TaskCompleteLetters.Length && this.Timer > 0.05f)
         {
             this.TaskCompleteLetters[this.ID].SetActive(true);
             this.Timer = 0f;
             this.ID++;
         }
         if (this.TaskCompleteLetters[12].transform.localPosition.y < -725f)
         {
             this.ID = 0;
             while (this.ID < this.TaskCompleteLetters.Length)
             {
                 this.TaskCompleteLetters[this.ID].GetComponent <GrowShrinkScript>().Return();
                 this.ID++;
             }
             this.TaskCheck();
             this.DialogueWheel.End();
             this.TaskComplete = false;
             this.TrueTimer    = 0f;
             this.Timer        = 0f;
             this.ID           = 0;
         }
     }
 }
Beispiel #9
0
        private static async ITask DoAsync()
        {
            var taskGlobals = new TaskGlobals();

            await UseTaskGlobalsAsync(taskGlobals);

            await UseITaskAsync();
            await UseGenericITaskAsync();
        }
 // Token: 0x06000751 RID: 1873 RVA: 0x0006F17C File Offset: 0x0006D57C
 public static void WriteToGlobals(TaskSaveData data)
 {
     foreach (int photoID in data.kittenPhoto)
     {
         TaskGlobals.SetKittenPhoto(photoID, true);
     }
     foreach (KeyValuePair <int, int> keyValuePair in data.taskStatus)
     {
         TaskGlobals.SetTaskStatus(keyValuePair.Key, keyValuePair.Value);
     }
 }
Beispiel #11
0
 // Token: 0x0600174C RID: 5964 RVA: 0x000C86AC File Offset: 0x000C68AC
 private void Start()
 {
     if (TaskGlobals.GetTaskStatus(38) == 0)
     {
         this.TitleScreens[1] = this.TitleScreens[5];
         UILabel uilabel = this.GameTitles[1];
         uilabel.text  = this.GameTitles[5].text;
         uilabel.color = new Color(uilabel.color.r, uilabel.color.g, uilabel.color.b, 0.5f);
     }
     this.TitleScreen.mainTexture = this.TitleScreens[1];
 }
 private void Start()
 {
     if (TaskGlobals.GetTaskStatus(30) == 1)
     {
         this.Check = true;
         return;
     }
     if (TaskGlobals.GetTaskStatus(30) > 2)
     {
         base.enabled = false;
     }
 }
Beispiel #13
0
 // Token: 0x06000881 RID: 2177 RVA: 0x00099F90 File Offset: 0x00098390
 private void Update()
 {
     if (TaskGlobals.GetTaskStatus(6) == 1 && this.Prompts[6].Circle[3].fillAmount == 0f)
     {
         if (this.StudentManager.Students[6] != null)
         {
             this.StudentManager.Students[6].TaskPhase = 5;
         }
         TaskGlobals.SetTaskStatus(6, 2);
         UnityEngine.Object.Destroy(this.TaskObjects[6]);
     }
     if (TaskGlobals.GetTaskStatus(15) == 1 && this.Prompts[15].Circle[3] != null && this.Prompts[15].Circle[3].fillAmount == 0f)
     {
         if (this.StudentManager.Students[15] != null)
         {
             this.StudentManager.Students[15].TaskPhase = 5;
         }
         TaskGlobals.SetTaskStatus(15, 2);
         UnityEngine.Object.Destroy(this.TaskObjects[15]);
     }
     if (TaskGlobals.GetTaskStatus(33) == 1 && this.Prompts[33].Circle[3] != null && this.Prompts[33].Circle[3].fillAmount == 0f)
     {
         if (this.StudentManager.Students[33] != null)
         {
             this.StudentManager.Students[33].TaskPhase = 5;
         }
         TaskGlobals.SetTaskStatus(33, 2);
         UnityEngine.Object.Destroy(this.TaskObjects[33]);
     }
     if (!this.Yandere.Talking)
     {
         if (TaskGlobals.GetTaskStatus(32) == 1)
         {
             if (this.Yandere.Inventory.Cigs)
             {
                 if (this.StudentManager.Students[32] != null)
                 {
                     this.StudentManager.Students[32].TaskPhase = 5;
                 }
                 TaskGlobals.SetTaskStatus(32, 2);
             }
         }
         else if (TaskGlobals.GetTaskStatus(32) == 2 && !this.Yandere.Inventory.Cigs)
         {
             if (this.StudentManager.Students[32] != null)
             {
                 this.StudentManager.Students[32].TaskPhase = 4;
             }
             TaskGlobals.SetTaskStatus(32, 1);
         }
     }
 }
 // Token: 0x060001AF RID: 431 RVA: 0x00021058 File Offset: 0x0001F458
 private void TaskCheck()
 {
     if (this.StudentID == 15)
     {
         if (TaskGlobals.GetTaskStatus(15) < 3 && !this.TakingPortrait)
         {
             this.MaleAccessories[1].SetActive(false);
         }
     }
     else if (this.StudentID == 33 && TaskGlobals.GetTaskStatus(33) < 3 && this.Charm != null)
     {
         this.Charm.SetActive(true);
     }
 }
Beispiel #15
0
 // Token: 0x06001C30 RID: 7216 RVA: 0x00151FE0 File Offset: 0x001501E0
 public void UpdateTaskList()
 {
     for (int i = 1; i < this.TaskNameLabels.Length; i++)
     {
         if (TaskGlobals.GetTaskStatus(i + this.ListPosition) == 0)
         {
             this.TaskNameLabels[i].text = "Undiscovered Task #" + (i + this.ListPosition);
         }
         else
         {
             this.TaskNameLabels[i].text = this.JSON.Students[i + this.ListPosition].Name + "'s Task";
         }
         this.Checkmarks[i].enabled = (TaskGlobals.GetTaskStatus(i + this.ListPosition) == 3);
     }
 }
    // Token: 0x06000750 RID: 1872 RVA: 0x0006F0F4 File Offset: 0x0006D4F4
    public static TaskSaveData ReadFromGlobals()
    {
        TaskSaveData taskSaveData = new TaskSaveData();

        foreach (int num in TaskGlobals.KeysOfKittenPhoto())
        {
            if (TaskGlobals.GetKittenPhoto(num))
            {
                taskSaveData.kittenPhoto.Add(num);
            }
        }
        foreach (int num2 in TaskGlobals.KeysOfTaskStatus())
        {
            taskSaveData.taskStatus.Add(num2, TaskGlobals.GetTaskStatus(num2));
        }
        return(taskSaveData);
    }
Beispiel #17
0
    public IEnumerator UpdateTaskInfo()
    {
        this.Highlight.localPosition = new Vector3(this.Highlight.localPosition.x, 200f - 25f * (float)this.ID, this.Highlight.localPosition.z);
        if (this.Tutorials)
        {
            this.TaskIcon.mainTexture = this.TutorialTextures[this.ID + this.ListPosition];
            this.TaskDesc.text        = "This tutorial will teach you about " + this.TutorialNames[this.ID + this.ListPosition];
        }
        else if (TaskGlobals.GetTaskStatus(this.ID + this.ListPosition) == 0)
        {
            this.StudentIcon.mainTexture = this.Silhouette;
            this.TaskIcon.mainTexture    = this.QuestionMark;
            this.TaskDesc.text           = "This task has not been discovered yet.";
        }
        else
        {
            string url = string.Concat(new string[]
            {
                "file:///",
                Application.streamingAssetsPath,
                "/Portraits/Student_",
                (this.ID + this.ListPosition).ToString(),
                ".png"
            });
            WWW www = new WWW(url);
            yield return(www);

            this.StudentIcon.mainTexture = www.texture;
            this.TaskWindow.AltGenericCheck(this.ID + this.ListPosition);
            if (this.TaskWindow.Generic)
            {
                this.TaskIcon.mainTexture = this.TaskWindow.Icons[0];
                this.TaskDesc.text        = this.TaskWindow.Descriptions[0];
            }
            else
            {
                this.TaskIcon.mainTexture = this.TaskWindow.Icons[this.ID + this.ListPosition];
                this.TaskDesc.text        = this.TaskWindow.Descriptions[this.ID + this.ListPosition];
            }
            www = null;
        }
        yield break;
    }
Beispiel #18
0
 // Token: 0x06001DCC RID: 7628 RVA: 0x001731D8 File Offset: 0x001713D8
 private void Start()
 {
     this.Midori.transform.localPosition    = new Vector3(1540f, 0f, 0f);
     this.Midori.transform.localEulerAngles = Vector3.zero;
     this.Midori.gameObject.SetActive(false);
     if (YanvaniaGlobals.DraculaDefeated)
     {
         TaskGlobals.SetTaskStatus(38, 2);
         this.SkipButton.SetActive(true);
         this.Logo.gameObject.SetActive(false);
     }
     else
     {
         this.SkipButton.SetActive(false);
     }
     this.Prologue.gameObject.SetActive(false);
     this.Prologue.localPosition = new Vector3(this.Prologue.localPosition.x, -2665f, this.Prologue.localPosition.z);
     this.Darkness.color         = new Color(this.Darkness.color.r, this.Darkness.color.g, this.Darkness.color.b, 1f);
     this.Buttons.alpha          = 0f;
     this.Logo.color             = new Color(this.Logo.color.r, this.Logo.color.g, this.Logo.color.b, 0f);
 }
 // Token: 0x06001C10 RID: 7184 RVA: 0x0014EC38 File Offset: 0x0014CE38
 public void CheckTaskPickups()
 {
     Debug.Log("Checking Tasks that are completed by picking something up!");
     if (TaskGlobals.GetTaskStatus(11) == 1 && this.Prompts[11].Circle[3] != null && this.Prompts[11].Circle[3].fillAmount == 0f)
     {
         if (this.StudentManager.Students[11] != null)
         {
             this.StudentManager.Students[11].TaskPhase = 5;
         }
         ConversationGlobals.SetTopicDiscovered(15, true);
         this.Yandere.NotificationManager.TopicName = "Cats";
         this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
         this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
         ConversationGlobals.SetTopicLearnedByStudent(15, 11, true);
         TaskGlobals.SetTaskStatus(11, 2);
         UnityEngine.Object.Destroy(this.TaskObjects[11]);
     }
     if (TaskGlobals.GetTaskStatus(25) == 1 && this.Prompts[25].Circle[3].fillAmount == 0f)
     {
         if (this.StudentManager.Students[25] != null)
         {
             this.StudentManager.Students[25].TaskPhase = 5;
         }
         TaskGlobals.SetTaskStatus(25, 2);
         UnityEngine.Object.Destroy(this.TaskObjects[25]);
     }
     if (TaskGlobals.GetTaskStatus(37) == 1 && this.Prompts[37].Circle[3] != null && this.Prompts[37].Circle[3].fillAmount == 0f)
     {
         if (this.StudentManager.Students[37] != null)
         {
             this.StudentManager.Students[37].TaskPhase = 5;
         }
         TaskGlobals.SetTaskStatus(37, 2);
         UnityEngine.Object.Destroy(this.TaskObjects[37]);
     }
 }
Beispiel #20
0
    // Token: 0x06000225 RID: 549 RVA: 0x0002D9A0 File Offset: 0x0002BDA0
    public void HideShadows()
    {
        this.TaskIcon.spriteName   = ((!PlayerGlobals.GetStudentFriend(this.Yandere.TargetStudent.StudentID)) ? "Task" : "Heart");
        this.Impatience.fillAmount = 0f;
        for (int i = 1; i < 7; i++)
        {
            UISprite uisprite = this.Shadow[i];
            uisprite.color = new Color(uisprite.color.r, uisprite.color.g, uisprite.color.b, 0f);
        }
        for (int j = 1; j < 5; j++)
        {
            UISprite uisprite2 = this.FavorShadow[j];
            uisprite2.color = new Color(uisprite2.color.r, uisprite2.color.g, uisprite2.color.b, 0f);
        }
        for (int k = 1; k < 7; k++)
        {
            UISprite uisprite3 = this.ClubShadow[k];
            uisprite3.color = new Color(uisprite3.color.r, uisprite3.color.g, uisprite3.color.b, 0f);
        }
        for (int l = 1; l < 5; l++)
        {
            UISprite uisprite4 = this.LoveShadow[l];
            uisprite4.color = new Color(uisprite4.color.r, uisprite4.color.g, uisprite4.color.b, 0f);
        }
        if (!this.Yandere.TargetStudent.Witness || this.Yandere.TargetStudent.Forgave || this.Yandere.TargetStudent.Club == ClubType.Council)
        {
            UISprite uisprite5 = this.Shadow[1];
            uisprite5.color = new Color(uisprite5.color.r, uisprite5.color.g, uisprite5.color.b, 0.75f);
        }
        if (this.Yandere.TargetStudent.Complimented || this.Yandere.TargetStudent.Club == ClubType.Council)
        {
            UISprite uisprite6 = this.Shadow[2];
            uisprite6.color = new Color(uisprite6.color.r, uisprite6.color.g, uisprite6.color.b, 0.75f);
        }
        if (this.Yandere.TargetStudent.Gossiped || this.Yandere.TargetStudent.Club == ClubType.Council)
        {
            UISprite uisprite7 = this.Shadow[3];
            uisprite7.color = new Color(uisprite7.color.r, uisprite7.color.g, uisprite7.color.b, 0.75f);
        }
        if (this.Yandere.Bloodiness > 0f || this.Yandere.Sanity < 33.33333f || this.Yandere.TargetStudent.Club == ClubType.Council)
        {
            UISprite uisprite8 = this.Shadow[3];
            uisprite8.color = new Color(uisprite8.color.r, uisprite8.color.g, uisprite8.color.b, 0.75f);
            UISprite uisprite9 = this.Shadow[5];
            uisprite9.color = new Color(uisprite9.color.r, uisprite9.color.g, uisprite9.color.b, 0.75f);
            UISprite uisprite10 = this.Shadow[6];
            uisprite10.color = new Color(uisprite10.color.r, uisprite10.color.g, uisprite10.color.b, 0.75f);
        }
        else if (this.Reputation.Reputation < -33.33333f)
        {
            UISprite uisprite11 = this.Shadow[3];
            uisprite11.color = new Color(uisprite11.color.r, uisprite11.color.g, uisprite11.color.b, 0.75f);
        }
        if (!this.Yandere.TargetStudent.Indoors || this.Yandere.TargetStudent.Club == ClubType.Council)
        {
            UISprite uisprite12 = this.Shadow[5];
            uisprite12.color = new Color(uisprite12.color.r, uisprite12.color.g, uisprite12.color.b, 0.75f);
        }
        else if (!PlayerGlobals.GetStudentFriend(this.Yandere.TargetStudent.StudentID))
        {
            if (this.Yandere.TargetStudent.StudentID != 6 && this.Yandere.TargetStudent.StudentID != 7 && this.Yandere.TargetStudent.StudentID != 13 && this.Yandere.TargetStudent.StudentID != 14 && this.Yandere.TargetStudent.StudentID != 15 && this.Yandere.TargetStudent.StudentID != 32 && this.Yandere.TargetStudent.StudentID != 33)
            {
                UISprite uisprite13 = this.Shadow[5];
                uisprite13.color = new Color(uisprite13.color.r, uisprite13.color.g, uisprite13.color.b, 0.75f);
            }
            else
            {
                if (this.Yandere.TargetStudent.TaskPhase > 0 && this.Yandere.TargetStudent.TaskPhase < 5)
                {
                    UISprite uisprite14 = this.Shadow[5];
                    uisprite14.color = new Color(uisprite14.color.r, uisprite14.color.g, uisprite14.color.b, 0.75f);
                }
                if (this.Yandere.TargetStudent.StudentID == 32)
                {
                    if (this.Clock.Period != 3 || this.Yandere.TargetStudent.DistanceToDestination > 1f)
                    {
                        UISprite uisprite15 = this.Shadow[5];
                        uisprite15.color = new Color(uisprite15.color.r, uisprite15.color.g, uisprite15.color.b, 0.75f);
                    }
                    else if (TaskGlobals.GetTaskStatus(32) == 1 && this.Yandere.Inventory.Cigs)
                    {
                        UISprite uisprite16 = this.Shadow[5];
                        uisprite16.color = new Color(uisprite16.color.r, uisprite16.color.g, uisprite16.color.b, 0f);
                    }
                }
            }
        }
        else if (this.Yandere.TargetStudent.StudentID != 7 && this.Yandere.TargetStudent.StudentID != 13)
        {
            UISprite uisprite17 = this.Shadow[5];
            uisprite17.color = new Color(uisprite17.color.r, uisprite17.color.g, uisprite17.color.b, 0.75f);
        }
        else if (!this.Yandere.TargetStudent.Male && this.LoveManager.SuitorProgress == 0)
        {
            UISprite uisprite18 = this.Shadow[5];
            uisprite18.color = new Color(uisprite18.color.r, uisprite18.color.g, uisprite18.color.b, 0.75f);
        }
        if (!this.Yandere.TargetStudent.Indoors || this.Yandere.TargetStudent.Club == ClubType.Council)
        {
            UISprite uisprite19 = this.Shadow[6];
            uisprite19.color = new Color(uisprite19.color.r, uisprite19.color.g, uisprite19.color.b, 0.75f);
        }
        else
        {
            if (!PlayerGlobals.GetStudentFriend(this.Yandere.TargetStudent.StudentID))
            {
                UISprite uisprite20 = this.Shadow[6];
                uisprite20.color = new Color(uisprite20.color.r, uisprite20.color.g, uisprite20.color.b, 0.75f);
            }
            if ((this.Yandere.TargetStudent.Male && PlayerGlobals.Seduction + PlayerGlobals.SeductionBonus > 3) || PlayerGlobals.Seduction + PlayerGlobals.SeductionBonus > 4)
            {
                UISprite uisprite21 = this.Shadow[6];
                uisprite21.color = new Color(uisprite21.color.r, uisprite21.color.g, uisprite21.color.b, 0f);
            }
        }
        if (ClubGlobals.Club == this.Yandere.TargetStudent.Club)
        {
            UISprite uisprite22 = this.ClubShadow[1];
            uisprite22.color = new Color(uisprite22.color.r, uisprite22.color.g, uisprite22.color.b, 0.75f);
            UISprite uisprite23 = this.ClubShadow[2];
            uisprite23.color = new Color(uisprite23.color.r, uisprite23.color.g, uisprite23.color.b, 0.75f);
        }
        if (this.Yandere.ClubAttire || this.Yandere.Mask != null || this.Yandere.Gloves != null || this.Yandere.Container != null)
        {
            UISprite uisprite24 = this.ClubShadow[3];
            uisprite24.color = new Color(uisprite24.color.r, uisprite24.color.g, uisprite24.color.b, 0.75f);
        }
        if (ClubGlobals.Club != this.Yandere.TargetStudent.Club)
        {
            UISprite uisprite25 = this.ClubShadow[2];
            uisprite25.color = new Color(uisprite25.color.r, uisprite25.color.g, uisprite25.color.b, 0f);
            UISprite uisprite26 = this.ClubShadow[3];
            uisprite26.color = new Color(uisprite26.color.r, uisprite26.color.g, uisprite26.color.b, 0.75f);
            UISprite uisprite27 = this.ClubShadow[5];
            uisprite27.color = new Color(uisprite27.color.r, uisprite27.color.g, uisprite27.color.b, 0.75f);
        }
        UISprite uisprite28 = this.ClubShadow[6];

        uisprite28.color = new Color(uisprite28.color.r, uisprite28.color.g, uisprite28.color.b, 0.75f);
        if (this.Yandere.Followers > 0)
        {
            UISprite uisprite29 = this.FavorShadow[1];
            uisprite29.color = new Color(uisprite29.color.r, uisprite29.color.g, uisprite29.color.b, 0.75f);
        }
        if (this.Yandere.TargetStudent.DistanceToDestination > 0.5f)
        {
            UISprite uisprite30 = this.FavorShadow[2];
            uisprite30.color = new Color(uisprite30.color.r, uisprite30.color.g, uisprite30.color.b, 0.75f);
        }
        if (!this.Yandere.TargetStudent.Male)
        {
            UISprite uisprite31 = this.LoveShadow[1];
            uisprite31.color = new Color(uisprite31.color.r, uisprite31.color.g, uisprite31.color.b, 0.75f);
        }
        if (this.DatingMinigame == null || !this.Yandere.Inventory.Headset || (this.Yandere.TargetStudent.Male && !this.LoveManager.RivalWaiting) || this.LoveManager.Courted)
        {
            UISprite uisprite32 = this.LoveShadow[2];
            uisprite32.color = new Color(uisprite32.color.r, uisprite32.color.g, uisprite32.color.b, 0.75f);
        }
        if (!this.Yandere.TargetStudent.Male || !this.Yandere.Inventory.Rose || this.Yandere.TargetStudent.Rose)
        {
            UISprite uisprite33 = this.LoveShadow[4];
            uisprite33.color = new Color(uisprite33.color.r, uisprite33.color.g, uisprite33.color.b, 0.75f);
        }
    }
Beispiel #21
0
 // Token: 0x060004A7 RID: 1191 RVA: 0x0003CC7F File Offset: 0x0003B07F
 public static void DeleteAll()
 {
     Globals.DeleteCollection("KittenPhoto_", TaskGlobals.KeysOfKittenPhoto());
     Globals.DeleteCollection("TaskStatus_", TaskGlobals.KeysOfTaskStatus());
 }
Beispiel #22
0
 // Token: 0x06000882 RID: 2178 RVA: 0x0009A1E0 File Offset: 0x000985E0
 public void UpdateTaskStatus()
 {
     if (TaskGlobals.GetTaskStatus(6) == 1)
     {
         if (this.StudentManager.Students[6] != null)
         {
             if (this.StudentManager.Students[6].TaskPhase == 0)
             {
                 this.StudentManager.Students[6].TaskPhase = 4;
             }
             this.TaskObjects[6].SetActive(true);
         }
     }
     else if (this.TaskObjects[6] != null)
     {
         this.TaskObjects[6].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(7) == 1 && this.StudentManager.Students[7] != null && this.StudentManager.Students[7].TaskPhase == 0)
     {
         this.StudentManager.Students[7].TaskPhase = 4;
     }
     if (TaskGlobals.GetTaskStatus(13) == 1 && this.StudentManager.Students[13] != null)
     {
         this.StudentManager.Students[13].TaskPhase = 4;
         for (int i = 1; i < 26; i++)
         {
             if (TaskGlobals.GetKittenPhoto(i))
             {
                 this.StudentManager.Students[13].TaskPhase = 5;
             }
         }
     }
     if (TaskGlobals.GetTaskStatus(14) == 1)
     {
         if (this.StudentManager.Students[14] != null && this.StudentManager.Students[14].TaskPhase == 0)
         {
             this.StudentManager.Students[14].TaskPhase = 4;
         }
     }
     else if (TaskGlobals.GetTaskStatus(14) == 2 && this.StudentManager.Students[14] != null)
     {
         this.StudentManager.Students[14].TaskPhase = 5;
     }
     if (TaskGlobals.GetTaskStatus(15) == 1)
     {
         if (this.StudentManager.Students[15] != null)
         {
             if (this.StudentManager.Students[15].TaskPhase == 0)
             {
                 this.StudentManager.Students[15].TaskPhase = 4;
             }
             this.TaskObjects[15].SetActive(true);
         }
     }
     else if (this.TaskObjects[15] != null)
     {
         this.TaskObjects[15].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(32) == 3)
     {
     }
     if (TaskGlobals.GetTaskStatus(33) == 1)
     {
         if (this.StudentManager.Students[33] != null)
         {
             if (this.StudentManager.Students[33].TaskPhase == 0)
             {
                 this.StudentManager.Students[33].TaskPhase = 4;
             }
             this.TaskObjects[33].SetActive(true);
         }
     }
     else if (this.TaskObjects[33] != null)
     {
         this.TaskObjects[33].SetActive(false);
     }
 }
Beispiel #23
0
 // Token: 0x0600174D RID: 5965 RVA: 0x000C8734 File Offset: 0x000C6934
 private void Update()
 {
     if (this.HomeCamera.Destination == this.HomeCamera.Destinations[5])
     {
         if (Input.GetKeyDown("y"))
         {
             TaskGlobals.SetTaskStatus(38, 1);
             SceneManager.LoadScene(SceneManager.GetActiveScene().name);
         }
         this.TV.localScale = Vector3.Lerp(this.TV.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f);
         if (!this.HomeYandere.CanMove)
         {
             if (this.HomeDarkness.FadeOut)
             {
                 Transform transform  = this.HomeCamera.Destinations[5];
                 Transform transform2 = this.HomeCamera.Targets[5];
                 transform.position = new Vector3(Mathf.Lerp(transform.position.x, transform2.position.x, Time.deltaTime * 0.75f), Mathf.Lerp(transform.position.y, transform2.position.y, Time.deltaTime * 10f), Mathf.Lerp(transform.position.z, transform2.position.z, Time.deltaTime * 10f));
                 return;
             }
             if (this.InputManager.TappedDown)
             {
                 this.ID++;
                 if (this.ID > 5)
                 {
                     this.ID = 1;
                 }
                 this.TitleScreen.mainTexture = this.TitleScreens[this.ID];
                 this.Highlight.localPosition = new Vector3(this.Highlight.localPosition.x, 150f - (float)this.ID * 50f, this.Highlight.localPosition.z);
             }
             if (this.InputManager.TappedUp)
             {
                 this.ID--;
                 if (this.ID < 1)
                 {
                     this.ID = 5;
                 }
                 this.TitleScreen.mainTexture = this.TitleScreens[this.ID];
                 this.Highlight.localPosition = new Vector3(this.Highlight.localPosition.x, 150f - (float)this.ID * 50f, this.Highlight.localPosition.z);
             }
             if (Input.GetButtonDown("A") && this.GameTitles[this.ID].color.a == 1f)
             {
                 Transform transform3 = this.HomeCamera.Targets[5];
                 transform3.localPosition       = new Vector3(transform3.localPosition.x, 1.153333f, transform3.localPosition.z);
                 this.HomeDarkness.Sprite.color = new Color(this.HomeDarkness.Sprite.color.r, this.HomeDarkness.Sprite.color.g, this.HomeDarkness.Sprite.color.b, -1f);
                 this.HomeDarkness.FadeOut      = true;
                 this.HomeWindow.Show           = false;
                 this.PromptBar.Show            = false;
                 this.HomeCamera.ID             = 5;
             }
             if (Input.GetButtonDown("B"))
             {
                 this.Quit();
                 return;
             }
         }
     }
     else
     {
         this.TV.localScale = Vector3.Lerp(this.TV.localScale, Vector3.zero, Time.deltaTime * 10f);
     }
 }
 private void LateUpdate()
 {
     if (this.HomeYandere.transform.position.y > -5f)
     {
         Transform transform = this.Destinations[0];
         transform.position = new Vector3(-this.HomeYandere.transform.position.x, transform.position.y, transform.position.z);
     }
     this.Focus.position     = Vector3.Lerp(this.Focus.position, this.Target.position, Time.deltaTime * 10f);
     base.transform.position = Vector3.Lerp(base.transform.position, this.Destination.position, Time.deltaTime * 10f);
     base.transform.LookAt(this.Focus.position);
     if (this.ID != 11 && Input.GetButtonDown("A") && this.HomeYandere.CanMove && this.ID != 0)
     {
         this.Destination = this.Destinations[this.ID];
         this.Target      = this.Targets[this.ID];
         this.HomeWindows[this.ID].Show = true;
         this.HomeYandere.CanMove       = false;
         if (this.ID == 1 || this.ID == 8)
         {
             this.HomeExit.enabled = true;
         }
         else if (this.ID == 2)
         {
             this.HomeSleep.enabled = true;
         }
         else if (this.ID == 3)
         {
             this.HomeInternet.enabled = true;
         }
         else if (this.ID == 4)
         {
             this.CorkboardLabel.SetActive(false);
             this.HomeCorkboard.enabled = true;
             this.LoadingScreen.SetActive(true);
             this.HomeYandere.gameObject.SetActive(false);
         }
         else if (this.ID == 5)
         {
             this.HomeYandere.enabled = false;
             this.Controller.transform.localPosition = new Vector3(0.1245f, 0.032f, 0f);
             this.HomeYandere.transform.position     = new Vector3(1f, 0f, 0f);
             this.HomeYandere.transform.eulerAngles  = new Vector3(0f, 90f, 0f);
             this.HomeYandere.Character.GetComponent <Animation>().Play("f02_gaming_00");
             this.PromptBar.ClearButtons();
             this.PromptBar.Label[0].text = "Play";
             this.PromptBar.Label[1].text = "Back";
             this.PromptBar.Label[4].text = "Select";
             this.PromptBar.UpdateButtons();
             this.PromptBar.Show = true;
         }
         else if (this.ID == 6)
         {
             this.HomeSenpaiShrine.enabled = true;
             this.HomeYandere.gameObject.SetActive(false);
         }
         else if (this.ID == 7)
         {
             this.HomePantyChanger.enabled = true;
         }
         else if (this.ID == 9)
         {
             this.HomeManga.enabled = true;
         }
         else if (this.ID == 10)
         {
             this.PromptBar.ClearButtons();
             this.PromptBar.Label[0].text = "Accept";
             this.PromptBar.Label[1].text = "Back";
             this.PromptBar.UpdateButtons();
             this.PromptBar.Show = true;
             this.HomePrisoner.UpdateDesc();
             this.HomeYandere.gameObject.SetActive(false);
         }
         else if (this.ID == 12)
         {
             this.HomeAnime.enabled = true;
         }
     }
     if (this.Destination == this.Destinations[0])
     {
         this.Vignette.intensity           = ((this.HomeYandere.transform.position.y > -1f) ? Mathf.MoveTowards(this.Vignette.intensity, 1f, Time.deltaTime) : Mathf.MoveTowards(this.Vignette.intensity, 5f, Time.deltaTime * 5f));
         this.Vignette.chromaticAberration = Mathf.MoveTowards(this.Vignette.chromaticAberration, 1f, Time.deltaTime);
         this.Vignette.blur = Mathf.MoveTowards(this.Vignette.blur, 1f, Time.deltaTime);
     }
     else
     {
         this.Vignette.intensity           = ((this.HomeYandere.transform.position.y > -1f) ? Mathf.MoveTowards(this.Vignette.intensity, 0f, Time.deltaTime) : Mathf.MoveTowards(this.Vignette.intensity, 0f, Time.deltaTime * 5f));
         this.Vignette.chromaticAberration = Mathf.MoveTowards(this.Vignette.chromaticAberration, 0f, Time.deltaTime);
         this.Vignette.blur = Mathf.MoveTowards(this.Vignette.blur, 0f, Time.deltaTime);
     }
     this.Button.color = new Color(this.Button.color.r, this.Button.color.g, this.Button.color.b, Mathf.MoveTowards(this.Button.color.a, (this.ID > 0 && this.HomeYandere.CanMove) ? 1f : 0f, Time.deltaTime * 10f));
     if (this.HomeDarkness.FadeOut)
     {
         this.BasementJukebox.volume = Mathf.MoveTowards(this.BasementJukebox.volume, 0f, Time.deltaTime);
         this.RoomJukebox.volume     = Mathf.MoveTowards(this.RoomJukebox.volume, 0f, Time.deltaTime);
     }
     else if (this.HomeYandere.transform.position.y > -1f)
     {
         this.BasementJukebox.volume = Mathf.MoveTowards(this.BasementJukebox.volume, 0f, Time.deltaTime);
         this.RoomJukebox.volume     = Mathf.MoveTowards(this.RoomJukebox.volume, 0.5f, Time.deltaTime);
     }
     else if (!this.Torturing)
     {
         this.BasementJukebox.volume = Mathf.MoveTowards(this.BasementJukebox.volume, 0.5f, Time.deltaTime);
         this.RoomJukebox.volume     = Mathf.MoveTowards(this.RoomJukebox.volume, 0f, Time.deltaTime);
     }
     if (Input.GetKeyDown(KeyCode.Y))
     {
         TaskGlobals.SetTaskStatus(38, 1);
     }
     if (Input.GetKeyDown(KeyCode.M))
     {
         this.BasementJukebox.gameObject.SetActive(false);
         this.RoomJukebox.gameObject.SetActive(false);
     }
     if (Input.GetKeyDown(KeyCode.BackQuote))
     {
         HomeGlobals.Night = !HomeGlobals.Night;
         SceneManager.LoadScene(SceneManager.GetActiveScene().name);
     }
     if (Input.GetKeyDown(KeyCode.Equals))
     {
         Time.timeScale += 1f;
     }
     if (Input.GetKeyDown(KeyCode.Minus) && Time.timeScale > 1f)
     {
         Time.timeScale -= 1f;
     }
 }
 private void Update()
 {
     if (!this.MissionMode && !this.NoDebug)
     {
         if (!this.Yandere.InClass && !this.Yandere.Chased && this.Yandere.Chasers == 0 && this.Yandere.CanMove)
         {
             if (Input.GetKeyDown(KeyCode.Backslash) && this.Yandere.transform.position.y < 100f)
             {
                 this.EasterEggWindow.SetActive(false);
                 this.Window.SetActive(!this.Window.activeInHierarchy);
             }
         }
         else if (this.Window.activeInHierarchy)
         {
             this.Window.SetActive(false);
         }
         if (this.Window.activeInHierarchy)
         {
             if (Input.GetKeyDown(KeyCode.F1))
             {
                 StudentGlobals.FemaleUniform = 1;
                 StudentGlobals.MaleUniform   = 1;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F2))
             {
                 StudentGlobals.FemaleUniform = 2;
                 StudentGlobals.MaleUniform   = 2;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F3))
             {
                 StudentGlobals.FemaleUniform = 3;
                 StudentGlobals.MaleUniform   = 3;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F4))
             {
                 StudentGlobals.FemaleUniform = 4;
                 StudentGlobals.MaleUniform   = 4;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F5))
             {
                 StudentGlobals.FemaleUniform = 5;
                 StudentGlobals.MaleUniform   = 5;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F6))
             {
                 StudentGlobals.FemaleUniform = 6;
                 StudentGlobals.MaleUniform   = 6;
                 SceneManager.LoadScene("LoadingScene");
             }
             else if (Input.GetKeyDown(KeyCode.F7))
             {
                 this.ID = 1;
                 while (this.ID < 8)
                 {
                     this.StudentManager.DrinkingFountains[this.ID].PowerSwitch.PowerOutlet.SabotagedOutlet.SetActive(true);
                     this.StudentManager.DrinkingFountains[this.ID].Puddle.SetActive(true);
                     this.ID++;
                 }
                 this.Window.SetActive(false);
             }
             else if (Input.GetKeyDown(KeyCode.F8))
             {
                 GameGlobals.CensorBlood = !GameGlobals.CensorBlood;
                 this.WeaponManager.ChangeBloodTexture();
                 this.Yandere.Bloodiness += 0f;
                 this.Window.SetActive(false);
             }
             else if (Input.GetKeyDown(KeyCode.F9))
             {
                 this.Yandere.AttackManager.Censor = !this.Yandere.AttackManager.Censor;
                 this.Window.SetActive(false);
             }
             else if (Input.GetKeyDown(KeyCode.F10))
             {
                 this.StudentManager.Students[21].Attempts = 101;
                 this.StudentManager.Students[22].Attempts = 101;
                 this.StudentManager.Students[23].Attempts = 101;
                 this.StudentManager.Students[24].Attempts = 101;
                 this.StudentManager.Students[25].Attempts = 101;
                 this.Window.SetActive(false);
             }
             else if (!Input.GetKeyDown(KeyCode.F12))
             {
                 if (Input.GetKeyDown(KeyCode.Alpha1))
                 {
                     DateGlobals.Weekday = DayOfWeek.Monday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha2))
                 {
                     DateGlobals.Weekday = DayOfWeek.Tuesday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha3))
                 {
                     DateGlobals.Weekday = DayOfWeek.Wednesday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha4))
                 {
                     DateGlobals.Weekday = DayOfWeek.Thursday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha5))
                 {
                     DateGlobals.Weekday = DayOfWeek.Friday;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha6))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[1].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha7))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[2].position + new Vector3(0.75f, 0f, 0f);
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha8))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[3].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha9))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[4].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.Clock.PresentTime = 426f;
                     StudentScript studentScript = this.StudentManager.Students[30];
                     if (studentScript != null)
                     {
                         if (studentScript.Phase < 2)
                         {
                             studentScript.ShoeRemoval.Start();
                             studentScript.ShoeRemoval.PutOnShoes();
                             studentScript.CanTalk            = true;
                             studentScript.Phase              = 2;
                             studentScript.CurrentDestination = studentScript.Destinations[2];
                             studentScript.Pathfinding.target = studentScript.Destinations[2];
                         }
                         studentScript.transform.position = studentScript.Destinations[2].position;
                     }
                     StudentScript studentScript2 = this.StudentManager.Students[28];
                     if (studentScript2 != null)
                     {
                         studentScript2.ShoeRemoval.Start();
                         studentScript2.ShoeRemoval.PutOnShoes();
                         studentScript2.Phase = 2;
                         studentScript2.CurrentDestination = studentScript2.Destinations[2];
                         studentScript2.Pathfinding.target = studentScript2.Destinations[2];
                         studentScript2.transform.position = studentScript2.Destinations[2].position;
                     }
                     StudentScript studentScript3 = this.StudentManager.Students[39];
                     if (studentScript3 != null)
                     {
                         studentScript3.ShoeRemoval.Start();
                         studentScript3.ShoeRemoval.PutOnShoes();
                         studentScript3.Phase = 2;
                         studentScript3.ScheduleBlocks[2].action = "Stand";
                         studentScript3.GetDestinations();
                         studentScript3.CurrentDestination = this.MidoriSpot;
                         studentScript3.Pathfinding.target = this.MidoriSpot;
                         studentScript3.transform.position = this.MidoriSpot.position;
                     }
                     this.Window.SetActive(false);
                     Physics.SyncTransforms();
                 }
                 else if (Input.GetKeyDown(KeyCode.Alpha0))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[11].position;
                     if (this.Yandere.Followers > 0)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.Window.SetActive(false);
                     Physics.SyncTransforms();
                 }
                 else if (Input.GetKeyDown(KeyCode.A))
                 {
                     if (SchoolAtmosphere.Type == SchoolAtmosphereType.High)
                     {
                         SchoolGlobals.SchoolAtmosphere = 0.5f;
                     }
                     else if (SchoolAtmosphere.Type == SchoolAtmosphereType.Medium)
                     {
                         SchoolGlobals.SchoolAtmosphere = 0f;
                     }
                     else
                     {
                         SchoolGlobals.SchoolAtmosphere = 1f;
                     }
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.C))
                 {
                     this.ID = 1;
                     while (this.ID < 11)
                     {
                         CollectibleGlobals.SetTapeCollected(this.ID, true);
                         this.ID++;
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.D))
                 {
                     this.ID = 0;
                     while (this.ID < 5)
                     {
                         StudentScript studentScript4 = this.StudentManager.Students[76 + this.ID];
                         if (studentScript4 != null)
                         {
                             if (studentScript4.Phase < 2)
                             {
                                 studentScript4.ShoeRemoval.Start();
                                 studentScript4.ShoeRemoval.PutOnShoes();
                                 studentScript4.Phase = 2;
                                 studentScript4.CurrentDestination = studentScript4.Destinations[2];
                                 studentScript4.Pathfinding.target = studentScript4.Destinations[2];
                             }
                             studentScript4.transform.position = studentScript4.Destinations[2].position;
                         }
                         this.ID++;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.F))
                 {
                     this.GreenScreen.SetActive(true);
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.G))
                 {
                     StudentScript studentScript5 = this.StudentManager.Students[this.RooftopStudent];
                     if (this.Clock.HourTime < 15f)
                     {
                         PlayerGlobals.SetStudentFriend(this.RooftopStudent, true);
                         this.Yandere.transform.position = this.RooftopSpot.position + new Vector3(1f, 0f, 0f);
                         this.WeaponManager.Weapons[6].transform.position = this.Yandere.transform.position + new Vector3(0f, 0f, 1.915f);
                         if (studentScript5 != null)
                         {
                             this.StudentManager.OfferHelp.UpdateLocation();
                             this.StudentManager.OfferHelp.enabled = true;
                             if (!studentScript5.Indoors)
                             {
                                 if (studentScript5.ShoeRemoval.Locker == null)
                                 {
                                     studentScript5.ShoeRemoval.Start();
                                 }
                                 studentScript5.ShoeRemoval.PutOnShoes();
                             }
                             studentScript5.CharacterAnimation.Play(studentScript5.IdleAnim);
                             studentScript5.transform.position    = this.RooftopSpot.position;
                             studentScript5.transform.rotation    = this.RooftopSpot.rotation;
                             studentScript5.Prompt.Label[0].text  = "     Push";
                             studentScript5.CurrentDestination    = this.RooftopSpot;
                             studentScript5.Pathfinding.target    = this.RooftopSpot;
                             studentScript5.Pathfinding.canSearch = false;
                             studentScript5.Pathfinding.canMove   = false;
                             studentScript5.SpeechLines.Stop();
                             studentScript5.Pushable = true;
                             studentScript5.Routine  = false;
                             studentScript5.Meeting  = true;
                             studentScript5.MeetTime = 0f;
                         }
                         if (this.Clock.HourTime < 7.1f)
                         {
                             this.Clock.PresentTime = 426f;
                         }
                     }
                     else
                     {
                         this.Clock.PresentTime            = 960f;
                         studentScript5.transform.position = this.Lockers.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.K))
                 {
                     SchoolGlobals.KidnapVictim  = 25;
                     StudentGlobals.StudentSlave = 25;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.L))
                 {
                     SchemeGlobals.SetSchemeStage(1, 2);
                     EventGlobals.Event1 = true;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.M))
                 {
                     PlayerGlobals.Money          = 100f;
                     this.Yandere.Inventory.Money = 100f;
                     this.Yandere.Inventory.UpdateMoney();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.O))
                 {
                     this.Yandere.Inventory.RivalPhone = true;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.P))
                 {
                     this.ID = 2;
                     while (this.ID < 93)
                     {
                         StudentScript studentScript6 = this.StudentManager.Students[this.ID];
                         if (studentScript6 != null)
                         {
                             studentScript6.Patience = 999;
                             studentScript6.Pestered = -999;
                             studentScript6.Ignoring = false;
                         }
                         this.ID++;
                     }
                     this.Yandere.Inventory.PantyShots += 20;
                     PlayerGlobals.PantyShots          += 20;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Q))
                 {
                     this.Censor();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.R))
                 {
                     if (PlayerGlobals.Reputation == -100f)
                     {
                         PlayerGlobals.Reputation = -66.66666f;
                     }
                     else if (PlayerGlobals.Reputation == -66.66666f)
                     {
                         PlayerGlobals.Reputation = 0f;
                     }
                     else if (PlayerGlobals.Reputation == 0f)
                     {
                         PlayerGlobals.Reputation = 66.66666f;
                     }
                     else if (PlayerGlobals.Reputation == 66.66666f)
                     {
                         PlayerGlobals.Reputation = 100f;
                     }
                     else if (PlayerGlobals.Reputation == 100f)
                     {
                         PlayerGlobals.Reputation = -100f;
                     }
                     this.Reputation.Reputation = PlayerGlobals.Reputation;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.S))
                 {
                     this.Yandere.Class.PhysicalGrade = 5;
                     this.Yandere.Class.Seduction     = 5;
                     this.StudentManager.Police.UpdateCorpses();
                     this.ID = 1;
                     while (this.ID < 101)
                     {
                         StudentGlobals.SetStudentPhotographed(this.ID, true);
                         this.ID++;
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.T))
                 {
                     this.Zoom.OverShoulder = !this.Zoom.OverShoulder;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.U))
                 {
                     PlayerGlobals.SetStudentFriend(28, true);
                     PlayerGlobals.SetStudentFriend(30, true);
                     this.ID = 1;
                     while (this.ID < 26)
                     {
                         ConversationGlobals.SetTopicLearnedByStudent(this.ID, 30, true);
                         ConversationGlobals.SetTopicDiscovered(this.ID, true);
                         this.ID++;
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Z))
                 {
                     this.Yandere.Police.Invalid = true;
                     if (Input.GetKey(KeyCode.LeftShift))
                     {
                         this.ID = 2;
                         while (this.ID < 93)
                         {
                             this.StudentManager.Students[this.ID] != null;
                             this.ID++;
                         }
                     }
                     else
                     {
                         this.ID = 2;
                         while (this.ID < 101)
                         {
                             StudentScript studentScript7 = this.StudentManager.Students[this.ID];
                             if (studentScript7 != null)
                             {
                                 studentScript7.SpawnAlarmDisc();
                                 studentScript7.BecomeRagdoll();
                                 studentScript7.DeathType = DeathType.EasterEgg;
                             }
                             this.ID++;
                         }
                     }
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.X))
                 {
                     TaskGlobals.SetTaskStatus(36, 3);
                     SchoolGlobals.ReactedToGameLeader = false;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Backspace))
                 {
                     Time.timeScale         = 1f;
                     this.Clock.PresentTime = 1079f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.BackQuote))
                 {
                     Globals.DeleteAll();
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.Space))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[5].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     for (int i = 46; i < 51; i++)
                     {
                         if (this.StudentManager.Students[i] != null)
                         {
                             this.StudentManager.Students[i].transform.position = this.TeleportSpot[5].position;
                             if (!this.StudentManager.Students[i].Indoors)
                             {
                                 if (this.StudentManager.Students[i].ShoeRemoval.Locker == null)
                                 {
                                     this.StudentManager.Students[i].ShoeRemoval.Start();
                                 }
                                 this.StudentManager.Students[i].ShoeRemoval.PutOnShoes();
                             }
                         }
                     }
                     this.Clock.PresentTime = 1015f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     this.Window.SetActive(false);
                     this.OsanaEvent1.enabled = false;
                     this.OsanaEvent2.enabled = false;
                     this.OsanaEvent3.enabled = false;
                     Physics.SyncTransforms();
                 }
                 else if (Input.GetKeyDown(KeyCode.LeftAlt))
                 {
                     this.Turtle.SpawnWeapons();
                     this.Yandere.transform.position = this.TeleportSpot[6].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.Clock.PresentTime = 425f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.LeftControl))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[7].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.RightControl))
                 {
                     this.Yandere.transform.position = this.TeleportSpot[8].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Equals))
                 {
                     this.Clock.PresentTime += 10f;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Return))
                 {
                     this.Yandere.transform.eulerAngles = this.TeleportSpot[10].eulerAngles;
                     this.Yandere.transform.position    = this.TeleportSpot[10].position;
                     if (this.Yandere.Follower != null)
                     {
                         this.Yandere.Follower.transform.position = this.Yandere.transform.position;
                     }
                     this.StudentManager.Students[1].ShoeRemoval.Start();
                     this.StudentManager.Students[1].ShoeRemoval.PutOnShoes();
                     this.StudentManager.Students[1].transform.position = new Vector3(0f, 12.1f, -25f);
                     this.StudentManager.Students[1].Alarmed            = true;
                     this.StudentManager.Students[11].Lethal            = true;
                     this.StudentManager.Students[11].ShoeRemoval.Start();
                     this.StudentManager.Students[11].ShoeRemoval.PutOnShoes();
                     this.StudentManager.Students[11].transform.position = new Vector3(0f, 12.1f, -25f);
                     this.Clock.PresentTime = 780f;
                     this.Clock.HourTime    = this.Clock.PresentTime / 60f;
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.B))
                 {
                     this.Yandere.Inventory.Headset = true;
                     this.StudentManager.LoveManager.SuitorProgress = 1;
                     DatingGlobals.SuitorProgress = 1;
                     PlayerGlobals.SetStudentFriend(6, true);
                     PlayerGlobals.SetStudentFriend(11, true);
                     for (int j = 0; j < 11; j++)
                     {
                         DatingGlobals.SetComplimentGiven(j, false);
                     }
                     this.ID = 1;
                     while (this.ID < 26)
                     {
                         ConversationGlobals.SetTopicLearnedByStudent(this.ID, 11, true);
                         ConversationGlobals.SetTopicDiscovered(this.ID, true);
                         this.ID++;
                     }
                     StudentScript studentScript8 = this.StudentManager.Students[11];
                     if (studentScript8 != null)
                     {
                         studentScript8.ShoeRemoval.Start();
                         studentScript8.ShoeRemoval.PutOnShoes();
                         studentScript8.CanTalk            = true;
                         studentScript8.Phase              = 2;
                         studentScript8.Pestered           = 0;
                         studentScript8.Patience           = 999;
                         studentScript8.Ignoring           = false;
                         studentScript8.CurrentDestination = studentScript8.Destinations[2];
                         studentScript8.Pathfinding.target = studentScript8.Destinations[2];
                         studentScript8.transform.position = studentScript8.Destinations[2].position;
                     }
                     StudentScript studentScript9 = this.StudentManager.Students[6];
                     if (studentScript9 != null)
                     {
                         studentScript9.ShoeRemoval.Start();
                         studentScript9.ShoeRemoval.PutOnShoes();
                         studentScript9.Phase              = 2;
                         studentScript9.Pestered           = 0;
                         studentScript9.Patience           = 999;
                         studentScript9.Ignoring           = false;
                         studentScript9.CurrentDestination = studentScript9.Destinations[2];
                         studentScript9.Pathfinding.target = studentScript9.Destinations[2];
                         studentScript9.transform.position = studentScript9.Destinations[2].position;
                     }
                     StudentScript studentScript10 = this.StudentManager.Students[10];
                     if (studentScript9 != null)
                     {
                         studentScript9.transform.position = studentScript8.transform.position;
                     }
                     CollectibleGlobals.SetGiftPurchased(6, true);
                     CollectibleGlobals.SetGiftPurchased(7, true);
                     CollectibleGlobals.SetGiftPurchased(8, true);
                     CollectibleGlobals.SetGiftPurchased(9, true);
                     Physics.SyncTransforms();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.Pause))
                 {
                     this.Clock.StopTime = !this.Clock.StopTime;
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.W))
                 {
                     this.StudentManager.ToggleBookBags();
                     this.Window.SetActive(false);
                 }
                 else if (Input.GetKeyDown(KeyCode.H))
                 {
                     StudentGlobals.FragileSlave  = 5;
                     StudentGlobals.FragileTarget = 31;
                     SceneManager.LoadScene("LoadingScene");
                 }
                 else if (Input.GetKeyDown(KeyCode.I))
                 {
                     this.StudentManager.Students[3].BecomeRagdoll();
                     this.WeaponManager.Weapons[1].Blood.enabled = true;
                     this.WeaponManager.Weapons[1].FingerprintID = 2;
                     this.WeaponManager.Weapons[1].Victims[3]    = true;
                     this.StudentManager.Students[5].BecomeRagdoll();
                     this.WeaponManager.Weapons[2].Blood.enabled = true;
                     this.WeaponManager.Weapons[2].FingerprintID = 4;
                     this.WeaponManager.Weapons[2].Victims[5]    = true;
                 }
                 else if (!Input.GetKeyDown(KeyCode.J))
                 {
                     if (Input.GetKeyDown(KeyCode.V))
                     {
                         this.StudentManager.LoveManager.ConfessToSuitor = true;
                         this.StudentManager.DatingMinigame.Affection    = 100f;
                         DateGlobals.Weekday = DayOfWeek.Friday;
                         this.Window.SetActive(false);
                     }
                     else if (Input.GetKeyDown(KeyCode.N))
                     {
                         this.ElectrocutionKit[0].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[1].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[2].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[3].transform.position = this.Yandere.transform.position;
                         this.ElectrocutionKit[3].SetActive(true);
                     }
                 }
             }
             if (Input.GetKeyDown(KeyCode.Tab))
             {
                 DatingGlobals.SuitorProgress = 2;
                 SceneManager.LoadScene("LoadingScene");
             }
             if (Input.GetKeyDown(KeyCode.CapsLock))
             {
                 this.StudentManager.LoveManager.ConfessToSuitor = true;
             }
         }
         else
         {
             if (Input.GetKey(KeyCode.BackQuote))
             {
                 this.Timer += Time.deltaTime;
                 if (this.Timer > 1f)
                 {
                     this.ID = 0;
                     while (this.ID < this.StudentManager.NPCsTotal)
                     {
                         if (StudentGlobals.GetStudentDying(this.ID))
                         {
                             StudentGlobals.SetStudentDying(this.ID, false);
                         }
                         this.ID++;
                     }
                     SceneManager.LoadScene("LoadingScene");
                 }
             }
             if (Input.GetKeyUp(KeyCode.BackQuote))
             {
                 this.Timer = 0f;
             }
         }
         if (this.TryNextFrame)
         {
             this.UpdateCensor();
         }
     }
     else
     {
         if (Input.GetKeyDown(KeyCode.Backslash))
         {
             this.MissionModeWindow.SetActive(!this.MissionModeWindow.activeInHierarchy);
             this.DebugInputs++;
         }
         if (this.MissionModeWindow.activeInHierarchy)
         {
             if (Input.GetKeyDown(KeyCode.Alpha1))
             {
                 this.Censor();
             }
             if (Input.GetKeyDown(KeyCode.Alpha2))
             {
                 GameGlobals.CensorBlood = !GameGlobals.CensorBlood;
                 this.WeaponManager.ChangeBloodTexture();
                 this.Yandere.Bloodiness += 0f;
             }
             if (Input.GetKeyDown(KeyCode.Alpha3))
             {
                 this.Yandere.AttackManager.Censor = !this.Yandere.AttackManager.Censor;
             }
         }
     }
     if (this.WaitingForNumber)
     {
         if (Input.GetKey("1"))
         {
             Debug.Log("Going to class should trigger panty shot lecture.");
             SchemeGlobals.SetSchemeStage(1, 100);
             StudentGlobals.ExpelProgress          = 0;
             this.Counselor.CutsceneManager.Scheme = 1;
             this.Counselor.LectureID = 1;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("2"))
         {
             Debug.Log("Going to class should trigger theft lecture.");
             SchemeGlobals.SetSchemeStage(2, 100);
             StudentGlobals.ExpelProgress          = 1;
             this.Counselor.CutsceneManager.Scheme = 2;
             this.Counselor.LectureID = 2;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("3"))
         {
             Debug.Log("Going to class should trigger contraband lecture.");
             SchemeGlobals.SetSchemeStage(3, 100);
             StudentGlobals.ExpelProgress          = 2;
             this.Counselor.CutsceneManager.Scheme = 3;
             this.Counselor.LectureID = 3;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("4"))
         {
             Debug.Log("Going to class should trigger Vandalism lecture.");
             SchemeGlobals.SetSchemeStage(4, 100);
             StudentGlobals.ExpelProgress          = 3;
             this.Counselor.CutsceneManager.Scheme = 4;
             this.Counselor.LectureID = 4;
             this.WaitingForNumber    = false;
             return;
         }
         if (Input.GetKey("5"))
         {
             Debug.Log("Going to class at lunchtime should get Osana expelled!");
             SchemeGlobals.SetSchemeStage(5, 100);
             StudentGlobals.ExpelProgress          = 4;
             this.Counselor.CutsceneManager.Scheme = 5;
             this.Counselor.LectureID = 5;
             this.WaitingForNumber    = false;
         }
     }
 }
 private void Update()
 {
     if (this.Check)
     {
         if (this.Yandere.PickUp != null)
         {
             if (this.Yandere.PickUp.Clothing && this.Yandere.PickUp.GetComponent <FoldedUniformScript>().Clean&& this.Yandere.PickUp.GetComponent <FoldedUniformScript>().Type == 1 && this.Yandere.PickUp.gameObject.GetComponent <FoldedUniformScript>().Type == 1)
             {
                 this.Prompt.enabled = true;
             }
         }
         else
         {
             this.Prompt.Hide();
             this.Prompt.enabled = false;
         }
     }
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         this.Prompt.Circle[0].fillAmount = 1f;
         if (!this.Yandere.Chased && this.Yandere.Chasers == 0)
         {
             this.Yandere.Character.GetComponent <Animation>().CrossFade("f02_sewing_00");
             this.Yandere.MyController.radius = 0.1f;
             this.Yandere.CanMove             = false;
             this.Chair.enabled = false;
             this.Sewing        = true;
             base.GetComponent <AudioSource>().Play();
             this.Uniform = this.Yandere.PickUp;
             this.Yandere.EmptyHands();
             this.Uniform.transform.parent           = this.Yandere.RightHand;
             this.Uniform.transform.localPosition    = new Vector3(0f, 0f, 0.09f);
             this.Uniform.transform.localEulerAngles = new Vector3(0f, 0f, 0f);
             this.Uniform.MyRigidbody.useGravity     = false;
             this.Uniform.MyCollider.enabled         = false;
         }
     }
     if (this.Sewing)
     {
         this.Timer += Time.deltaTime;
         if (this.Timer < 5f)
         {
             this.targetRotation             = Quaternion.LookRotation(base.transform.parent.transform.parent.position - this.Yandere.transform.position);
             this.Yandere.transform.rotation = Quaternion.Slerp(this.Yandere.transform.rotation, this.targetRotation, Time.deltaTime * 10f);
             this.Yandere.MoveTowardsTarget(this.Chair.transform.position);
             return;
         }
         if (!this.MoveAway)
         {
             this.Yandere.Character.GetComponent <Animation>().CrossFade(this.Yandere.IdleAnim);
             this.Yandere.Inventory.ModifiedUniform     = true;
             this.StudentManager.Students[30].TaskPhase = 5;
             TaskGlobals.SetTaskStatus(30, 2);
             UnityEngine.Object.Destroy(this.Uniform.gameObject);
             this.MoveAway = true;
             this.Check    = false;
             return;
         }
         this.Yandere.MoveTowardsTarget(this.Chair.gameObject.transform.position + new Vector3(-0.5f, 0f, 0f));
         if (this.Timer > 6f)
         {
             this.Yandere.MyController.radius = 0.2f;
             this.Yandere.CanMove             = true;
             this.Chair.enabled = true;
             base.enabled       = false;
             this.Sewing        = false;
             this.Prompt.Hide();
             this.Prompt.enabled = false;
         }
     }
 }
 // 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: 0x06001C11 RID: 7185 RVA: 0x0014EE04 File Offset: 0x0014D004
 public void UpdateTaskStatus()
 {
     if (TaskGlobals.GetTaskStatus(8) == 1 && this.StudentManager.Students[8] != null)
     {
         if (this.StudentManager.Students[8].TaskPhase == 0)
         {
             this.StudentManager.Students[8].TaskPhase = 4;
         }
         if (this.Yandere.Inventory.Soda)
         {
             this.StudentManager.Students[8].TaskPhase = 5;
         }
     }
     if (TaskGlobals.GetTaskStatus(11) == 1)
     {
         if (this.StudentManager.Students[11] != null)
         {
             if (this.StudentManager.Students[11].TaskPhase == 0)
             {
                 this.StudentManager.Students[11].TaskPhase = 4;
             }
             this.TaskObjects[11].SetActive(true);
         }
     }
     else if (this.TaskObjects[11] != null)
     {
         this.TaskObjects[11].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(25) == 1)
     {
         if (this.StudentManager.Students[25] != null)
         {
             if (this.StudentManager.Students[25].TaskPhase == 0)
             {
                 this.StudentManager.Students[25].TaskPhase = 4;
             }
             this.TaskObjects[25].SetActive(true);
         }
     }
     else if (this.TaskObjects[25] != null)
     {
         this.TaskObjects[25].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(28) == 1 && this.StudentManager.Students[28] != null)
     {
         if (this.StudentManager.Students[28].TaskPhase == 0)
         {
             this.StudentManager.Students[28].TaskPhase = 4;
         }
         for (int i = 1; i < 26; i++)
         {
             if (TaskGlobals.GetKittenPhoto(i))
             {
                 Debug.Log("Riku's Task can be turned in.");
                 this.StudentManager.Students[28].TaskPhase = 5;
             }
         }
     }
     if (TaskGlobals.GetTaskStatus(30) == 1 && this.StudentManager.Students[30] != null && this.StudentManager.Students[30].TaskPhase == 0)
     {
         this.StudentManager.Students[30].TaskPhase = 4;
     }
     if (TaskGlobals.GetTaskStatus(36) == 1 && this.StudentManager.Students[36] != null)
     {
         if (this.StudentManager.Students[36].TaskPhase == 0)
         {
             this.StudentManager.Students[36].TaskPhase = 4;
         }
         if (this.GirlsQuestioned[1] && this.GirlsQuestioned[2] && this.GirlsQuestioned[3] && this.GirlsQuestioned[4] && this.GirlsQuestioned[5])
         {
             Debug.Log("Gema's task should be ready to turn in!");
             this.StudentManager.Students[36].TaskPhase = 5;
         }
     }
     if (TaskGlobals.GetTaskStatus(37) == 1)
     {
         if (this.StudentManager.Students[37] != null)
         {
             if (this.StudentManager.Students[37].TaskPhase == 0)
             {
                 this.StudentManager.Students[37].TaskPhase = 4;
             }
             this.TaskObjects[37].SetActive(true);
         }
     }
     else if (this.TaskObjects[37] != null)
     {
         this.TaskObjects[37].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(38) == 1)
     {
         if (this.StudentManager.Students[38] != null && this.StudentManager.Students[38].TaskPhase == 0)
         {
             this.StudentManager.Students[38].TaskPhase = 4;
         }
     }
     else if (TaskGlobals.GetTaskStatus(38) == 2 && this.StudentManager.Students[38] != null)
     {
         this.StudentManager.Students[38].TaskPhase = 5;
     }
     if (ClubGlobals.GetClubClosed(ClubType.LightMusic) || this.StudentManager.Students[51] == null)
     {
         if (this.StudentManager.Students[52] != null)
         {
             this.StudentManager.Students[52].TaskPhase = 100;
         }
         TaskGlobals.SetTaskStatus(52, 100);
     }
     else if (TaskGlobals.GetTaskStatus(52) == 1 && this.StudentManager.Students[52] != null)
     {
         this.StudentManager.Students[52].TaskPhase = 4;
         for (int j = 1; j < 52; j++)
         {
             if (TaskGlobals.GetGuitarPhoto(j))
             {
                 this.StudentManager.Students[52].TaskPhase = 5;
             }
         }
     }
     if (TaskGlobals.GetTaskStatus(81) == 1 && this.StudentManager.Students[81] != null)
     {
         if (this.StudentManager.Students[81].TaskPhase == 0)
         {
             this.StudentManager.Students[81].TaskPhase = 4;
         }
         for (int k = 1; k < 26; k++)
         {
             if (TaskGlobals.GetHorudaPhoto(k))
             {
                 Debug.Log("Musume's Task can be turned in.");
                 this.StudentManager.Students[81].TaskPhase = 5;
             }
         }
     }
     TaskGlobals.GetTaskStatus(81);
 }
 // Token: 0x0600079E RID: 1950 RVA: 0x0007429C File Offset: 0x0007269C
 private void Update()
 {
     if (this.Snapping)
     {
         if (this.Close)
         {
             this.currentPercent += 40f * Time.unscaledDeltaTime;
             while (this.currentPercent >= 1f)
             {
                 this.Frame           = Mathf.Min(this.Frame + 1, 8);
                 this.currentPercent -= 1f;
             }
             this.Sprite.spriteName = "Shutter" + this.Frame.ToString();
             if (this.Frame == 8)
             {
                 this.StudentManager.GhostChan.gameObject.SetActive(true);
                 this.StudentManager.GhostChan.Look();
                 this.CheckPhoto();
                 this.SmartphoneCamera.targetTexture = null;
                 this.Yandere.PhonePromptBar.Show    = false;
                 this.NotificationManager.SetActive(false);
                 this.HeartbeatCamera.SetActive(false);
                 this.MainCamera.enabled = false;
                 this.PhotoIcons.SetActive(true);
                 this.SubPanel.SetActive(false);
                 this.Panel.SetActive(false);
                 this.Close = false;
                 this.PromptBar.ClearButtons();
                 this.PromptBar.Label[0].text = "Save";
                 this.PromptBar.Label[1].text = "Delete";
                 if (!this.Yandere.RivalPhone)
                 {
                     this.PromptBar.Label[2].text = "Send";
                 }
                 this.PromptBar.UpdateButtons();
                 this.PromptBar.Show = true;
                 Time.timeScale      = 0f;
             }
         }
         else
         {
             this.currentPercent += 40f * Time.unscaledDeltaTime;
             while (this.currentPercent >= 1f)
             {
                 this.Frame           = Mathf.Max(this.Frame - 1, 1);
                 this.currentPercent -= 1f;
             }
             this.Sprite.spriteName = "Shutter" + this.Frame.ToString();
             if (this.Frame == 1)
             {
                 this.Sprite.color = new Color(this.Sprite.color.r, this.Sprite.color.g, this.Sprite.color.b, 0f);
                 this.Snapping     = false;
             }
         }
     }
     else if (this.Yandere.Aiming)
     {
         this.TargetStudent = 0;
         this.Timer        += Time.deltaTime;
         if (this.Timer > 0.5f)
         {
             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 == "Face")
                 {
                     GameObject gameObject = this.hit.collider.gameObject.transform.root.gameObject;
                     this.FaceStudent = gameObject.GetComponent <StudentScript>();
                     if (this.FaceStudent != null)
                     {
                         this.TargetStudent = this.FaceStudent.StudentID;
                         if (this.TargetStudent > 1)
                         {
                             this.ReactionDistance = 1.66666f;
                         }
                         else
                         {
                             this.ReactionDistance = this.FaceStudent.VisionDistance;
                         }
                         if (!this.FaceStudent.Alarmed && !this.FaceStudent.Distracted && !this.FaceStudent.InEvent && !this.FaceStudent.Wet && this.FaceStudent.Schoolwear > 0 && !this.FaceStudent.Fleeing && !this.FaceStudent.Following && !this.FaceStudent.ShoeRemoval.enabled && !this.FaceStudent.HoldingHands && this.FaceStudent.Actions[this.FaceStudent.Phase] != StudentActionType.Mourn && !this.FaceStudent.Guarding && Vector3.Distance(this.Yandere.transform.position, gameObject.transform.position) < this.ReactionDistance && this.FaceStudent.CanSeeObject(this.Yandere.gameObject, this.Yandere.transform.position + Vector3.up))
                         {
                             if (this.MissionMode)
                             {
                                 this.PenaltyTimer += Time.deltaTime;
                                 if (this.PenaltyTimer > 1f)
                                 {
                                     this.FaceStudent.Reputation.PendingRep -= -10f;
                                     this.PenaltyTimer = 0f;
                                 }
                             }
                             if (!this.FaceStudent.CameraReacting)
                             {
                                 if (this.FaceStudent.enabled && !this.FaceStudent.Stop)
                                 {
                                     if (this.FaceStudent.PhotoPatience > 0f)
                                     {
                                         if (this.FaceStudent.StudentID > 1)
                                         {
                                             if (this.Yandere.Bloodiness > 0f || (double)this.Yandere.Sanity < 33.33333)
                                             {
                                                 this.FaceStudent.Alarm += 200f;
                                             }
                                             else
                                             {
                                                 this.FaceStudent.CameraReact();
                                             }
                                         }
                                         else
                                         {
                                             this.FaceStudent.Alarm         += Time.deltaTime * (100f / this.FaceStudent.DistanceToPlayer) * this.FaceStudent.Paranoia * this.FaceStudent.Perception * this.FaceStudent.DistanceToPlayer * 2f;
                                             this.FaceStudent.YandereVisible = true;
                                         }
                                     }
                                     else
                                     {
                                         this.Penalize();
                                     }
                                 }
                             }
                             else
                             {
                                 this.FaceStudent.PhotoPatience = Mathf.MoveTowards(this.FaceStudent.PhotoPatience, 0f, Time.deltaTime);
                                 if (this.FaceStudent.PhotoPatience > 0f)
                                 {
                                     this.FaceStudent.CameraPoseTimer = 1f;
                                 }
                             }
                         }
                     }
                 }
                 else if (this.hit.collider.gameObject.name == "Panties" || this.hit.collider.gameObject.name == "Skirt")
                 {
                     GameObject gameObject2 = this.hit.collider.gameObject.transform.root.gameObject;
                     if (Physics.Raycast(this.SmartphoneCamera.transform.position, this.SmartphoneCamera.transform.TransformDirection(Vector3.forward), out this.hit, float.PositiveInfinity, this.OnlyCharacters))
                     {
                         if (Vector3.Distance(this.Yandere.transform.position, gameObject2.transform.position) < 5f)
                         {
                             if (this.hit.collider.gameObject == gameObject2)
                             {
                                 if (!this.Yandere.Lewd)
                                 {
                                     this.Yandere.NotificationManager.DisplayNotification(NotificationType.Lewd);
                                 }
                                 this.Yandere.Lewd = true;
                             }
                             else
                             {
                                 this.Yandere.Lewd = false;
                             }
                         }
                         else
                         {
                             this.Yandere.Lewd = false;
                         }
                     }
                 }
                 else
                 {
                     this.Yandere.Lewd = false;
                 }
             }
             else
             {
                 this.Yandere.Lewd = false;
             }
         }
     }
     else
     {
         this.Timer = 0f;
     }
     if (this.TookPhoto)
     {
         this.ResumeGameplay();
     }
     if (!this.DisplayError)
     {
         if (this.PhotoIcons.activeInHierarchy && !this.Snapping && !this.TextMessages.gameObject.activeInHierarchy)
         {
             if (Input.GetButtonDown("A"))
             {
                 if (!this.Yandere.RivalPhone)
                 {
                     bool flag = !this.SenpaiX.activeInHierarchy;
                     this.PromptBar.transform.localPosition = new Vector3(this.PromptBar.transform.localPosition.x, -627f, this.PromptBar.transform.localPosition.z);
                     this.PromptBar.ClearButtons();
                     this.PromptBar.Show = false;
                     this.PhotoIcons.SetActive(false);
                     this.ID        = 0;
                     this.FreeSpace = false;
                     while (this.ID < 26)
                     {
                         this.ID++;
                         if (!PlayerGlobals.GetPhoto(this.ID))
                         {
                             this.FreeSpace = true;
                             this.Slot      = this.ID;
                             this.ID        = 26;
                         }
                     }
                     if (this.FreeSpace)
                     {
                         Application.CaptureScreenshot(Application.streamingAssetsPath + "/Photographs/Photo_" + this.Slot.ToString() + ".png");
                         this.TookPhoto = true;
                         Debug.Log("Setting Photo " + this.Slot + " to ''true''.");
                         PlayerGlobals.SetPhoto(this.Slot, true);
                         if (flag)
                         {
                             PlayerGlobals.SetSenpaiPhoto(this.Slot, true);
                         }
                         if (this.KittenShot)
                         {
                             TaskGlobals.SetKittenPhoto(this.Slot, true);
                             this.TaskManager.UpdateTaskStatus();
                         }
                     }
                     else
                     {
                         this.DisplayError = true;
                     }
                 }
                 else if (!this.PantiesX.activeInHierarchy)
                 {
                     this.StudentManager.CommunalLocker.RivalPhone.LewdPhotos = true;
                     SchemeGlobals.SetSchemeStage(4, 3);
                     this.Schemes.UpdateInstructions();
                     this.ResumeGameplay();
                 }
             }
             if (!this.Yandere.RivalPhone && Input.GetButtonDown("X"))
             {
                 this.Panel.SetActive(true);
                 this.MainMenu.SetActive(false);
                 this.PauseScreen.Show          = true;
                 this.PauseScreen.Panel.enabled = true;
                 this.PromptBar.ClearButtons();
                 this.PromptBar.Label[1].text = "Exit";
                 this.PromptBar.Label[3].text = "Interests";
                 this.PromptBar.UpdateButtons();
                 if (!this.InfoX.activeInHierarchy)
                 {
                     this.PauseScreen.Sideways = true;
                     StudentGlobals.SetStudentPhotographed(this.Student.StudentID, true);
                     this.ID = 0;
                     while (this.ID < this.Student.Outlines.Length)
                     {
                         this.Student.Outlines[this.ID].enabled = true;
                         this.ID++;
                     }
                     this.StudentInfo.UpdateInfo(this.Student.StudentID);
                     this.StudentInfo.gameObject.SetActive(true);
                 }
                 else if (!this.TextMessages.gameObject.activeInHierarchy)
                 {
                     this.PauseScreen.Sideways = false;
                     this.TextMessages.gameObject.SetActive(true);
                     this.SpawnMessage();
                 }
             }
             if (Input.GetButtonDown("B"))
             {
                 this.ResumeGameplay();
             }
         }
         else if (this.PhotoIcons.activeInHierarchy && Input.GetButtonDown("B"))
         {
             this.ResumeGameplay();
         }
     }
     else
     {
         float t = Time.unscaledDeltaTime * 10f;
         this.ErrorWindow.transform.localScale = Vector3.Lerp(this.ErrorWindow.transform.localScale, new Vector3(1f, 1f, 1f), t);
         if (Input.GetButtonDown("A"))
         {
             this.ResumeGameplay();
         }
     }
 }
Beispiel #30
0
    // Token: 0x06000650 RID: 1616 RVA: 0x0005A1DC File Offset: 0x000585DC
    private void UpdatePhotoSelection()
    {
        if (Input.GetButtonDown("A"))
        {
            UITexture uitexture = this.Photographs[this.CurrentIndex];
            if (uitexture.mainTexture != this.NoPhoto)
            {
                this.ViewPhoto.mainTexture          = uitexture.mainTexture;
                this.ViewPhoto.transform.position   = uitexture.transform.position;
                this.ViewPhoto.transform.localScale = uitexture.transform.localScale;
                this.Destination.position           = uitexture.transform.position;
                this.Viewing = true;
                if (!this.Corkboard)
                {
                    for (int i = 1; i < 26; i++)
                    {
                        this.Hearts[i].gameObject.SetActive(false);
                    }
                }
                this.CanAdjust = false;
            }
            this.UpdateButtonPrompts();
        }
        if (Input.GetButtonDown("B"))
        {
            this.PromptBar.ClearButtons();
            this.PromptBar.Label[0].text = "Accept";
            this.PromptBar.Label[1].text = "Exit";
            this.PromptBar.Label[4].text = "Choose";
            this.PromptBar.Label[5].text = "Choose";
            this.PromptBar.UpdateButtons();
            this.PauseScreen.MainMenu.SetActive(true);
            this.PauseScreen.Sideways = false;
            this.PauseScreen.PressedB = true;
            base.gameObject.SetActive(false);
            this.UpdateButtonPrompts();
        }
        if (Input.GetButtonDown("X"))
        {
            this.ViewPhoto.mainTexture = null;
            int currentIndex = this.CurrentIndex;
            if (this.Photographs[currentIndex].mainTexture != this.NoPhoto)
            {
                this.Photographs[currentIndex].mainTexture = this.NoPhoto;
                PlayerGlobals.SetPhoto(currentIndex, false);
                PlayerGlobals.SetSenpaiPhoto(currentIndex, false);
                TaskGlobals.SetKittenPhoto(currentIndex, false);
                this.Hearts[currentIndex].gameObject.SetActive(false);
                this.TaskManager.UpdateTaskStatus();
            }
            this.UpdateButtonPrompts();
        }
        if (this.Corkboard)
        {
            if (Input.GetButtonDown("Y"))
            {
                this.CanAdjust = false;
                this.Cursor.gameObject.SetActive(true);
                this.Adjusting = true;
                this.UpdateButtonPrompts();
            }
        }
        else if (this.CanAdjust && Input.GetButtonDown("Y"))
        {
            int currentIndex2 = this.CurrentIndex;
            PlayerGlobals.SetSenpaiPhoto(currentIndex2, false);
            this.Hearts[currentIndex2].gameObject.SetActive(false);
            this.CanAdjust       = false;
            this.Yandere.Sanity += 20f;
            this.UpdateButtonPrompts();
        }
        if (this.InputManager.TappedRight)
        {
            this.Column = ((this.Column >= 5) ? 1 : (this.Column + 1));
        }
        if (this.InputManager.TappedLeft)
        {
            this.Column = ((this.Column <= 1) ? 5 : (this.Column - 1));
        }
        if (this.InputManager.TappedUp)
        {
            this.Row = ((this.Row <= 1) ? 5 : (this.Row - 1));
        }
        if (this.InputManager.TappedDown)
        {
            this.Row = ((this.Row >= 5) ? 1 : (this.Row + 1));
        }
        bool flag  = this.InputManager.TappedRight || this.InputManager.TappedLeft;
        bool flag2 = this.InputManager.TappedUp || this.InputManager.TappedDown;

        if (flag || flag2)
        {
            this.Highlight.transform.localPosition = new Vector3(this.HighlightX, this.HighlightY, this.Highlight.transform.localPosition.z);
            this.UpdateButtonPrompts();
        }
        this.ViewPhoto.transform.localScale = Vector3.Lerp(this.ViewPhoto.transform.localScale, new Vector3(1f, 1f, 1f), this.LerpSpeed);
        this.ViewPhoto.transform.position   = Vector3.Lerp(this.ViewPhoto.transform.position, this.Destination.position, this.LerpSpeed);
        if (this.Corkboard)
        {
            this.Gallery.transform.localPosition = new Vector3(this.Gallery.transform.localPosition.x, Mathf.Lerp(this.Gallery.transform.localPosition.y, 0f, Time.deltaTime * 10f), this.Gallery.transform.localPosition.z);
        }
    }