Beispiel #1
0
 // Token: 0x06001A5B RID: 6747 RVA: 0x00101EEA File Offset: 0x001000EA
 private void Start()
 {
     if (PlayerGlobals.GetShrineCollectible(this.ID))
     {
         UnityEngine.Object.Destroy(base.gameObject);
     }
 }
Beispiel #2
0
 // Token: 0x060015A4 RID: 5540 RVA: 0x000B7E4C File Offset: 0x000B604C
 public static void DeleteAll()
 {
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Money");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Alerts");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Enlightenment");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_EnlightenmentBonus");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Friends");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Headset");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_FakeID");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_RaibaruLoner");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Kills");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Numbness");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_NumbnessBonus");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_PantiesEquipped");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_PantyShots");
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_Photo_", PlayerGlobals.KeysOfPhoto());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_PhotoOnCorkboard_", PlayerGlobals.KeysOfPhotoOnCorkboard());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_PhotoPosition_", PlayerGlobals.KeysOfPhotoPosition());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_PhotoRotation_", PlayerGlobals.KeysOfPhotoRotation());
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Reputation");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Seduction");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_SeductionBonus");
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_SenpaiPhoto_", PlayerGlobals.KeysOfSenpaiPhoto());
     Globals.Delete("Profile_" + GameGlobals.Profile + "_SenpaiShots");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_SocialBonus");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_SpeedBonus");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_StealthBonus");
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_StudentFriend_", PlayerGlobals.KeysOfStudentFriend());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_StudentPantyShot_", PlayerGlobals.KeysOfStudentPantyShot());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_ShrineCollectible", PlayerGlobals.KeysOfShrineCollectible());
 }
Beispiel #3
0
 // Token: 0x0600040D RID: 1037 RVA: 0x0003BA38 File Offset: 0x00039E38
 public static void DeleteAll()
 {
     Globals.Delete("Alerts");
     Globals.Delete("Enlightenment");
     Globals.Delete("EnlightenmentBonus");
     Globals.Delete("Headset");
     Globals.Delete("Kills");
     Globals.Delete("Numbness");
     Globals.Delete("NumbnessBonus");
     Globals.Delete("PantiesEquipped");
     Globals.Delete("PantyShots");
     Globals.DeleteCollection("Photo_", PlayerGlobals.KeysOfPhoto());
     Globals.DeleteCollection("PhotoOnCorkboard_", PlayerGlobals.KeysOfPhotoOnCorkboard());
     Globals.DeleteCollection("PhotoPosition_", PlayerGlobals.KeysOfPhotoPosition());
     Globals.DeleteCollection("PhotoRotation_", PlayerGlobals.KeysOfPhotoRotation());
     Globals.Delete("Reputation");
     Globals.Delete("Seduction");
     Globals.Delete("SeductionBonus");
     Globals.DeleteCollection("SenpaiPhoto_", PlayerGlobals.KeysOfSenpaiPhoto());
     Globals.Delete("SenpaiShots");
     Globals.Delete("SocialBonus");
     Globals.Delete("SpeedBonus");
     Globals.Delete("StealthBonus");
     Globals.DeleteCollection("StudentFriend_", PlayerGlobals.KeysOfStudentFriend());
     Globals.DeleteCollection("StudentPantyShot_", PlayerGlobals.KeysOfStudentPantyShot());
 }
    // 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;
    }
Beispiel #5
0
    // Token: 0x06000655 RID: 1621 RVA: 0x0005AF9C File Offset: 0x0005939C
    public IEnumerator GetPhotos()
    {
        Debug.Log("We were told to get photos.");
        if (!this.Corkboard)
        {
            for (int i = 1; i < 26; i++)
            {
                this.Hearts[i].gameObject.SetActive(false);
            }
        }
        for (int ID = 1; ID < 26; ID++)
        {
            if (PlayerGlobals.GetPhoto(ID))
            {
                Debug.Log("Photo " + ID + " is ''true''.");
                string path = string.Concat(new object[]
                {
                    "file:///",
                    Application.streamingAssetsPath,
                    "/Photographs/Photo_",
                    ID,
                    ".png"
                });
                Debug.Log("Attempting to get " + path);
                WWW www = new WWW(path);
                yield return(www);

                if (www.error == null)
                {
                    this.Photographs[ID].mainTexture = www.texture;
                    if (!this.Corkboard && PlayerGlobals.GetSenpaiPhoto(ID))
                    {
                        this.Hearts[ID].gameObject.SetActive(true);
                    }
                }
                else
                {
                    Debug.Log(string.Concat(new object[]
                    {
                        "Could not retrieve Photo ",
                        ID,
                        ". Maybe it was deleted from Streaming Assets? Setting Photo ",
                        ID,
                        " to ''false''."
                    }));
                    PlayerGlobals.SetPhoto(ID, false);
                }
            }
        }
        this.LoadingScreen.SetActive(false);
        if (!this.Corkboard)
        {
            this.PauseScreen.Sideways = true;
        }
        this.UpdateButtonPrompts();
        base.enabled = true;
        base.gameObject.SetActive(true);
        yield break;
    }
 private void Start()
 {
     this.UpdateText(this.GetCurrentIndex());
     for (int i = 1; i < 11; i++)
     {
         if (PlayerGlobals.GetShrineCollectible(i))
         {
             this.Collectibles[i].SetActive(true);
         }
     }
 }
Beispiel #7
0
 public void UpdateLocation()
 {
     Debug.Log("The ''Offer Help'' prompt for Student " + this.EventStudentID + " was told to update its location.");
     this.Student = this.StudentManager.Students[this.EventStudentID];
     if (this.Student.CurrentDestination == this.StudentManager.MeetSpots.List[7])
     {
         base.transform.position    = this.Locations[1].position;
         base.transform.eulerAngles = this.Locations[1].eulerAngles;
     }
     else if (this.Student.CurrentDestination == this.StudentManager.MeetSpots.List[8])
     {
         base.transform.position    = this.Locations[2].position;
         base.transform.eulerAngles = this.Locations[2].eulerAngles;
     }
     else if (this.Student.CurrentDestination == this.StudentManager.MeetSpots.List[9])
     {
         base.transform.position    = this.Locations[3].position;
         base.transform.eulerAngles = this.Locations[3].eulerAngles;
     }
     else if (this.Student.CurrentDestination == this.StudentManager.MeetSpots.List[10])
     {
         base.transform.position    = this.Locations[4].position;
         base.transform.eulerAngles = this.Locations[4].eulerAngles;
     }
     if (this.EventStudentID == 11)
     {
         if (!PlayerGlobals.GetStudentFriend(11))
         {
             this.Prompt.Label[0].text = "     Must Befriend Student First";
             this.Unable = true;
         }
         this.Prompt.MyCollider.enabled = true;
         return;
     }
     if (this.EventStudentID == 30)
     {
         if (!PlayerGlobals.GetStudentFriend(30))
         {
             this.Prompt.Label[0].text = "     Must Befriend Student First";
             this.Unable = true;
         }
         this.Prompt.MyCollider.enabled = true;
         return;
     }
     if (this.EventStudentID == 5)
     {
         this.Prompt.MyCollider.enabled = true;
     }
 }
 // Token: 0x06001A08 RID: 6664 RVA: 0x000FDE1C File Offset: 0x000FC01C
 public static void WriteToGlobals(PlayerSaveData data)
 {
     PlayerGlobals.Alerts             = data.alerts;
     PlayerGlobals.Enlightenment      = data.enlightenment;
     PlayerGlobals.EnlightenmentBonus = data.enlightenmentBonus;
     PlayerGlobals.Headset            = data.headset;
     PlayerGlobals.Kills           = data.kills;
     PlayerGlobals.Numbness        = data.numbness;
     PlayerGlobals.NumbnessBonus   = data.numbnessBonus;
     PlayerGlobals.PantiesEquipped = data.pantiesEquipped;
     PlayerGlobals.PantyShots      = data.pantyShots;
     Debug.Log("Is this being called anywhere?");
     foreach (int photoID in data.photo)
     {
         PlayerGlobals.SetPhoto(photoID, true);
     }
     foreach (int photoID2 in data.photoOnCorkboard)
     {
         PlayerGlobals.SetPhotoOnCorkboard(photoID2, true);
     }
     foreach (KeyValuePair <int, Vector2> keyValuePair in data.photoPosition)
     {
         PlayerGlobals.SetPhotoPosition(keyValuePair.Key, keyValuePair.Value);
     }
     foreach (KeyValuePair <int, float> keyValuePair2 in data.photoRotation)
     {
         PlayerGlobals.SetPhotoRotation(keyValuePair2.Key, keyValuePair2.Value);
     }
     PlayerGlobals.Reputation     = data.reputation;
     PlayerGlobals.Seduction      = data.seduction;
     PlayerGlobals.SeductionBonus = data.seductionBonus;
     foreach (int photoID3 in data.senpaiPhoto)
     {
         PlayerGlobals.SetSenpaiPhoto(photoID3, true);
     }
     PlayerGlobals.SenpaiShots  = data.senpaiShots;
     PlayerGlobals.SocialBonus  = data.socialBonus;
     PlayerGlobals.SpeedBonus   = data.speedBonus;
     PlayerGlobals.StealthBonus = data.stealthBonus;
     foreach (int studentID in data.studentFriend)
     {
         PlayerGlobals.SetStudentFriend(studentID, true);
     }
     foreach (string studentName in data.studentPantyShot)
     {
         PlayerGlobals.SetStudentPantyShot(studentName, true);
     }
 }
Beispiel #9
0
 // Token: 0x060018D9 RID: 6361 RVA: 0x000E6150 File Offset: 0x000E4350
 private void UpdatePhotoViewing()
 {
     this.ViewPhoto.transform.localScale    = Vector3.Lerp(this.ViewPhoto.transform.localScale, this.Corkboard ? new Vector3(5.8f, 5.8f, 5.8f) : new Vector3(6.5f, 6.5f, 6.5f), this.LerpSpeed);
     this.ViewPhoto.transform.localPosition = Vector3.Lerp(this.ViewPhoto.transform.localPosition, Vector3.zero, this.LerpSpeed);
     if (this.Corkboard && Input.GetButtonDown("A"))
     {
         GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.Photograph, base.transform.position, Quaternion.identity);
         gameObject.transform.parent                       = this.CorkboardPanel;
         gameObject.transform.localEulerAngles             = Vector3.zero;
         gameObject.transform.localPosition                = Vector3.zero;
         gameObject.transform.localScale                   = new Vector3(1f, 1f, 1f);
         gameObject.GetComponent <UITexture>().mainTexture = this.Photographs[this.CurrentIndex].mainTexture;
         this.MovingPhotograph = gameObject;
         this.CanAdjust        = false;
         this.Adjusting        = true;
         this.Viewing          = false;
         this.Moving           = true;
         this.CorkboardPhotographs[this.Photos]         = gameObject.GetComponent <HomeCorkboardPhotoScript>();
         this.CorkboardPhotographs[this.Photos].ID      = this.CurrentIndex;
         this.CorkboardPhotographs[this.Photos].ArrayID = this.Photos;
         this.Photos++;
         this.UpdateButtonPrompts();
     }
     if (Input.GetButtonDown("B"))
     {
         this.Viewing = false;
         if (this.Corkboard)
         {
             this.Cursor.Highlight.transform.position = new Vector3(this.Cursor.Highlight.transform.position.x, 100f, this.Cursor.Highlight.transform.position.z);
             this.CanAdjust = true;
         }
         else
         {
             for (int i = 1; i < 26; i++)
             {
                 if (PlayerGlobals.GetSenpaiPhoto(i))
                 {
                     this.Hearts[i].gameObject.SetActive(true);
                     this.CanAdjust = true;
                 }
             }
         }
         this.UpdateButtonPrompts();
     }
 }
 private void UpdateText(int newIndex)
 {
     if (newIndex == -1)
     {
         newIndex = 10;
     }
     if (newIndex == 0)
     {
         this.NameLabel.text = this.Names[newIndex];
         this.DescLabel.text = this.Descs[newIndex];
         return;
     }
     if (PlayerGlobals.GetShrineCollectible(newIndex))
     {
         this.NameLabel.text = this.Names[newIndex];
         this.DescLabel.text = this.Descs[newIndex];
         return;
     }
     this.NameLabel.text = "???";
     this.DescLabel.text = "I'd like to find something that Senpai touched and keep it here...";
 }
Beispiel #11
0
 // Token: 0x06000224 RID: 548 RVA: 0x0002C190 File Offset: 0x0002A590
 private void Update()
 {
     if (!this.Show)
     {
         if (base.transform.localScale.x > 0.1f)
         {
             base.transform.localScale = Vector3.Lerp(base.transform.localScale, Vector3.zero, Time.deltaTime * 10f);
         }
         else if (this.Panel.enabled)
         {
             base.transform.localScale = Vector3.zero;
             this.Panel.enabled        = false;
         }
     }
     else
     {
         if (this.ClubLeader)
         {
             this.Interaction.localScale = Vector3.Lerp(this.Interaction.localScale, Vector3.zero, Time.deltaTime * 10f);
             this.Favors.localScale      = Vector3.Lerp(this.Favors.localScale, Vector3.zero, Time.deltaTime * 10f);
             this.Club.localScale        = Vector3.Lerp(this.Club.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f);
             this.Love.localScale        = Vector3.Lerp(this.Love.localScale, Vector3.zero, Time.deltaTime * 10f);
         }
         else if (this.AskingFavor)
         {
             this.Interaction.localScale = Vector3.Lerp(this.Interaction.localScale, Vector3.zero, Time.deltaTime * 10f);
             this.Favors.localScale      = Vector3.Lerp(this.Favors.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f);
             this.Club.localScale        = Vector3.Lerp(this.Club.localScale, Vector3.zero, Time.deltaTime * 10f);
             this.Love.localScale        = Vector3.Lerp(this.Love.localScale, Vector3.zero, Time.deltaTime * 10f);
         }
         else if (this.Matchmaking)
         {
             this.Interaction.localScale = Vector3.Lerp(this.Interaction.localScale, Vector3.zero, Time.deltaTime * 10f);
             this.Favors.localScale      = Vector3.Lerp(this.Favors.localScale, Vector3.zero, Time.deltaTime * 10f);
             this.Club.localScale        = Vector3.Lerp(this.Club.localScale, Vector3.zero, Time.deltaTime * 10f);
             this.Love.localScale        = Vector3.Lerp(this.Love.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f);
         }
         else
         {
             this.Interaction.localScale = Vector3.Lerp(this.Interaction.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f);
             this.Favors.localScale      = Vector3.Lerp(this.Favors.localScale, Vector3.zero, Time.deltaTime * 10f);
             this.Club.localScale        = Vector3.Lerp(this.Club.localScale, Vector3.zero, Time.deltaTime * 10f);
             this.Love.localScale        = Vector3.Lerp(this.Love.localScale, Vector3.zero, Time.deltaTime * 10f);
         }
         this.MouseDelta.x = this.MouseDelta.x + Input.GetAxis("Mouse X");
         this.MouseDelta.y = this.MouseDelta.y + Input.GetAxis("Mouse Y");
         if (this.MouseDelta.x > 11f)
         {
             this.MouseDelta.x = 11f;
         }
         else if (this.MouseDelta.x < -11f)
         {
             this.MouseDelta.x = -11f;
         }
         if (this.MouseDelta.y > 11f)
         {
             this.MouseDelta.y = 11f;
         }
         else if (this.MouseDelta.y < -11f)
         {
             this.MouseDelta.y = -11f;
         }
         base.transform.localScale = Vector3.Lerp(base.transform.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f);
         if (!this.AskingFavor && !this.Matchmaking)
         {
             if (Input.GetAxis("Vertical") < 0.5f && Input.GetAxis("Vertical") > -0.5f && Input.GetAxis("Horizontal") < 0.5f && Input.GetAxis("Horizontal") > -0.5f)
             {
                 this.Selected = 0;
             }
             if ((Input.GetAxis("Vertical") > 0.5f && Input.GetAxis("Horizontal") < 0.5f && Input.GetAxis("Horizontal") > -0.5f) || (this.MouseDelta.y > 10f && this.MouseDelta.x < 10f && this.MouseDelta.x > -10f))
             {
                 this.Selected = 1;
             }
             if ((Input.GetAxis("Vertical") > 0f && Input.GetAxis("Horizontal") > 0.5f) || (this.MouseDelta.y > 0f && this.MouseDelta.x > 10f))
             {
                 this.Selected = 2;
             }
             if ((Input.GetAxis("Vertical") < 0f && Input.GetAxis("Horizontal") > 0.5f) || (this.MouseDelta.y < 0f && this.MouseDelta.x > 10f))
             {
                 this.Selected = 3;
             }
             if ((Input.GetAxis("Vertical") < -0.5f && Input.GetAxis("Horizontal") < 0.5f && Input.GetAxis("Horizontal") > -0.5f) || (this.MouseDelta.y < -10f && this.MouseDelta.x < 10f && this.MouseDelta.x > -10f))
             {
                 this.Selected = 4;
             }
             if ((Input.GetAxis("Vertical") < 0f && Input.GetAxis("Horizontal") < -0.5f) || (this.MouseDelta.y < 0f && this.MouseDelta.x < -10f))
             {
                 this.Selected = 5;
             }
             if ((Input.GetAxis("Vertical") > 0f && Input.GetAxis("Horizontal") < -0.5f) || (this.MouseDelta.y > 0f && this.MouseDelta.x < -10f))
             {
                 this.Selected = 6;
             }
             if (!this.ClubLeader)
             {
                 if (this.Selected == 5)
                 {
                     this.CenterLabel.text = (PlayerGlobals.GetStudentFriend(this.Yandere.TargetStudent.StudentID) ? "Love" : this.Text[this.Selected]);
                 }
                 else
                 {
                     this.CenterLabel.text = this.Text[this.Selected];
                 }
             }
             else
             {
                 this.CenterLabel.text = this.ClubText[this.Selected];
             }
         }
         else
         {
             if (Input.GetAxis("Vertical") < 0.5f && Input.GetAxis("Vertical") > -0.5f && Input.GetAxis("Horizontal") < 0.5f && Input.GetAxis("Horizontal") > -0.5f)
             {
                 this.Selected = 0;
             }
             if ((Input.GetAxis("Vertical") > 0.5f && Input.GetAxis("Horizontal") < 0.5f && Input.GetAxis("Horizontal") > -0.5f) || (this.MouseDelta.y > 10f && this.MouseDelta.x < 10f && this.MouseDelta.x > -10f))
             {
                 this.Selected = 1;
             }
             if ((Input.GetAxis("Vertical") < 0.5f && Input.GetAxis("Vertical") > -0.5f && Input.GetAxis("Horizontal") > 0.5f) || (this.MouseDelta.y < 10f && this.MouseDelta.y > -10f && this.MouseDelta.x > 10f))
             {
                 this.Selected = 2;
             }
             if ((Input.GetAxis("Vertical") < -0.5f && Input.GetAxis("Horizontal") < 0.5f && Input.GetAxis("Horizontal") > -0.5f) || (this.MouseDelta.y < -10f && this.MouseDelta.x < 10f && this.MouseDelta.x > -10f))
             {
                 this.Selected = 3;
             }
             if ((Input.GetAxis("Vertical") < 0.5f && Input.GetAxis("Vertical") > -0.5f && Input.GetAxis("Horizontal") < -0.5f) || (this.MouseDelta.y < 10f && this.MouseDelta.y > -10f && this.MouseDelta.x < -10f))
             {
                 this.Selected = 4;
             }
             if (this.Selected < this.FavorText.Length)
             {
                 this.CenterLabel.text = ((!this.AskingFavor) ? this.LoveText[this.Selected] : this.FavorText[this.Selected]);
             }
         }
         if (!this.ClubLeader)
         {
             for (int i = 1; i < 7; i++)
             {
                 Transform transform = this.Segment[i].transform;
                 transform.localScale = Vector3.Lerp(transform.localScale, (this.Selected != i) ? new Vector3(1f, 1f, 1f) : new Vector3(1.3f, 1.3f, 1f), Time.deltaTime * 10f);
             }
         }
         else
         {
             for (int j = 1; j < 7; j++)
             {
                 Transform transform2 = this.ClubSegment[j].transform;
                 transform2.localScale = Vector3.Lerp(transform2.localScale, (this.Selected != j) ? new Vector3(1f, 1f, 1f) : new Vector3(1.3f, 1.3f, 1f), Time.deltaTime * 10f);
             }
         }
         if (!this.Matchmaking)
         {
             for (int k = 1; k < 5; k++)
             {
                 Transform transform3 = this.FavorSegment[k].transform;
                 transform3.localScale = Vector3.Lerp(transform3.localScale, (this.Selected != k) ? new Vector3(1f, 1f, 1f) : new Vector3(1.3f, 1.3f, 1f), Time.deltaTime * 10f);
             }
         }
         else
         {
             for (int l = 1; l < 5; l++)
             {
                 Transform transform4 = this.LoveSegment[l].transform;
                 transform4.localScale = Vector3.Lerp(transform4.localScale, (this.Selected != l) ? new Vector3(1f, 1f, 1f) : new Vector3(1.3f, 1.3f, 1f), Time.deltaTime * 10f);
             }
         }
         if (Input.GetButtonDown("A"))
         {
             if (this.ClubLeader)
             {
                 if (this.Selected != 0 && this.ClubShadow[this.Selected].color.a == 0f)
                 {
                     if (this.Selected == 1)
                     {
                         this.Impatience.fillAmount             = 0f;
                         this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubInfo;
                         this.Yandere.TargetStudent.TalkTimer   = 100f;
                         this.Yandere.TargetStudent.ClubPhase   = 1;
                         this.Show = false;
                     }
                     if (this.Selected == 2)
                     {
                         this.Impatience.fillAmount             = 0f;
                         this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubJoin;
                         this.Yandere.TargetStudent.TalkTimer   = 100f;
                         this.Show = false;
                         this.ClubManager.CheckGrudge(this.Yandere.TargetStudent.Club);
                         if (ClubGlobals.GetQuitClub(this.Yandere.TargetStudent.Club))
                         {
                             this.Yandere.TargetStudent.ClubPhase = 4;
                         }
                         else if (ClubGlobals.Club != ClubType.None)
                         {
                             this.Yandere.TargetStudent.ClubPhase = 5;
                         }
                         else if (this.ClubManager.ClubGrudge)
                         {
                             this.Yandere.TargetStudent.ClubPhase = 6;
                         }
                         else
                         {
                             this.Yandere.TargetStudent.ClubPhase = 1;
                         }
                     }
                     if (this.Selected == 3)
                     {
                         this.Impatience.fillAmount             = 0f;
                         this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubQuit;
                         this.Yandere.TargetStudent.TalkTimer   = 100f;
                         this.Yandere.TargetStudent.ClubPhase   = 1;
                         this.Show = false;
                     }
                     if (this.Selected == 4)
                     {
                         this.Impatience.fillAmount             = 0f;
                         this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubBye;
                         this.Yandere.TargetStudent.TalkTimer   = this.Yandere.Subtitle.ClubFarewellClips[(int)this.Yandere.TargetStudent.Club].length;
                         this.Show = false;
                     }
                     if (this.Selected == 5)
                     {
                         this.Impatience.fillAmount             = 0f;
                         this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubActivity;
                         this.Yandere.TargetStudent.TalkTimer   = 100f;
                         if (this.Clock.HourTime < 17f)
                         {
                             this.Yandere.TargetStudent.ClubPhase = 4;
                         }
                         else if (this.Clock.HourTime > 17.5f)
                         {
                             this.Yandere.TargetStudent.ClubPhase = 5;
                         }
                         else
                         {
                             this.Yandere.TargetStudent.ClubPhase = 1;
                         }
                         this.Show = false;
                     }
                     if (this.Selected == 6)
                     {
                     }
                 }
             }
             else if (this.AskingFavor)
             {
                 if (this.Selected != 0)
                 {
                     if (this.Selected < this.FavorShadow.Length && this.FavorShadow[this.Selected] != null && this.FavorShadow[this.Selected].color.a == 0f)
                     {
                         if (this.Selected == 1)
                         {
                             this.Impatience.fillAmount = 0f;
                             this.Yandere.Interaction   = YandereInteractionType.FollowMe;
                             this.Yandere.TalkTimer     = 3f;
                             this.Show = false;
                         }
                         if (this.Selected == 2)
                         {
                             this.Impatience.fillAmount = 0f;
                             this.Yandere.Interaction   = YandereInteractionType.GoAway;
                             this.Yandere.TalkTimer     = 3f;
                             this.Show = false;
                         }
                         if (this.Selected == 4)
                         {
                             this.PauseScreen.StudentInfoMenu.Distracting = true;
                             this.PauseScreen.StudentInfoMenu.gameObject.SetActive(true);
                             this.PauseScreen.StudentInfoMenu.Column = 0;
                             this.PauseScreen.StudentInfoMenu.Row    = 0;
                             this.PauseScreen.StudentInfoMenu.UpdateHighlight();
                             base.StartCoroutine(this.PauseScreen.StudentInfoMenu.UpdatePortraits());
                             this.PauseScreen.MainMenu.SetActive(false);
                             this.PauseScreen.Panel.enabled = true;
                             this.PauseScreen.Sideways      = true;
                             this.PauseScreen.Show          = true;
                             Time.timeScale = 0f;
                             this.PromptBar.ClearButtons();
                             this.PromptBar.Label[1].text = "Cancel";
                             this.PromptBar.UpdateButtons();
                             this.PromptBar.Show        = true;
                             this.Impatience.fillAmount = 0f;
                             this.Yandere.Interaction   = YandereInteractionType.DistractThem;
                             this.Yandere.TalkTimer     = 3f;
                             this.Show = false;
                         }
                     }
                     if (this.Selected == 3)
                     {
                         this.AskingFavor = false;
                     }
                 }
             }
             else if (this.Matchmaking)
             {
                 if (this.Selected != 0)
                 {
                     if (this.Selected < this.LoveShadow.Length && this.LoveShadow[this.Selected] != null && this.LoveShadow[this.Selected].color.a == 0f)
                     {
                         if (this.Selected == 1)
                         {
                             this.PromptBar.ClearButtons();
                             this.PromptBar.Label[0].text = "Select";
                             this.PromptBar.Label[4].text = "Change";
                             this.PromptBar.UpdateButtons();
                             this.PromptBar.Show = true;
                             this.AppearanceWindow.gameObject.SetActive(true);
                             this.AppearanceWindow.Show = true;
                             this.Show = false;
                         }
                         if (this.Selected == 2)
                         {
                             this.Impatience.fillAmount = 0f;
                             this.Yandere.Interaction   = YandereInteractionType.Court;
                             this.Yandere.TalkTimer     = 5f;
                             this.Show = false;
                         }
                         if (this.Selected == 4)
                         {
                             this.Impatience.fillAmount = 0f;
                             this.Yandere.Interaction   = YandereInteractionType.Confess;
                             this.Yandere.TalkTimer     = 5f;
                             this.Show = false;
                         }
                     }
                     if (this.Selected == 3)
                     {
                         this.Matchmaking = false;
                     }
                 }
             }
             else if (this.Selected != 0 && this.Shadow[this.Selected].color.a == 0f)
             {
                 if (this.Selected == 1)
                 {
                     this.Impatience.fillAmount = 0f;
                     this.Yandere.Interaction   = YandereInteractionType.Apologizing;
                     this.Yandere.TalkTimer     = 3f;
                     this.Show = false;
                 }
                 if (this.Selected == 2)
                 {
                     this.Impatience.fillAmount = 0f;
                     this.Yandere.Interaction   = YandereInteractionType.Compliment;
                     this.Yandere.TalkTimer     = 3f;
                     this.Show = false;
                 }
                 if (this.Selected == 3)
                 {
                     this.PauseScreen.StudentInfoMenu.Gossiping = true;
                     this.PauseScreen.StudentInfoMenu.gameObject.SetActive(true);
                     this.PauseScreen.StudentInfoMenu.Column = 0;
                     this.PauseScreen.StudentInfoMenu.Row    = 0;
                     this.PauseScreen.StudentInfoMenu.UpdateHighlight();
                     base.StartCoroutine(this.PauseScreen.StudentInfoMenu.UpdatePortraits());
                     this.PauseScreen.MainMenu.SetActive(false);
                     this.PauseScreen.Panel.enabled = true;
                     this.PauseScreen.Sideways      = true;
                     this.PauseScreen.Show          = true;
                     Time.timeScale = 0f;
                     this.PromptBar.ClearButtons();
                     this.PromptBar.Label[0].text = string.Empty;
                     this.PromptBar.Label[1].text = "Cancel";
                     this.PromptBar.UpdateButtons();
                     this.PromptBar.Show        = true;
                     this.Impatience.fillAmount = 0f;
                     this.Yandere.Interaction   = YandereInteractionType.Gossip;
                     this.Yandere.TalkTimer     = 3f;
                     this.Show = false;
                 }
                 if (this.Selected == 4)
                 {
                     this.Impatience.fillAmount = 0f;
                     this.Yandere.Interaction   = YandereInteractionType.Bye;
                     this.Yandere.TalkTimer     = 2f;
                     this.Show = false;
                 }
                 if (this.Selected == 5)
                 {
                     if (!PlayerGlobals.GetStudentFriend(this.Yandere.TargetStudent.StudentID))
                     {
                         this.CheckTaskCompletion();
                         if (this.Yandere.TargetStudent.TaskPhase == 0)
                         {
                             this.Impatience.fillAmount             = 0f;
                             this.Yandere.TargetStudent.Interaction = StudentInteractionType.GivingTask;
                             this.Yandere.TargetStudent.TalkTimer   = 100f;
                             this.Yandere.TargetStudent.TaskPhase   = 1;
                         }
                         else
                         {
                             this.Impatience.fillAmount             = 0f;
                             this.Yandere.TargetStudent.Interaction = StudentInteractionType.GivingTask;
                             this.Yandere.TargetStudent.TalkTimer   = 100f;
                         }
                         this.Show = false;
                     }
                     else if (this.Yandere.LoveManager.SuitorProgress == 0)
                     {
                         this.PauseScreen.StudentInfoMenu.MatchMaking = true;
                         this.PauseScreen.StudentInfoMenu.gameObject.SetActive(true);
                         this.PauseScreen.StudentInfoMenu.Column = 0;
                         this.PauseScreen.StudentInfoMenu.Row    = 0;
                         this.PauseScreen.StudentInfoMenu.UpdateHighlight();
                         base.StartCoroutine(this.PauseScreen.StudentInfoMenu.UpdatePortraits());
                         this.PauseScreen.MainMenu.SetActive(false);
                         this.PauseScreen.Panel.enabled = true;
                         this.PauseScreen.Sideways      = true;
                         this.PauseScreen.Show          = true;
                         Time.timeScale = 0f;
                         this.PromptBar.ClearButtons();
                         this.PromptBar.Label[0].text = "View Info";
                         this.PromptBar.Label[1].text = "Cancel";
                         this.PromptBar.UpdateButtons();
                         this.PromptBar.Show        = true;
                         this.Impatience.fillAmount = 0f;
                         this.Yandere.Interaction   = YandereInteractionType.NamingCrush;
                         this.Yandere.TalkTimer     = 3f;
                         this.Show = false;
                     }
                     else
                     {
                         this.Matchmaking = true;
                     }
                 }
                 if (this.Selected == 6)
                 {
                     this.AskingFavor = true;
                 }
             }
         }
     }
     this.PreviousPosition = Input.mousePosition;
 }
 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;
         }
     }
 }
Beispiel #13
0
 // Token: 0x06000656 RID: 1622 RVA: 0x0005AFB8 File Offset: 0x000593B8
 public void UpdateButtonPrompts()
 {
     if (this.Moving)
     {
         this.PromptBar.Label[0].text = "Place";
         this.PromptBar.Label[1].text = string.Empty;
         this.PromptBar.Label[2].text = string.Empty;
         this.PromptBar.Label[4].text = "Move";
         this.PromptBar.Label[5].text = "Move";
     }
     else if (this.Adjusting)
     {
         if (this.Cursor.Photograph != null)
         {
             this.PromptBar.Label[0].text = "Adjust";
             this.PromptBar.Label[2].text = "Remove";
         }
         else
         {
             this.PromptBar.Label[0].text = string.Empty;
             this.PromptBar.Label[2].text = string.Empty;
         }
         this.PromptBar.Label[1].text = "Back";
         this.PromptBar.Label[3].text = string.Empty;
         this.PromptBar.Label[4].text = "Move";
         this.PromptBar.Label[5].text = "Move";
     }
     else if (!this.Viewing)
     {
         int currentIndex = this.CurrentIndex;
         if (this.Photographs[currentIndex].mainTexture != this.NoPhoto)
         {
             this.PromptBar.Label[0].text = "View";
             this.PromptBar.Label[2].text = "Delete";
         }
         else
         {
             this.PromptBar.Label[0].text = string.Empty;
             this.PromptBar.Label[2].text = string.Empty;
         }
         if (!this.Corkboard)
         {
             this.PromptBar.Label[3].text = ((!PlayerGlobals.GetSenpaiPhoto(currentIndex)) ? string.Empty : "Use");
         }
         else
         {
             this.PromptBar.Label[3].text = "Corkboard";
         }
         this.PromptBar.Label[1].text = "Back";
         this.PromptBar.Label[4].text = "Choose";
         this.PromptBar.Label[5].text = "Choose";
     }
     else
     {
         if (this.Corkboard)
         {
             this.PromptBar.Label[0].text = "Place";
         }
         else
         {
             this.PromptBar.Label[0].text = string.Empty;
         }
         this.PromptBar.Label[2].text = string.Empty;
         this.PromptBar.Label[3].text = string.Empty;
         this.PromptBar.Label[4].text = string.Empty;
         this.PromptBar.Label[5].text = string.Empty;
     }
     this.PromptBar.UpdateButtons();
     this.PromptBar.Show = true;
 }
    // Token: 0x060007A1 RID: 1953 RVA: 0x000752F0 File Offset: 0x000736F0
    private void SpawnMessage()
    {
        if (this.NewMessage != null)
        {
            UnityEngine.Object.Destroy(this.NewMessage);
        }
        this.NewMessage = UnityEngine.Object.Instantiate <GameObject>(this.Message);
        this.NewMessage.transform.parent           = this.TextMessages;
        this.NewMessage.transform.localPosition    = new Vector3(-225f, -275f, 0f);
        this.NewMessage.transform.localEulerAngles = Vector3.zero;
        this.NewMessage.transform.localScale       = new Vector3(1f, 1f, 1f);
        bool flag = false;

        if (this.hit.collider != null && this.hit.collider.gameObject.name == "Kitten")
        {
            flag = true;
        }
        string text = string.Empty;
        int    num;

        if (flag)
        {
            text = "Why are you showing me this? I don't care.";
            num  = 2;
        }
        else if (!this.InfoX.activeInHierarchy)
        {
            text = "I recognize this person. Here's some information about them.";
            num  = 3;
        }
        else if (!this.PantiesX.activeInHierarchy)
        {
            if (this.Student != null)
            {
                if (!PlayerGlobals.GetStudentPantyShot(this.Student.Name))
                {
                    PlayerGlobals.SetStudentPantyShot(this.Student.Name, true);
                    if (this.Student.Nemesis)
                    {
                        text = "Wait...I recognize those panties! This person is extremely dangerous! Avoid her at all costs!";
                    }
                    else if (this.Student.StudentID == 32 || this.Student.Club == ClubType.Council)
                    {
                        text = "A high value target! " + this.Student.Name + "'s panties were in high demand. I owe you a big favor for this one.";
                        PlayerGlobals.PantyShots += 5;
                    }
                    else
                    {
                        text = "Excellent! Now I have a picture of " + this.Student.Name + "'s panties. I owe you a favor for this one.";
                        PlayerGlobals.PantyShots++;
                    }
                    num = 5;
                }
                else if (!this.Student.Nemesis)
                {
                    text = "I already have a picture of " + this.Student.Name + "'s panties. I don't need this shot.";
                    num  = 4;
                }
                else
                {
                    text = "You are in danger. Avoid her.";
                    num  = 2;
                }
            }
            else
            {
                text = "How peculiar. I don't recognize these panties.";
                num  = 2;
            }
        }
        else if (!this.ViolenceX.activeInHierarchy)
        {
            text = "Good work, but don't send me this stuff. I have no use for it.";
            num  = 3;
        }
        else if (!this.SenpaiX.activeInHierarchy)
        {
            if (PlayerGlobals.SenpaiShots == 0)
            {
                text = "I don't need any pictures of your Senpai.";
                num  = 2;
            }
            else if (PlayerGlobals.SenpaiShots == 1)
            {
                text = "I know how you feel about this person, but I have no use for these pictures.";
                num  = 4;
            }
            else if (PlayerGlobals.SenpaiShots == 2)
            {
                text = "Okay, I get it, you love your Senpai, and you love taking pictures of your Senpai. I still don't need these shots.";
                num  = 5;
            }
            else if (PlayerGlobals.SenpaiShots == 3)
            {
                text = "You're spamming my inbox. Cut it out.";
                num  = 2;
            }
            else
            {
                text = "...";
                num  = 1;
            }
            PlayerGlobals.SenpaiShots++;
        }
        else if (this.NotFace)
        {
            text = "Do you want me to identify this person? Please get me a clear shot of their face.";
            num  = 4;
        }
        else if (this.Skirt)
        {
            text = "Is this supposed to be a panty shot? My clients are picky. The panties need to be in the EXACT center of the shot.";
            num  = 5;
        }
        else if (this.Nemesis)
        {
            if (this.NemesisShots == 1)
            {
                text = "Strange. I have no profile for this student.";
                num  = 2;
            }
            else if (this.NemesisShots == 2)
            {
                text = "...wait. I think I know who she is.";
                num  = 2;
            }
            else if (this.NemesisShots == 3)
            {
                text = "You are in danger. Avoid her.";
                num  = 2;
            }
            else if (this.NemesisShots == 4)
            {
                text = "Do not engage.";
                num  = 1;
            }
            else
            {
                text = "I repeat: Do. Not. Engage.";
                num  = 2;
            }
        }
        else if (this.Disguise)
        {
            text = "Something about that student seems...wrong.";
            num  = 2;
        }
        else
        {
            text = "I don't get it. What are you trying to show me? Make sure the subject is in the EXACT center of the photo.";
            num  = 5;
        }
        this.NewMessage.GetComponent <UISprite>().height = 36 + 36 * num;
        this.NewMessage.GetComponent <TextMessageScript>().Label.text = text;
    }
 // 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);
         }
     }
 }
Beispiel #16
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);
        }
    }
    public IEnumerator UpdatePortraits()
    {
        if (this.Debugging)
        {
            Debug.Log("The Student Info Menu was instructed to get photos.");
        }
        int num;

        for (int ID = 1; ID < 101; ID = num + 1)
        {
            if (this.Debugging)
            {
                Debug.Log("1 - We entered the loop.");
            }
            if (ID == 0)
            {
                this.StudentPortraits[ID].Portrait.mainTexture = this.InfoChan;
            }
            else
            {
                if (this.Debugging)
                {
                    Debug.Log("2 - ID is not zero.");
                }
                if (!this.PortraitLoaded[ID])
                {
                    if (this.Debugging)
                    {
                        Debug.Log("3 - PortraitLoaded is false.");
                    }
                    if (ID < 12 || (ID > 20 && ID < 98))
                    {
                        if (this.Debugging)
                        {
                            Debug.Log("4 - ID is less than 98.");
                        }
                        if (StudentGlobals.GetStudentPhotographed(ID))
                        {
                            if (this.Debugging)
                            {
                                Debug.Log("5 - GetStudentPhotographed is true.");
                            }
                            string text = string.Concat(new string[]
                            {
                                "file:///",
                                Application.streamingAssetsPath,
                                "/Portraits/Student_",
                                ID.ToString(),
                                ".png"
                            });
                            if (this.Debugging)
                            {
                                Debug.Log("Path is: " + text);
                            }
                            WWW www = new WWW(text);
                            if (this.Debugging)
                            {
                                Debug.Log("Waiting for www to return.");
                            }
                            yield return(www);

                            if (this.Debugging)
                            {
                                Debug.Log("www has returned.");
                            }
                            if (www.error == null)
                            {
                                if (!StudentGlobals.GetStudentReplaced(ID))
                                {
                                    this.StudentPortraits[ID].Portrait.mainTexture = www.texture;
                                }
                                else
                                {
                                    this.StudentPortraits[ID].Portrait.mainTexture = this.BlankPortrait;
                                }
                            }
                            else
                            {
                                this.StudentPortraits[ID].Portrait.mainTexture = this.UnknownPortrait;
                            }
                            this.PortraitLoaded[ID] = true;
                            www = null;
                        }
                        else
                        {
                            this.StudentPortraits[ID].Portrait.mainTexture = this.UnknownPortrait;
                        }
                    }
                    else if (ID == 98)
                    {
                        this.StudentPortraits[ID].Portrait.mainTexture = this.Counselor;
                    }
                    else if (ID == 99)
                    {
                        this.StudentPortraits[ID].Portrait.mainTexture = this.Headmaster;
                    }
                    else if (ID == 100)
                    {
                        this.StudentPortraits[ID].Portrait.mainTexture = this.InfoChan;
                    }
                    else
                    {
                        this.StudentPortraits[ID].Portrait.mainTexture = this.RivalPortraits[ID];
                    }
                }
            }
            if (PlayerGlobals.GetStudentPantyShot(this.JSON.Students[ID].Name))
            {
                this.StudentPortraits[ID].Panties.SetActive(true);
            }
            this.StudentPortraits[ID].Friend.SetActive(PlayerGlobals.GetStudentFriend(ID));
            if (StudentGlobals.GetStudentDying(ID) || StudentGlobals.GetStudentDead(ID))
            {
                this.StudentPortraits[ID].DeathShadow.SetActive(true);
            }
            if (MissionModeGlobals.MissionMode && ID == 1)
            {
                this.StudentPortraits[ID].DeathShadow.SetActive(true);
            }
            if (SceneManager.GetActiveScene().name == "SchoolScene" && this.StudentManager.Students[ID] != null && this.StudentManager.Students[ID].Tranquil)
            {
                this.StudentPortraits[ID].DeathShadow.SetActive(true);
            }
            if (StudentGlobals.GetStudentArrested(ID))
            {
                this.StudentPortraits[ID].PrisonBars.SetActive(true);
                this.StudentPortraits[ID].DeathShadow.SetActive(true);
            }
            num = ID;
        }
        yield break;
    }
    // Token: 0x06001A07 RID: 6663 RVA: 0x000FDC0C File Offset: 0x000FBE0C
    public static PlayerSaveData ReadFromGlobals()
    {
        PlayerSaveData playerSaveData = new PlayerSaveData();

        playerSaveData.alerts             = PlayerGlobals.Alerts;
        playerSaveData.enlightenment      = PlayerGlobals.Enlightenment;
        playerSaveData.enlightenmentBonus = PlayerGlobals.EnlightenmentBonus;
        playerSaveData.headset            = PlayerGlobals.Headset;
        playerSaveData.kills           = PlayerGlobals.Kills;
        playerSaveData.numbness        = PlayerGlobals.Numbness;
        playerSaveData.numbnessBonus   = PlayerGlobals.NumbnessBonus;
        playerSaveData.pantiesEquipped = PlayerGlobals.PantiesEquipped;
        playerSaveData.pantyShots      = PlayerGlobals.PantyShots;
        foreach (int num in PlayerGlobals.KeysOfPhoto())
        {
            if (PlayerGlobals.GetPhoto(num))
            {
                playerSaveData.photo.Add(num);
            }
        }
        foreach (int num2 in PlayerGlobals.KeysOfPhotoOnCorkboard())
        {
            if (PlayerGlobals.GetPhotoOnCorkboard(num2))
            {
                playerSaveData.photoOnCorkboard.Add(num2);
            }
        }
        foreach (int num3 in PlayerGlobals.KeysOfPhotoPosition())
        {
            playerSaveData.photoPosition.Add(num3, PlayerGlobals.GetPhotoPosition(num3));
        }
        foreach (int num4 in PlayerGlobals.KeysOfPhotoRotation())
        {
            playerSaveData.photoRotation.Add(num4, PlayerGlobals.GetPhotoRotation(num4));
        }
        playerSaveData.reputation     = PlayerGlobals.Reputation;
        playerSaveData.seduction      = PlayerGlobals.Seduction;
        playerSaveData.seductionBonus = PlayerGlobals.SeductionBonus;
        foreach (int num5 in PlayerGlobals.KeysOfSenpaiPhoto())
        {
            if (PlayerGlobals.GetSenpaiPhoto(num5))
            {
                playerSaveData.senpaiPhoto.Add(num5);
            }
        }
        playerSaveData.senpaiShots  = PlayerGlobals.SenpaiShots;
        playerSaveData.socialBonus  = PlayerGlobals.SocialBonus;
        playerSaveData.speedBonus   = PlayerGlobals.SpeedBonus;
        playerSaveData.stealthBonus = PlayerGlobals.StealthBonus;
        foreach (int num6 in PlayerGlobals.KeysOfStudentFriend())
        {
            if (PlayerGlobals.GetStudentFriend(num6))
            {
                playerSaveData.studentFriend.Add(num6);
            }
        }
        foreach (string text in PlayerGlobals.KeysOfStudentPantyShot())
        {
            if (PlayerGlobals.GetStudentPantyShot(text))
            {
                playerSaveData.studentPantyShot.Add(text);
            }
        }
        return(playerSaveData);
    }
Beispiel #19
0
 // Token: 0x060018DF RID: 6367 RVA: 0x000E7018 File Offset: 0x000E5218
 public void UpdateButtonPrompts()
 {
     if (this.NamingBully)
     {
         if (this.Photographs[this.CurrentIndex].mainTexture != this.NoPhoto && PlayerGlobals.GetBullyPhoto(this.CurrentIndex) > 0)
         {
             if (PlayerGlobals.GetBullyPhoto(this.CurrentIndex) > 0)
             {
                 this.PromptBar.Label[0].text = "Name Bully";
             }
             else
             {
                 this.PromptBar.Label[0].text = string.Empty;
             }
         }
         else
         {
             this.PromptBar.Label[0].text = string.Empty;
         }
         this.PromptBar.Label[1].text = string.Empty;
         this.PromptBar.Label[2].text = string.Empty;
         this.PromptBar.Label[3].text = string.Empty;
         this.PromptBar.Label[4].text = "Move";
         this.PromptBar.Label[5].text = "Move";
     }
     else if (this.Moving || this.MovingString)
     {
         this.PromptBar.Label[0].text = "Place";
         this.PromptBar.Label[1].text = string.Empty;
         this.PromptBar.Label[2].text = string.Empty;
         this.PromptBar.Label[3].text = string.Empty;
         this.PromptBar.Label[4].text = "Move";
         this.PromptBar.Label[5].text = "Move";
         if (!this.MovingString)
         {
             this.PromptBar.Label[2].text = "Resize";
             this.PromptBar.Label[3].text = "Resize";
         }
     }
     else if (this.Adjusting)
     {
         if (this.Cursor.Photograph != null)
         {
             this.PromptBar.Label[0].text = "Adjust";
             this.PromptBar.Label[1].text = string.Empty;
             this.PromptBar.Label[2].text = "Remove";
             this.PromptBar.Label[3].text = string.Empty;
         }
         else if (this.Cursor.Tack != null)
         {
             this.PromptBar.Label[2].text = "Remove";
         }
         else
         {
             this.PromptBar.Label[0].text = string.Empty;
             this.PromptBar.Label[2].text = string.Empty;
         }
         this.PromptBar.Label[1].text = "Back";
         this.PromptBar.Label[3].text = "Place Pin";
         this.PromptBar.Label[4].text = "Move";
         this.PromptBar.Label[5].text = "Move";
     }
     else if (!this.Viewing)
     {
         int currentIndex = this.CurrentIndex;
         if (this.Photographs[currentIndex].mainTexture != this.NoPhoto)
         {
             this.PromptBar.Label[0].text = "View";
             this.PromptBar.Label[2].text = "Delete";
         }
         else
         {
             this.PromptBar.Label[0].text = string.Empty;
             this.PromptBar.Label[2].text = string.Empty;
         }
         if (!this.Corkboard)
         {
             this.PromptBar.Label[3].text = (PlayerGlobals.GetSenpaiPhoto(currentIndex) ? "Use" : string.Empty);
         }
         else
         {
             this.PromptBar.Label[3].text = "Corkboard";
         }
         this.PromptBar.Label[1].text = "Back";
         this.PromptBar.Label[4].text = "Choose";
         this.PromptBar.Label[5].text = "Choose";
     }
     else
     {
         if (this.Corkboard)
         {
             this.PromptBar.Label[0].text = "Place";
         }
         else
         {
             this.PromptBar.Label[0].text = string.Empty;
         }
         this.PromptBar.Label[2].text = string.Empty;
         this.PromptBar.Label[3].text = string.Empty;
         this.PromptBar.Label[4].text = string.Empty;
         this.PromptBar.Label[5].text = string.Empty;
     }
     this.PromptBar.UpdateButtons();
     this.PromptBar.Show = true;
 }
 // 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 #21
0
    // Token: 0x060007E2 RID: 2018 RVA: 0x000797DC File Offset: 0x00077BDC
    public IEnumerator UpdatePortraits()
    {
        for (int ID = 1; ID < 101; ID++)
        {
            if (ID == 0)
            {
                this.StudentPortraits[ID].Portrait.mainTexture = this.InfoChan;
            }
            else if (!this.PortraitLoaded[ID])
            {
                if (ID < 98)
                {
                    if (StudentGlobals.GetStudentPhotographed(ID))
                    {
                        string path = string.Concat(new string[]
                        {
                            "file:///",
                            Application.streamingAssetsPath,
                            "/Portraits/Student_",
                            ID.ToString(),
                            ".png"
                        });
                        WWW www = new WWW(path);
                        yield return(www);

                        if (www.error == null)
                        {
                            if (!StudentGlobals.GetStudentReplaced(ID))
                            {
                                if (!this.CustomPortraits)
                                {
                                    this.StudentPortraits[ID].Portrait.mainTexture = ((ID >= 33 && ID <= 85) ? this.BlankPortrait : www.texture);
                                }
                                else
                                {
                                    this.StudentPortraits[ID].Portrait.mainTexture = www.texture;
                                }
                            }
                            else
                            {
                                this.StudentPortraits[ID].Portrait.mainTexture = this.BlankPortrait;
                            }
                        }
                        else
                        {
                            this.StudentPortraits[ID].Portrait.mainTexture = this.UnknownPortrait;
                        }
                        this.PortraitLoaded[ID] = true;
                    }
                    else
                    {
                        this.StudentPortraits[ID].Portrait.mainTexture = this.UnknownPortrait;
                    }
                }
                else if (ID == 98)
                {
                    this.StudentPortraits[ID].Portrait.mainTexture = this.Counselor;
                }
                else if (ID == 99)
                {
                    this.StudentPortraits[ID].Portrait.mainTexture = this.Headmaster;
                }
                else if (ID == 100)
                {
                    this.StudentPortraits[ID].Portrait.mainTexture = this.InfoChan;
                }
            }
            if (PlayerGlobals.GetStudentPantyShot(this.JSON.Students[ID].Name))
            {
                this.StudentPortraits[ID].Panties.SetActive(true);
            }
            this.StudentPortraits[ID].Friend.SetActive(PlayerGlobals.GetStudentFriend(ID));
            if (StudentGlobals.GetStudentDying(ID) || StudentGlobals.GetStudentDead(ID))
            {
                this.StudentPortraits[ID].DeathShadow.SetActive(true);
            }
            if (SceneManager.GetActiveScene().name == "SchoolScene" && this.StudentManager.Students[ID] != null && this.StudentManager.Students[ID].Tranquil)
            {
                this.StudentPortraits[ID].DeathShadow.SetActive(true);
            }
            if (StudentGlobals.GetStudentArrested(ID))
            {
                this.StudentPortraits[ID].PrisonBars.SetActive(true);
                this.StudentPortraits[ID].DeathShadow.SetActive(true);
            }
        }
        yield break;
    }
Beispiel #22
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);
        }
    }
Beispiel #23
0
    // Token: 0x060018D8 RID: 6360 RVA: 0x000E5B8C File Offset: 0x000E3D8C
    private void UpdatePhotoSelection()
    {
        if (Input.GetButtonDown("A"))
        {
            if (!this.NamingBully)
            {
                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();
            }
            else if (this.Photographs[this.CurrentIndex].mainTexture != this.NoPhoto && PlayerGlobals.GetBullyPhoto(this.CurrentIndex) > 0)
            {
                this.Yandere.Police.EndOfDay.FragileTarget = PlayerGlobals.GetBullyPhoto(this.CurrentIndex);
                this.Yandere.StudentManager.FragileOfferHelp.Continue();
                this.PauseScreen.MainMenu.SetActive(true);
                this.Yandere.RPGCamera.enabled = true;
                base.gameObject.SetActive(false);
                this.PauseScreen.Show = false;
                this.PromptBar.Show   = false;
                this.NamingBully      = false;
                Time.timeScale        = 1f;
            }
        }
        if (!this.NamingBully && 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.SetGuitarPhoto(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 (Input.GetButtonDown("Y") && PlayerGlobals.GetSenpaiPhoto(this.CurrentIndex))
        {
            int currentIndex2 = this.CurrentIndex;
            PlayerGlobals.SetSenpaiPhoto(currentIndex2, false);
            this.Hearts[currentIndex2].gameObject.SetActive(false);
            this.CanAdjust       = false;
            this.Yandere.Sanity += 20f;
            this.UpdateButtonPrompts();
            AudioSource.PlayClipAtPoint(this.Sighs[UnityEngine.Random.Range(0, this.Sighs.Length)], this.Yandere.Head.position);
        }
        if (this.InputManager.TappedRight)
        {
            this.Column = ((this.Column < 5) ? (this.Column + 1) : 1);
        }
        if (this.InputManager.TappedLeft)
        {
            this.Column = ((this.Column > 1) ? (this.Column - 1) : 5);
        }
        if (this.InputManager.TappedUp)
        {
            this.Row = ((this.Row > 1) ? (this.Row - 1) : 5);
        }
        if (this.InputManager.TappedDown)
        {
            this.Row = ((this.Row < 5) ? (this.Row + 1) : 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);
        }
    }