Пример #1
0
 // Token: 0x0600035D RID: 861 RVA: 0x0003A8D4 File Offset: 0x00038CD4
 public static void DeleteAll()
 {
     Globals.Delete("Club");
     foreach (ClubType clubType in ClubGlobals.KeysOfClubClosed())
     {
         string str = "ClubClosed_";
         int    num = (int)clubType;
         Globals.Delete(str + num.ToString());
     }
     foreach (ClubType clubType2 in ClubGlobals.KeysOfClubKicked())
     {
         string str2 = "ClubKicked_";
         int    num2 = (int)clubType2;
         Globals.Delete(str2 + num2.ToString());
     }
     foreach (ClubType clubType3 in ClubGlobals.KeysOfQuitClub())
     {
         string str3 = "QuitClub_";
         int    num3 = (int)clubType3;
         Globals.Delete(str3 + num3.ToString());
     }
     KeysHelper.Delete("ClubClosed_");
     KeysHelper.Delete("ClubKicked_");
     KeysHelper.Delete("QuitClub_");
 }
Пример #2
0
    // Token: 0x0600071D RID: 1821 RVA: 0x0006C8D8 File Offset: 0x0006ACD8
    public static ClubSaveData ReadFromGlobals()
    {
        ClubSaveData clubSaveData = new ClubSaveData();

        clubSaveData.club = ClubGlobals.Club;
        foreach (ClubType clubType in ClubGlobals.KeysOfClubClosed())
        {
            if (ClubGlobals.GetClubClosed(clubType))
            {
                clubSaveData.clubClosed.Add(clubType);
            }
        }
        foreach (ClubType clubType2 in ClubGlobals.KeysOfClubKicked())
        {
            if (ClubGlobals.GetClubKicked(clubType2))
            {
                clubSaveData.clubKicked.Add(clubType2);
            }
        }
        foreach (ClubType clubType3 in ClubGlobals.KeysOfQuitClub())
        {
            if (ClubGlobals.GetQuitClub(clubType3))
            {
                clubSaveData.quitClub.Add(clubType3);
            }
        }
        return(clubSaveData);
    }
Пример #3
0
 // Token: 0x06000235 RID: 565 RVA: 0x0002F248 File Offset: 0x0002D648
 private void Start()
 {
     this.TrapSwing = 12.15f;
     this.Yandere   = GameObject.Find("YandereChan").GetComponent <YandereScript>();
     if (this.Swinging)
     {
         this.OriginX[0] = this.Doors[0].transform.localPosition.z;
         if (this.OriginX.Length > 1)
         {
             this.OriginX[1] = this.Doors[1].transform.localPosition.z;
         }
     }
     if (this.Labels.Length > 0)
     {
         this.Labels[0].text = this.RoomName;
         this.Labels[1].text = this.RoomName;
         this.UpdatePlate();
     }
     if (this.Club != ClubType.None && ClubGlobals.GetClubClosed(this.Club))
     {
         this.Prompt.Hide();
         this.Prompt.enabled = false;
         base.enabled        = false;
     }
 }
    // 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;
    }
Пример #5
0
 private void Start()
 {
     this.Identifier     = base.GetComponent <YanSaveIdentifier>();
     this.TrapSwing      = 12.15f;
     this.Yandere        = GameObject.Find("YandereChan").GetComponent <YandereScript>();
     this.StudentManager = this.Yandere.StudentManager;
     this.StudentManager.Doors[this.StudentManager.DoorID] = this;
     this.StudentManager.DoorID++;
     this.DoorID = this.StudentManager.DoorID;
     if (this.Identifier != null)
     {
         this.Identifier.ObjectID = "Door_" + this.DoorID;
     }
     else
     {
         Debug.Log(base.gameObject.name + " doesn't have an identifier.");
     }
     if (this.StudentManager.EastBathroomArea.bounds.Contains(base.transform.position) || this.StudentManager.WestBathroomArea.bounds.Contains(base.transform.position))
     {
         this.RoomName = "Toilet Stall";
     }
     if (this.Swinging)
     {
         this.OriginX[0] = this.Doors[0].transform.localPosition.z;
         if (this.OriginX.Length > 1)
         {
             this.OriginX[1] = this.Doors[1].transform.localPosition.z;
         }
         this.TimeLimit = 1f;
     }
     if (this.Labels.Length != 0)
     {
         this.Labels[0].text = this.RoomName;
         this.Labels[1].text = this.RoomName;
         this.UpdatePlate();
     }
     if (this.Club != ClubType.None && ClubGlobals.GetClubClosed(this.Club))
     {
         this.Prompt.Hide();
         this.Prompt.enabled = false;
         base.enabled        = false;
     }
     if (this.DisableSelf)
     {
         base.enabled = false;
     }
     this.Prompt.Student   = false;
     this.Prompt.Door      = true;
     this.DoorColliders    = new Collider[2];
     this.DoorColliders[0] = this.Doors[0].gameObject.GetComponent <BoxCollider>();
     if (this.DoorColliders[0] == null)
     {
         this.DoorColliders[0] = this.Doors[0].GetChild(0).gameObject.GetComponent <BoxCollider>();
     }
     if (this.Doors.Length > 1)
     {
         this.DoorColliders[1] = this.Doors[1].GetComponent <BoxCollider>();
     }
 }
 // Token: 0x0600017C RID: 380 RVA: 0x000192CC File Offset: 0x000176CC
 private void Start()
 {
     this.ClubWindow.ActivityWindow.localScale = Vector3.zero;
     this.ClubWindow.ActivityWindow.gameObject.SetActive(false);
     this.ActivateClubBenefit();
     this.ID = 0;
     while (this.ID < this.ClubArray.Length)
     {
         if (ClubGlobals.GetClubClosed(this.ClubArray[this.ID]))
         {
             this.ClubPatrolPoints[this.ID].transform.position = new Vector3(this.ClubPatrolPoints[this.ID].transform.position.x, this.ClubPatrolPoints[this.ID].transform.position.y, 20f);
         }
         this.ID++;
     }
     this.ID = 0;
 }
Пример #7
0
 // Token: 0x0600071E RID: 1822 RVA: 0x0006C9B0 File Offset: 0x0006ADB0
 public static void WriteToGlobals(ClubSaveData data)
 {
     ClubGlobals.Club = data.club;
     foreach (ClubType clubID in data.clubClosed)
     {
         ClubGlobals.SetClubClosed(clubID, true);
     }
     foreach (ClubType clubID2 in data.clubKicked)
     {
         ClubGlobals.SetClubKicked(clubID2, true);
     }
     foreach (ClubType clubID3 in data.quitClub)
     {
         ClubGlobals.SetQuitClub(clubID3, true);
     }
 }
 // Token: 0x06001297 RID: 4759 RVA: 0x0008C414 File Offset: 0x0008A614
 private void Start()
 {
     this.Octodog.SetActive(false);
     this.Sausage.SetActive(false);
     this.Rotation = -90f;
     Transform[] octodogs = this.Octodogs;
     for (int i = 0; i < octodogs.Length; i++)
     {
         octodogs[i].gameObject.SetActive(false);
     }
     this.EventSubtitle.transform.localScale = Vector3.zero;
     this.EventCheck = true;
     if (ClubGlobals.GetClubClosed(ClubType.Cooking))
     {
         base.enabled = false;
     }
 }
Пример #9
0
    // Token: 0x0600125F RID: 4703 RVA: 0x00084090 File Offset: 0x00082290
    private void Start()
    {
        this.ClubWindow.ActivityWindow.localScale = Vector3.zero;
        this.ClubWindow.ActivityWindow.gameObject.SetActive(false);
        this.ActivateClubBenefit();
        int num = 0;

        this.ID = 1;
        while (this.ID < this.ClubArray.Length)
        {
            if (ClubGlobals.GetClubClosed(this.ClubArray[this.ID]))
            {
                this.ClubPosters[this.ID].SetActive(false);
                if (this.ClubArray[this.ID] == ClubType.Gardening)
                {
                    this.ClubPatrolPoints[this.ID].transform.position = new Vector3(-36f, this.ClubPatrolPoints[this.ID].transform.position.y, this.ClubPatrolPoints[this.ID].transform.position.z);
                }
                else if (this.ClubArray[this.ID] == ClubType.Gaming)
                {
                    this.ClubPatrolPoints[this.ID].transform.position = new Vector3(20f, this.ClubPatrolPoints[this.ID].transform.position.y, this.ClubPatrolPoints[this.ID].transform.position.z);
                }
                else if (this.ClubArray[this.ID] != ClubType.Sports)
                {
                    this.ClubPatrolPoints[this.ID].transform.position = new Vector3(this.ClubPatrolPoints[this.ID].transform.position.x, this.ClubPatrolPoints[this.ID].transform.position.y, 20f);
                }
                num++;
            }
            this.ID++;
        }
        if (num > 10)
        {
            this.StudentManager.NoClubMeeting = true;
        }
        if (ClubGlobals.GetClubClosed(this.ClubArray[2]))
        {
            this.StudentManager.HidingSpots.List[56] = this.StudentManager.Hangouts.List[56];
            this.StudentManager.HidingSpots.List[57] = this.StudentManager.Hangouts.List[57];
            this.StudentManager.HidingSpots.List[58] = this.StudentManager.Hangouts.List[58];
            this.StudentManager.HidingSpots.List[59] = this.StudentManager.Hangouts.List[59];
            this.StudentManager.HidingSpots.List[60] = this.StudentManager.Hangouts.List[60];
            this.StudentManager.SleuthPhase          = 3;
        }
        this.ID = 0;
    }
 private void UpdateAdditionalInfo(int ID)
 {
     Debug.Log("EventGlobals.Event1 is: " + EventGlobals.Event1.ToString());
     if (ID == 11)
     {
         this.Strings[1]     = (EventGlobals.OsanaEvent1 ? "May be a victim of blackmail." : "?????");
         this.Strings[2]     = (EventGlobals.OsanaEvent2 ? "Has a stalker." : "?????");
         this.InfoLabel.text = this.Strings[1] + "\n\n" + this.Strings[2];
         return;
     }
     if (ID == 30)
     {
         this.Strings[1]     = (EventGlobals.Event1 ? "May be a victim of domestic abuse." : "?????");
         this.Strings[2]     = (EventGlobals.Event2 ? "May be engaging in compensated dating in Shisuta Town." : "?????");
         this.InfoLabel.text = this.Strings[1] + "\n\n" + this.Strings[2];
         return;
     }
     if (ID == 51)
     {
         if (ClubGlobals.GetClubClosed(ClubType.LightMusic))
         {
             this.InfoLabel.text = "Disbanded the Light Music Club, dyed her hair back to its original color, removed her piercings, and stopped socializing with others.";
             return;
         }
         this.InfoLabel.text = this.JSON.Students[ID].Info;
         return;
     }
     else
     {
         if (StudentGlobals.GetStudentReplaced(ID))
         {
             this.InfoLabel.text = "No additional information is available at this time.";
             return;
         }
         if (this.JSON.Students[ID].Info == string.Empty)
         {
             this.InfoLabel.text = "No additional information is available at this time.";
             return;
         }
         this.InfoLabel.text = this.JSON.Students[ID].Info;
         return;
     }
 }
Пример #11
0
 // Token: 0x0600149E RID: 5278 RVA: 0x000B4B20 File Offset: 0x000B2D20
 public static void DeleteAll()
 {
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Club");
     foreach (ClubType clubType in ClubGlobals.KeysOfClubClosed())
     {
         object[] array2 = new object[4];
         array2[0] = "Profile_";
         array2[1] = GameGlobals.Profile;
         array2[2] = "_ClubClosed_";
         int num  = 3;
         int num2 = (int)clubType;
         array2[num] = num2.ToString();
         Globals.Delete(string.Concat(array2));
     }
     foreach (ClubType clubType2 in ClubGlobals.KeysOfClubKicked())
     {
         object[] array3 = new object[4];
         array3[0] = "Profile_";
         array3[1] = GameGlobals.Profile;
         array3[2] = "_ClubKicked_";
         int num3 = 3;
         int num2 = (int)clubType2;
         array3[num3] = num2.ToString();
         Globals.Delete(string.Concat(array3));
     }
     foreach (ClubType clubType3 in ClubGlobals.KeysOfQuitClub())
     {
         object[] array4 = new object[4];
         array4[0] = "Profile_";
         array4[1] = GameGlobals.Profile;
         array4[2] = "_QuitClub_";
         int num4 = 3;
         int num2 = (int)clubType3;
         array4[num4] = num2.ToString();
         Globals.Delete(string.Concat(array4));
     }
     KeysHelper.Delete("Profile_" + GameGlobals.Profile + "_ClubClosed_");
     KeysHelper.Delete("Profile_" + GameGlobals.Profile + "_ClubKicked_");
     KeysHelper.Delete("Profile_" + GameGlobals.Profile + "_QuitClub_");
 }
Пример #12
0
 private void Start()
 {
     if (this.Student.StudentID != 71)
     {
         this.Prompt.transform.parent.gameObject.SetActive(false);
         base.enabled = false;
         return;
     }
     this.PickpocketMinigame = this.Student.StudentManager.PickpocketMinigame;
     if (this.Student.StudentID == this.Student.StudentManager.NurseID)
     {
         this.ID = 2;
         return;
     }
     if (ClubGlobals.GetClubClosed(this.Student.OriginalClub))
     {
         this.Prompt.transform.parent.gameObject.SetActive(false);
         base.enabled = false;
         return;
     }
     this.Prompt.Label[3].text = "     Steal Shed Key";
     this.NotNurse             = true;
 }
Пример #13
0
 // Token: 0x06000277 RID: 631 RVA: 0x000329B8 File Offset: 0x00030DB8
 public void UpdateScene()
 {
     if (this.PoliceArrived)
     {
         if (Input.GetKeyDown(KeyCode.Backspace))
         {
             this.Finish();
         }
         if (this.Phase == 1)
         {
             if (this.Police.PoisonScene)
             {
                 this.Label.text = "The police and the paramedics arrive at school.";
                 this.Phase      = 103;
             }
             else if (this.Police.DrownScene)
             {
                 this.Label.text = "The police arrive at school.";
                 this.Phase      = 104;
             }
             else if (this.Police.ElectroScene)
             {
                 this.Label.text = "The police arrive at school.";
                 this.Phase      = 105;
             }
             else if (this.Police.MurderSuicideScene)
             {
                 this.Label.text = "The police arrive at school, and discover what appears to be the scene of a murder-suicide.";
                 this.Phase++;
             }
             else
             {
                 this.Label.text = "The police arrive at school.";
                 if (this.Police.SuicideScene)
                 {
                     this.Phase = 102;
                 }
                 else
                 {
                     this.Phase++;
                 }
             }
         }
         else if (this.Phase == 2)
         {
             if (this.Police.Corpses == 0)
             {
                 if (!this.Police.PoisonScene && !this.Police.SuicideScene)
                 {
                     this.Label.text = "The police are unable to locate any corpses on school grounds.";
                     this.Phase++;
                 }
                 else
                 {
                     this.Label.text = "The police are unable to locate any other corpses on school grounds.";
                     this.Phase++;
                 }
             }
             else
             {
                 List <string> list = new List <string>();
                 foreach (RagdollScript ragdollScript in this.Police.CorpseList)
                 {
                     if (ragdollScript != null)
                     {
                         this.VictimArray[this.Corpses] = ragdollScript.Student.StudentID;
                         list.Add(ragdollScript.Student.Name);
                         this.Corpses++;
                     }
                 }
                 list.Sort();
                 string text = "The police discover the corpse" + ((list.Count != 1) ? "s" : string.Empty) + " of ";
                 if (list.Count == 1)
                 {
                     this.Label.text = text + list[0] + ".";
                 }
                 else if (list.Count == 2)
                 {
                     this.Label.text = string.Concat(new string[]
                     {
                         text,
                         list[0],
                         " and ",
                         list[1],
                         "."
                     });
                 }
                 else
                 {
                     StringBuilder stringBuilder = new StringBuilder();
                     for (int j = 0; j < list.Count - 1; j++)
                     {
                         stringBuilder.Append(list[j] + ", ");
                     }
                     stringBuilder.Append("and " + list[list.Count - 1] + ".");
                     this.Label.text = text + stringBuilder.ToString();
                 }
                 this.Phase++;
             }
         }
         else if (this.Phase == 3)
         {
             this.WeaponManager.CheckWeapons();
             if (this.WeaponManager.MurderWeapons == 0)
             {
                 if (this.Weapons == 0)
                 {
                     this.Label.text = "The police are unable to locate any murder weapons.";
                     this.Phase     += 2;
                 }
                 else
                 {
                     this.Phase += 2;
                     this.UpdateScene();
                 }
             }
             else
             {
                 this.MurderWeapon = null;
                 this.ID           = 0;
                 while (this.ID < this.WeaponManager.Weapons.Length)
                 {
                     if (this.MurderWeapon == null)
                     {
                         WeaponScript weaponScript = this.WeaponManager.Weapons[this.ID];
                         if (weaponScript != null && weaponScript.Blood.enabled)
                         {
                             weaponScript.Blood.enabled = false;
                             this.MurderWeapon          = weaponScript;
                             this.WeaponID = this.ID;
                         }
                     }
                     this.ID++;
                 }
                 List <string> list2 = new List <string>();
                 this.ID = 0;
                 while (this.ID < this.MurderWeapon.Victims.Length)
                 {
                     if (this.MurderWeapon.Victims[this.ID])
                     {
                         list2.Add(this.JSON.Students[this.ID].Name);
                     }
                     this.ID++;
                 }
                 list2.Sort();
                 this.Victims = list2.Count;
                 string name  = this.MurderWeapon.Name;
                 string str   = (name[name.Length - 1] == 's') ? (name.ToLower() + " that are") : ("a " + name.ToLower() + " that is");
                 string text2 = "The police discover " + str + " stained with the blood of ";
                 if (list2.Count == 1)
                 {
                     this.Label.text = text2 + list2[0] + ".";
                 }
                 else if (list2.Count == 2)
                 {
                     this.Label.text = string.Concat(new string[]
                     {
                         text2,
                         list2[0],
                         " and ",
                         list2[1],
                         "."
                     });
                 }
                 else
                 {
                     StringBuilder stringBuilder2 = new StringBuilder();
                     for (int k = 0; k < list2.Count - 1; k++)
                     {
                         stringBuilder2.Append(list2[k] + ", ");
                     }
                     stringBuilder2.Append("and " + list2[list2.Count - 1] + ".");
                     this.Label.text = text2 + stringBuilder2.ToString();
                 }
                 this.Weapons++;
                 this.Phase++;
             }
         }
         else if (this.Phase == 4)
         {
             if (this.MurderWeapon.FingerprintID == 0)
             {
                 this.Label.text = "The police find no fingerprints on the weapon.";
                 this.Phase      = 3;
             }
             else if (this.MurderWeapon.FingerprintID == 100)
             {
                 this.Label.text = "The police find Yandere-chan's fingerprints on the weapon.";
                 this.Phase      = 100;
             }
             else
             {
                 this.Label.text = "The police find the fingerprints of " + this.JSON.Students[this.WeaponManager.Weapons[this.WeaponID].FingerprintID].Name + " on the weapon.";
                 this.Phase      = 101;
             }
         }
         else if (this.Phase == 5)
         {
             if (SchoolGlobals.HighSecurity)
             {
                 if (!this.SecuritySystem.Evidence)
                 {
                     this.Label.text = "The police investigate the security camera recordings, but cannot find anything incriminating in the footage.";
                     this.Phase++;
                 }
                 else if (!this.SecuritySystem.Masked)
                 {
                     this.Label.text = "The police investigate the security camera recordings, and find incriminating footage of Yandere-chan.";
                     this.Phase      = 100;
                 }
                 else
                 {
                     this.Label.text          = "The police investigate the security camera recordings, and find footage of a suspicious masked person.";
                     this.Police.MaskReported = true;
                     this.Phase = 100;
                 }
             }
             else
             {
                 this.Phase++;
                 this.UpdateScene();
             }
         }
         else if (this.Phase == 6)
         {
             if (this.Yandere.Sanity > 33.33333f)
             {
                 if (this.Yandere.Bloodiness > 0f || (this.Yandere.Gloved && this.Yandere.Gloves.Blood.enabled))
                 {
                     if (this.Arrests == 0)
                     {
                         this.Label.text = "The police notice that Yandere-chan's clothing is bloody. They confirm that the blood is not hers. Yandere-chan is unable to convince the police that she did not commit murder.";
                         this.Phase      = 100;
                     }
                     else
                     {
                         this.Label.text = "The police notice that Yandere-chan's clothing is bloody. They confirm that the blood is not hers. Yandere-chan is able to convince the police that she was splashed with blood while witnessing a murder.";
                         if (!this.TranqCase.Occupied)
                         {
                             this.Phase = 8;
                         }
                         else
                         {
                             this.Phase++;
                         }
                     }
                 }
                 else if (this.Police.BloodyClothing > 0)
                 {
                     this.Label.text = "The police find bloody clothing that has traces of Yandere-chan's DNA. Yandere-chan is unable to convince the police that she did not commit murder.";
                     this.Phase      = 100;
                 }
                 else
                 {
                     this.Label.text = "The police question all students in the school, including Yandere-chan. The police are unable to link Yandere-chan to any crimes.";
                     if (!this.TranqCase.Occupied)
                     {
                         this.Phase = 8;
                     }
                     else if (this.TranqCase.VictimID == this.ArrestID)
                     {
                         this.Phase = 8;
                     }
                     else
                     {
                         this.Phase++;
                     }
                 }
             }
             else if (this.Yandere.Bloodiness == 0f)
             {
                 this.Label.text = "The police question Yandere-chan, who exhibits extremely unusual behavior. The police decide to investigate Yandere-chan further, and eventually learn of her crimes.";
                 this.Phase      = 100;
             }
             else
             {
                 this.Label.text = "The police notice that Yandere-chan is covered in blood and exhibiting extremely unusual behavior. The police decide to investigate Yandere-chan further, and eventually learn of her crimes.";
                 this.Phase      = 100;
             }
         }
         else if (this.Phase == 7)
         {
             this.Label.text = "The police discover " + this.JSON.Students[this.TranqCase.VictimID].Name + " inside of a musical instrument case. However, she is unable to recall how she got inside of the case. The police are unable to determine what happened.";
             StudentGlobals.SetStudentMissing(this.TranqCase.VictimID, false);
             this.TranqCase.VictimID = 0;
             this.TranqCase.Occupied = false;
             this.Phase++;
         }
         else if (this.Phase == 8)
         {
             if (this.Police.MaskReported)
             {
                 GameGlobals.MasksBanned = true;
                 if (this.SecuritySystem.Masked)
                 {
                     this.Label.text = "In security camera footage, the killer was wearing a mask. As a result, the police are unable to gather meaningful information about the murderer. To prevent this from ever happening again, the Headmaster decides to ban all masks from the school from this day forward.";
                 }
                 else
                 {
                     this.Label.text = "Witnesses state that the killer was wearing a mask. As a result, the police are unable to gather meaningful information about the murderer. To prevent this from ever happening again, the Headmaster decides to ban all masks from the school from this day forward.";
                 }
                 this.Police.MaskReported = false;
                 this.Phase++;
             }
             else
             {
                 this.Phase++;
                 this.UpdateScene();
             }
         }
         else if (this.Phase == 9)
         {
             if (this.Arrests == 0)
             {
                 if (this.DeadPerps == 0)
                 {
                     this.Label.text = "The police do not have enough evidence to perform an arrest. The police investigation ends, and students are free to leave.";
                     this.Phase++;
                 }
                 else
                 {
                     this.Label.text = "The police conclude that a murder-suicide took place, but are unable to take any further action. The police investigation ends, and students are free to leave.";
                     this.Phase++;
                 }
             }
             else
             {
                 this.Label.text = "The police believe that they have arrested the perpetrator of the crime. The police investigation ends, and students are free to leave.";
                 this.Phase++;
             }
         }
         else if (this.Phase == 10)
         {
             this.Label.text = "Yandere-chan stalks Senpai until he has returned home safely, and then returns to her own home.";
             this.Phase++;
         }
         else if (this.Phase == 11)
         {
             if (!StudentGlobals.GetStudentDying(7) && !StudentGlobals.GetStudentDead(7) && !StudentGlobals.GetStudentArrested(7))
             {
                 if (this.Counselor.LectureID > 0)
                 {
                     this.Counselor.Lecturing = true;
                     base.enabled             = false;
                 }
                 else
                 {
                     this.Phase++;
                     this.UpdateScene();
                 }
             }
             else
             {
                 this.Phase++;
                 this.UpdateScene();
             }
         }
         else if (this.Phase == 12)
         {
             Debug.Log("Phase 12.");
             if (SchemeGlobals.GetSchemeStage(2) == 3)
             {
                 if (!StudentGlobals.GetStudentDying(7) && !StudentGlobals.GetStudentDead(7) && !StudentGlobals.GetStudentArrested(7))
                 {
                     this.Label.text = "Kokona discovers Sakyu's ring inside of her book bag. She returns the ring to Sakyu, who decides to never let it out of her sight again.";
                     SchemeGlobals.SetSchemeStage(2, 100);
                 }
             }
             else if (SchemeGlobals.GetSchemeStage(5) > 1 && SchemeGlobals.GetSchemeStage(5) < 5)
             {
                 this.Label.text = "A faculty member discovers that an answer sheet for an upcoming test is missing. She changes all of the questions for the test and keeps the new answer sheet with her at all times.";
                 SchemeGlobals.SetSchemeStage(5, 100);
             }
             else
             {
                 this.Phase++;
                 this.UpdateScene();
             }
         }
         else if (this.Phase == 13)
         {
             Debug.Log("Phase 13.");
             this.ClubClosed = false;
             this.ClubKicked = false;
             if (this.ClubID < this.ClubArray.Length)
             {
                 if (!ClubGlobals.GetClubClosed(this.ClubArray[this.ClubID]))
                 {
                     this.ClubManager.CheckClub(this.ClubArray[this.ClubID]);
                     if (this.ClubManager.ClubMembers < 5)
                     {
                         ClubGlobals.SetClubClosed(this.ClubArray[this.ClubID], true);
                         this.Label.text = "The " + this.ClubNames[this.ClubID].ToString() + " no longer has enough members to remain operational. The school forces the club to disband.";
                         this.ClubClosed = true;
                         if (ClubGlobals.Club == this.ClubArray[this.ClubID])
                         {
                             ClubGlobals.Club = ClubType.None;
                         }
                     }
                     if (this.ClubManager.LeaderMissing)
                     {
                         ClubGlobals.SetClubClosed(this.ClubArray[this.ClubID], true);
                         this.Label.text = string.Concat(new string[]
                         {
                             "The leader of the ",
                             this.ClubNames[this.ClubID].ToString(),
                             " has gone missing. The ",
                             this.ClubNames[this.ClubID].ToString(),
                             " cannot operate without its leader. The club disbands."
                         });
                         this.ClubClosed = true;
                         if (ClubGlobals.Club == this.ClubArray[this.ClubID])
                         {
                             ClubGlobals.Club = ClubType.None;
                         }
                     }
                     else if (this.ClubManager.LeaderDead)
                     {
                         ClubGlobals.SetClubClosed(this.ClubArray[this.ClubID], true);
                         this.Label.text = "The leader of the " + this.ClubNames[this.ClubID].ToString() + " is dead. The remaining members of the club decide to disband the club.";
                         this.ClubClosed = true;
                         if (ClubGlobals.Club == this.ClubArray[this.ClubID])
                         {
                             ClubGlobals.Club = ClubType.None;
                         }
                     }
                 }
                 if (!ClubGlobals.GetClubClosed(this.ClubArray[this.ClubID]) && !ClubGlobals.GetClubKicked(this.ClubArray[this.ClubID]) && ClubGlobals.Club == this.ClubArray[this.ClubID])
                 {
                     this.ClubManager.CheckGrudge(this.ClubArray[this.ClubID]);
                     if (this.ClubManager.LeaderGrudge)
                     {
                         this.Label.text = string.Concat(new string[]
                         {
                             "Yandere-chan receives a text message from the president of the ",
                             this.ClubNames[this.ClubID].ToString(),
                             ". Yandere-chan is no longer a member of the ",
                             this.ClubNames[this.ClubID].ToString(),
                             ", and is not welcome in the ",
                             this.ClubNames[this.ClubID].ToString(),
                             " room."
                         });
                         ClubGlobals.SetClubKicked(this.ClubArray[this.ClubID], true);
                         ClubGlobals.Club = ClubType.None;
                         this.ClubKicked  = true;
                     }
                     else if (this.ClubManager.ClubGrudge)
                     {
                         this.Label.text = string.Concat(new string[]
                         {
                             "Yandere-chan receives a text message from the president of the ",
                             this.ClubNames[this.ClubID].ToString(),
                             ". There is someone in the ",
                             this.ClubNames[this.ClubID].ToString(),
                             " who hates and fears Yandere-chan. Yandere-chan is no longer a member of the ",
                             this.ClubNames[this.ClubID].ToString(),
                             ", and is not welcome in the ",
                             this.ClubNames[this.ClubID].ToString(),
                             " room."
                         });
                         ClubGlobals.SetClubKicked(this.ClubArray[this.ClubID], true);
                         ClubGlobals.Club = ClubType.None;
                         this.ClubKicked  = true;
                     }
                 }
                 if (!this.ClubClosed && !this.ClubKicked)
                 {
                     this.ClubID++;
                     this.UpdateScene();
                 }
             }
             else
             {
                 this.Phase++;
                 this.UpdateScene();
             }
         }
         else if (this.Phase == 14)
         {
             Debug.Log("Phase 14.");
             if (this.TranqCase.Occupied)
             {
                 this.Label.text = "Yandere-chan waits until the clock strikes midnight.\n\nUnder the cover of darkness, Yandere-chan travels back to school and sneaks inside of the main school building.\n\nYandere-chan returns to the instrument case that carries her unconscious victim.\n\nShe pushes the case back to her house, pretending to be a young musician returning home from a late-night show.\n\nYandere-chan drags the case down to her basement and ties up her victim.\n\nExhausted, Yandere-chan goes to sleep.";
                 this.Phase++;
             }
             else
             {
                 this.Phase++;
                 this.UpdateScene();
             }
         }
         else if (this.Phase == 15)
         {
             Debug.Log("Phase 15.");
             if (this.ErectFence)
             {
                 this.Label.text         = "To prevent any other students from falling off of the school rooftop, the school erects a fence around the roof.";
                 SchoolGlobals.RoofFence = true;
                 this.ErectFence         = false;
             }
             else
             {
                 this.Phase++;
                 this.UpdateScene();
             }
         }
         else if (this.Phase == 16)
         {
             Debug.Log("Phase 16.");
             if (this.Police.CouncilDeath)
             {
                 this.Label.text          = "The student council president has ordered the implementation of heightened security precautions. Security cameras and metal detectors are now present at school.";
                 this.Police.CouncilDeath = false;
             }
             else
             {
                 this.Phase++;
                 this.UpdateScene();
             }
         }
         else if (this.Phase == 17)
         {
             this.Finish();
         }
         else if (this.Phase == 100)
         {
             this.Label.text = "Yandere-chan is arrested by the police. She will never have Senpai.";
             this.GameOver   = true;
         }
         else if (this.Phase == 101)
         {
             int           fingerprintID = this.WeaponManager.Weapons[this.WeaponID].FingerprintID;
             StudentScript studentScript = this.StudentManager.Students[fingerprintID];
             if (studentScript.Alive)
             {
                 if (!studentScript.Tranquil)
                 {
                     this.Label.text = this.JSON.Students[fingerprintID].Name + " is arrested by the police.";
                     StudentGlobals.SetStudentArrested(fingerprintID, true);
                     this.Arrests++;
                 }
                 else
                 {
                     this.Label.text = this.JSON.Students[fingerprintID].Name + " is found asleep inside of a musical instrument case. The police assume that she hid herself inside of the box after committing murder, and arrest her.";
                     StudentGlobals.SetStudentArrested(fingerprintID, true);
                     this.ArrestID           = fingerprintID;
                     this.TranqCase.Occupied = false;
                     this.Arrests++;
                 }
             }
             else
             {
                 bool flag = false;
                 this.ID = 0;
                 while (this.ID < this.VictimArray.Length)
                 {
                     if (this.VictimArray[this.ID] == fingerprintID && !studentScript.MurderSuicide)
                     {
                         flag = true;
                     }
                     this.ID++;
                 }
                 if (!flag)
                 {
                     this.Label.text = this.JSON.Students[fingerprintID].Name + " is dead. The police cannot perform an arrest.";
                     this.DeadPerps++;
                 }
                 else
                 {
                     this.Label.text = this.JSON.Students[fingerprintID].Name + "'s fingerprints are on the same weapon that killed her. The police cannot solve this mystery.";
                 }
             }
             this.Phase = 6;
         }
         else if (this.Phase == 102)
         {
             if (this.Police.SuicideStudent.activeInHierarchy)
             {
                 this.Label.text = "The police inspect the corpse of a student who appears to have fallen to their death from the school rooftop. The police treat the incident as a murder case, and search the school for any other victims.";
                 this.ErectFence = true;
             }
             else
             {
                 this.Label.text = "The police attempt to determine whether or not a student fell to their death from the school rooftop. The police are unable to reach a conclusion.";
             }
             this.ID = 0;
             while (this.ID < this.Police.CorpseList.Length)
             {
                 RagdollScript ragdollScript2 = this.Police.CorpseList[this.ID];
                 if (ragdollScript2 != null && ragdollScript2.Suicide)
                 {
                     this.Police.Corpses--;
                 }
                 this.ID++;
             }
             this.Phase = 2;
         }
         else if (this.Phase == 103)
         {
             this.Label.text = "The paramedics attempt to resuscitate the poisoned student, but they are unable to revive her. The police treat the incident as a murder case, and search the school for any other victims.";
             this.ID         = 0;
             while (this.ID < this.Police.CorpseList.Length)
             {
                 RagdollScript ragdollScript3 = this.Police.CorpseList[this.ID];
                 if (ragdollScript3 != null && ragdollScript3.Poisoned)
                 {
                     this.Police.Corpses--;
                 }
                 this.ID++;
             }
             this.Phase = 2;
         }
         else if (this.Phase == 104)
         {
             this.Label.text = "The police determine that " + this.Police.DrownedStudentName + " died from drowning. The police treat her death as a possible murder, and search the school for any other victims.";
             this.ID         = 0;
             while (this.ID < this.Police.CorpseList.Length)
             {
                 RagdollScript ragdollScript4 = this.Police.CorpseList[this.ID];
                 if (ragdollScript4 != null && ragdollScript4.Drowned)
                 {
                     this.Police.Corpses--;
                 }
                 this.ID++;
             }
             this.Phase = 2;
         }
         else if (this.Phase == 105)
         {
             this.Label.text = "The police determine that " + this.Police.ElectrocutedStudentName + " died from being electrocuted. The police treat her death as a possible murder, and search the school for any other victims.";
             this.ID         = 0;
             while (this.ID < this.Police.CorpseList.Length)
             {
                 RagdollScript ragdollScript5 = this.Police.CorpseList[this.ID];
                 if (ragdollScript5 != null && ragdollScript5.Electrocuted)
                 {
                     this.Police.Corpses--;
                 }
                 this.ID++;
             }
             this.Phase = 2;
         }
     }
 }
    public void UpdateInfo(int ID)
    {
        StudentJson studentJson = this.JSON.Students[ID];

        if (studentJson.RealName == "")
        {
            this.NameLabel.transform.localPosition = new Vector3(-228f, 195f, 0f);
            this.RealNameLabel.text = "";
        }
        else
        {
            this.NameLabel.transform.localPosition = new Vector3(-228f, 210f, 0f);
            this.RealNameLabel.text = "Real Name: " + studentJson.RealName;
        }
        this.NameLabel.text = studentJson.Name;
        string text = string.Concat(studentJson.Class);

        text = text.Insert(1, "-");
        this.ClassLabel.text = "Class " + text;
        if (ID == 90 || ID > 96)
        {
            this.ClassLabel.text = "";
        }
        if (StudentGlobals.GetStudentReputation(ID) < 0)
        {
            this.ReputationLabel.text = StudentGlobals.GetStudentReputation(ID).ToString();
        }
        else if (StudentGlobals.GetStudentReputation(ID) > 0)
        {
            this.ReputationLabel.text = "+" + StudentGlobals.GetStudentReputation(ID).ToString();
        }
        else
        {
            this.ReputationLabel.text = "0";
        }
        this.ReputationBar.localPosition = new Vector3((float)StudentGlobals.GetStudentReputation(ID) * 0.96f, this.ReputationBar.localPosition.y, this.ReputationBar.localPosition.z);
        if (this.ReputationBar.localPosition.x > 96f)
        {
            this.ReputationBar.localPosition = new Vector3(96f, this.ReputationBar.localPosition.y, this.ReputationBar.localPosition.z);
        }
        if (this.ReputationBar.localPosition.x < -96f)
        {
            this.ReputationBar.localPosition = new Vector3(-96f, this.ReputationBar.localPosition.y, this.ReputationBar.localPosition.z);
        }
        this.PersonaLabel.text = Persona.PersonaNames[studentJson.Persona];
        if (studentJson.Persona == PersonaType.Strict && studentJson.Club == ClubType.GymTeacher && !StudentGlobals.GetStudentReplaced(ID))
        {
            this.PersonaLabel.text = "Friendly but Strict";
        }
        if (studentJson.Crush == 0)
        {
            this.CrushLabel.text = "None";
        }
        else if (studentJson.Crush == 99)
        {
            this.CrushLabel.text = "?????";
        }
        else
        {
            this.CrushLabel.text = this.JSON.Students[studentJson.Crush].Name;
        }
        if (studentJson.Club < ClubType.Teacher)
        {
            this.OccupationLabel.text = "Club";
        }
        else
        {
            this.OccupationLabel.text = "Occupation";
        }
        if (studentJson.Club < ClubType.Teacher)
        {
            this.ClubLabel.text = Club.ClubNames[studentJson.Club];
        }
        else
        {
            this.ClubLabel.text = Club.TeacherClubNames[studentJson.Class];
        }
        if (ClubGlobals.GetClubClosed(studentJson.Club))
        {
            this.ClubLabel.text = "No Club";
        }
        this.StrengthLabel.text = StudentInfoScript.StrengthStrings[studentJson.Strength];
        AudioSource component = base.GetComponent <AudioSource>();

        component.enabled = false;
        this.Static.SetActive(false);
        component.volume = 0f;
        component.Stop();
        if (ID < 12 || (ID > 20 && ID < 98))
        {
            WWW www = new WWW(string.Concat(new string[]
            {
                "file:///",
                Application.streamingAssetsPath,
                "/Portraits/Student_",
                ID.ToString(),
                ".png"
            }));
            if (!StudentGlobals.GetStudentReplaced(ID))
            {
                this.Portrait.mainTexture = www.texture;
            }
            else
            {
                this.Portrait.mainTexture = this.BlankPortrait;
            }
        }
        else if (ID == 98)
        {
            this.Portrait.mainTexture = this.GuidanceCounselor;
        }
        else if (ID == 99)
        {
            this.Portrait.mainTexture = this.Headmaster;
        }
        else if (ID == 100)
        {
            this.Portrait.mainTexture = this.InfoChan;
            this.Static.SetActive(true);
            if (!this.StudentInfoMenu.Gossiping && !this.StudentInfoMenu.Distracting && !this.StudentInfoMenu.CyberBullying && !this.StudentInfoMenu.CyberStalking)
            {
                component.enabled = true;
                component.volume  = 1f;
                component.Play();
            }
        }
        else
        {
            this.Portrait.mainTexture = this.StudentInfoMenu.RivalPortraits[ID];
        }
        this.UpdateAdditionalInfo(ID);
        this.CurrentStudent = ID;
        this.UpdateRepChart();
    }
 // Token: 0x06001270 RID: 4720 RVA: 0x000871F4 File Offset: 0x000853F4
 private void Update()
 {
     if (this.Window.activeInHierarchy)
     {
         if (this.Timer > 0.5f)
         {
             if (Input.GetButtonDown("A"))
             {
                 if (!this.Quitting && !this.Activity)
                 {
                     this.Yandere.Club = this.Club;
                     this.Yandere.ClubAccessory();
                     this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubJoin;
                     this.ClubManager.ActivateClubBenefit();
                 }
                 else if (this.Quitting)
                 {
                     this.ClubManager.DeactivateClubBenefit();
                     ClubGlobals.SetQuitClub(this.Club, true);
                     this.Yandere.Club = ClubType.None;
                     this.Yandere.ClubAccessory();
                     this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubQuit;
                     this.Quitting = false;
                     this.Yandere.StudentManager.UpdateBooths();
                 }
                 else if (this.Activity)
                 {
                     this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubActivity;
                 }
                 this.Yandere.TargetStudent.TalkTimer = 100f;
                 this.Yandere.TargetStudent.ClubPhase = 2;
                 this.PromptBar.ClearButtons();
                 this.PromptBar.Show = false;
                 this.Window.SetActive(false);
             }
             if (Input.GetButtonDown("B"))
             {
                 if (!this.Quitting && !this.Activity)
                 {
                     this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubJoin;
                 }
                 else if (this.Quitting)
                 {
                     this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubQuit;
                     this.Quitting = false;
                 }
                 else if (this.Activity)
                 {
                     this.Yandere.TargetStudent.Interaction = StudentInteractionType.ClubActivity;
                     this.Activity = false;
                 }
                 this.Yandere.TargetStudent.TalkTimer = 100f;
                 this.Yandere.TargetStudent.ClubPhase = 3;
                 this.PromptBar.ClearButtons();
                 this.PromptBar.Show = false;
                 this.Window.SetActive(false);
             }
             if (Input.GetButtonDown("X") && !this.Quitting && !this.Activity)
             {
                 if (!this.Warning.activeInHierarchy)
                 {
                     this.ClubInfo.SetActive(false);
                     this.Warning.SetActive(true);
                 }
                 else
                 {
                     this.ClubInfo.SetActive(true);
                     this.Warning.SetActive(false);
                 }
             }
         }
         this.Timer += Time.deltaTime;
     }
     if (this.PerformingActivity)
     {
         this.ActivityWindow.localScale = Vector3.Lerp(this.ActivityWindow.localScale, new Vector3(1f, 1f, 1f), Time.deltaTime * 10f);
         return;
     }
     if (this.ActivityWindow.localScale.x > 0.1f)
     {
         this.ActivityWindow.localScale = Vector3.Lerp(this.ActivityWindow.localScale, Vector3.zero, Time.deltaTime * 10f);
         return;
     }
     if (this.ActivityWindow.localScale.x != 0f)
     {
         this.ActivityWindow.localScale = Vector3.zero;
     }
 }
Пример #16
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;
 }
Пример #17
0
    // Token: 0x060001AA RID: 426 RVA: 0x0001F18C File Offset: 0x0001D58C
    public void Start()
    {
        if (this.Kidnapped)
        {
        }
        if (this.RightShoe != null)
        {
            this.RightShoe.SetActive(false);
            this.LeftShoe.SetActive(false);
        }
        this.ColorValue = new Color(1f, 1f, 1f, 1f);
        if (this.JSON == null)
        {
            this.JSON = this.Student.JSON;
        }
        string text = string.Empty;

        if (!this.Initialized)
        {
            this.Accessory  = int.Parse(this.JSON.Students[this.StudentID].Accessory);
            this.Hairstyle  = int.Parse(this.JSON.Students[this.StudentID].Hairstyle);
            this.Stockings  = this.JSON.Students[this.StudentID].Stockings;
            this.BreastSize = this.JSON.Students[this.StudentID].BreastSize;
            this.EyeType    = this.JSON.Students[this.StudentID].EyeType;
            this.HairColor  = this.JSON.Students[this.StudentID].Color;
            this.EyeColor   = this.JSON.Students[this.StudentID].Eyes;
            this.Club       = this.JSON.Students[this.StudentID].Club;
            text            = this.JSON.Students[this.StudentID].Name;
            if (this.Yandere)
            {
                this.Accessory  = 0;
                this.Hairstyle  = 1;
                this.Stockings  = "Black";
                this.BreastSize = 1f;
                this.HairColor  = "White";
                this.EyeColor   = "Black";
                this.Club       = ClubType.None;
            }
            this.OriginalStockings = this.Stockings;
            this.Initialized       = true;
        }
        if (text == "Random")
        {
            this.Randomize = true;
            if (!this.Male)
            {
                text = this.StudentManager.FirstNames[UnityEngine.Random.Range(0, this.StudentManager.FirstNames.Length)] + " " + this.StudentManager.LastNames[UnityEngine.Random.Range(0, this.StudentManager.LastNames.Length)];
                this.JSON.Students[this.StudentID].Name = text;
                this.Student.Name = text;
            }
            else
            {
                text = this.StudentManager.MaleNames[UnityEngine.Random.Range(0, this.StudentManager.MaleNames.Length)] + " " + this.StudentManager.LastNames[UnityEngine.Random.Range(0, this.StudentManager.LastNames.Length)];
                this.JSON.Students[this.StudentID].Name = text;
                this.Student.Name = text;
            }
            if (MissionModeGlobals.MissionMode && MissionModeGlobals.MissionTarget == this.StudentID)
            {
                this.JSON.Students[this.StudentID].Name = MissionModeGlobals.MissionTargetName;
                this.Student.Name = MissionModeGlobals.MissionTargetName;
                text = MissionModeGlobals.MissionTargetName;
            }
        }
        if (this.Randomize)
        {
            this.Teacher    = false;
            this.BreastSize = UnityEngine.Random.Range(0.5f, 2f);
            this.Accessory  = 0;
            this.Club       = ClubType.None;
            if (!this.Male)
            {
                this.Hairstyle = 99;
                while (this.Hairstyle > 19)
                {
                    this.Hairstyle = UnityEngine.Random.Range(1, this.FemaleHair.Length - 1);
                }
            }
            else
            {
                this.SkinColor = UnityEngine.Random.Range(0, this.SkinTextures.Length);
                this.Hairstyle = UnityEngine.Random.Range(1, this.MaleHair.Length);
            }
        }
        if (!this.Male)
        {
            this.RightBreast.localScale = new Vector3(this.BreastSize, this.BreastSize, this.BreastSize);
            this.LeftBreast.localScale  = new Vector3(this.BreastSize, this.BreastSize, this.BreastSize);
            if (this.StudentID == 32 && !this.Kidnapped && SceneManager.GetActiveScene().name == "PortraitScene")
            {
                this.Character.GetComponent <Animation>().Play("f02_socialCameraPose_00");
                base.transform.position = new Vector3(base.transform.position.x, base.transform.position.y + 0.05f, base.transform.position.z);
            }
        }
        else
        {
            foreach (GameObject gameObject in this.GaloAccessories)
            {
                gameObject.SetActive(false);
            }
            if (this.Club == ClubType.Occult)
            {
                this.Character.GetComponent <Animation>()["sadFace_00"].layer = 1;
                this.Character.GetComponent <Animation>().Play("sadFace_00");
                this.Character.GetComponent <Animation>()["sadFace_00"].weight = 1f;
            }
            if (this.StudentID == 13 && StudentGlobals.CustomSuitor)
            {
                if (StudentGlobals.CustomSuitorHair > 0)
                {
                    this.Hairstyle = StudentGlobals.CustomSuitorHair;
                }
                if (StudentGlobals.CustomSuitorAccessory > 0)
                {
                    this.Accessory = StudentGlobals.CustomSuitorAccessory;
                    if (this.Accessory == 1)
                    {
                        Transform transform = this.MaleAccessories[1].transform;
                        transform.localScale = new Vector3(1.02f, transform.localScale.y, 1.062f);
                    }
                }
                if (StudentGlobals.CustomSuitorBlonde > 0)
                {
                    this.HairColor = "Yellow";
                }
                if (StudentGlobals.CustomSuitorJewelry > 0)
                {
                    foreach (GameObject gameObject2 in this.GaloAccessories)
                    {
                        gameObject2.SetActive(true);
                    }
                }
            }
        }
        if (this.Club == ClubType.Teacher)
        {
            this.MyRenderer.sharedMesh = this.TeacherMesh;
            this.Teacher = true;
        }
        else if (this.Club == ClubType.GymTeacher)
        {
            if (!StudentGlobals.GetStudentReplaced(this.StudentID))
            {
                this.Character.GetComponent <Animation>()["f02_smile_00"].layer = 1;
                this.Character.GetComponent <Animation>().Play("f02_smile_00");
                this.Character.GetComponent <Animation>()["f02_smile_00"].weight = 1f;
                this.RightEyeRenderer.gameObject.SetActive(false);
                this.LeftEyeRenderer.gameObject.SetActive(false);
            }
            this.MyRenderer.sharedMesh = this.CoachMesh;
            this.Teacher = true;
        }
        else if (this.Club == ClubType.Nurse)
        {
            this.MyRenderer.sharedMesh = this.NurseMesh;
            this.Teacher = true;
        }
        else if (this.Club == ClubType.Council)
        {
            string str = string.Empty;
            if (this.StudentID == 86)
            {
                str = "Strict";
            }
            if (this.StudentID == 87)
            {
                str = "Casual";
            }
            if (this.StudentID == 88)
            {
                str = "Grace";
            }
            if (this.StudentID == 89)
            {
                str = "Edgy";
            }
            this.Character.GetComponent <Animation>()["f02_faceCouncil" + str + "_00"].layer = 1;
            this.Character.GetComponent <Animation>().Play("f02_faceCouncil" + str + "_00");
            this.Character.GetComponent <Animation>()["f02_idleCouncil" + str + "_00"].time = 1f;
            this.Character.GetComponent <Animation>().Play("f02_idleCouncil" + str + "_00");
        }
        foreach (GameObject gameObject3 in this.FemaleAccessories)
        {
            if (gameObject3 != null)
            {
                gameObject3.SetActive(false);
            }
        }
        foreach (GameObject gameObject4 in this.MaleAccessories)
        {
            if (gameObject4 != null)
            {
                gameObject4.SetActive(false);
            }
        }
        foreach (GameObject gameObject5 in this.ClubAccessories)
        {
            if (gameObject5 != null)
            {
                gameObject5.SetActive(false);
            }
        }
        foreach (GameObject gameObject6 in this.TeacherAccessories)
        {
            if (gameObject6 != null)
            {
                gameObject6.SetActive(false);
            }
        }
        foreach (GameObject gameObject7 in this.TeacherHair)
        {
            if (gameObject7 != null)
            {
                gameObject7.SetActive(false);
            }
        }
        foreach (GameObject gameObject8 in this.FemaleHair)
        {
            if (gameObject8 != null)
            {
                gameObject8.SetActive(false);
            }
        }
        foreach (GameObject gameObject9 in this.MaleHair)
        {
            if (gameObject9 != null)
            {
                gameObject9.SetActive(false);
            }
        }
        foreach (GameObject gameObject10 in this.FacialHair)
        {
            if (gameObject10 != null)
            {
                gameObject10.SetActive(false);
            }
        }
        foreach (GameObject gameObject11 in this.Eyewear)
        {
            if (gameObject11 != null)
            {
                gameObject11.SetActive(false);
            }
        }
        foreach (GameObject gameObject12 in this.RightStockings)
        {
            if (gameObject12 != null)
            {
                gameObject12.SetActive(false);
            }
        }
        foreach (GameObject gameObject13 in this.LeftStockings)
        {
            if (gameObject13 != null)
            {
                gameObject13.SetActive(false);
            }
        }
        if (this.StudentID == 13 && StudentGlobals.CustomSuitor && StudentGlobals.CustomSuitorEyewear > 0)
        {
            this.Eyewear[StudentGlobals.CustomSuitorEyewear].SetActive(true);
        }
        if (this.StudentID == 1 && SenpaiGlobals.CustomSenpai)
        {
            if (SenpaiGlobals.SenpaiEyeWear > 0)
            {
                this.Eyewear[SenpaiGlobals.SenpaiEyeWear].SetActive(true);
            }
            this.FacialHairstyle = SenpaiGlobals.SenpaiFacialHair;
            this.HairColor       = SenpaiGlobals.SenpaiHairColor;
            this.EyeColor        = SenpaiGlobals.SenpaiEyeColor;
            this.Hairstyle       = SenpaiGlobals.SenpaiHairStyle;
        }
        if (!this.Male)
        {
            if (!this.Teacher)
            {
                this.FemaleHair[this.Hairstyle].SetActive(true);
                this.HairRenderer = this.FemaleHairRenderers[this.Hairstyle];
                this.SetFemaleUniform();
            }
            else
            {
                this.TeacherHair[this.Hairstyle].SetActive(true);
                this.HairRenderer = this.TeacherHairRenderers[this.Hairstyle];
                if (this.Club == ClubType.Teacher)
                {
                    this.MyRenderer.materials[0].mainTexture = this.TeacherBodyTexture;
                    this.MyRenderer.materials[1].mainTexture = this.DefaultFaceTexture;
                    this.MyRenderer.materials[2].mainTexture = this.TeacherBodyTexture;
                }
                else if (this.Club == ClubType.GymTeacher)
                {
                    if (StudentGlobals.GetStudentReplaced(this.StudentID))
                    {
                        this.MyRenderer.materials[0].mainTexture = this.DefaultFaceTexture;
                        this.MyRenderer.materials[1].mainTexture = this.CoachPaleBodyTexture;
                        this.MyRenderer.materials[2].mainTexture = this.CoachPaleBodyTexture;
                    }
                    else
                    {
                        this.MyRenderer.materials[0].mainTexture = this.CoachFaceTexture;
                        this.MyRenderer.materials[1].mainTexture = this.CoachBodyTexture;
                        this.MyRenderer.materials[2].mainTexture = this.CoachBodyTexture;
                    }
                }
                else if (this.Club == ClubType.Nurse)
                {
                    this.MyRenderer.materials = this.NurseMaterials;
                }
            }
        }
        else
        {
            if (this.Hairstyle > 0)
            {
                this.MaleHair[this.Hairstyle].SetActive(true);
                this.HairRenderer = this.MaleHairRenderers[this.Hairstyle];
            }
            if (this.FacialHairstyle > 0)
            {
                this.FacialHair[this.FacialHairstyle].SetActive(true);
                this.FacialHairRenderer = this.FacialHairRenderers[this.FacialHairstyle];
            }
            this.SetMaleUniform();
        }
        if (!this.Male)
        {
            if (!this.Teacher)
            {
                if (this.FemaleAccessories[this.Accessory] != null)
                {
                    this.FemaleAccessories[this.Accessory].SetActive(true);
                }
            }
            else if (this.TeacherAccessories[this.Accessory] != null)
            {
                this.TeacherAccessories[this.Accessory].SetActive(true);
            }
        }
        else if (this.MaleAccessories[this.Accessory] != null)
        {
            this.MaleAccessories[this.Accessory].SetActive(true);
        }
        if (this.Club < ClubType.Gaming && this.ClubAccessories[(int)this.Club] != null && !ClubGlobals.GetClubClosed(this.Club) && this.StudentID != 26)
        {
            this.ClubAccessories[(int)this.Club].SetActive(true);
        }
        if (!this.Male)
        {
            base.StartCoroutine(this.PutOnStockings());
        }
        if (!this.Randomize)
        {
            if (this.EyeColor != string.Empty)
            {
                if (this.EyeColor == "White")
                {
                    this.CorrectColor = new Color(1f, 1f, 1f);
                }
                else if (this.EyeColor == "Black")
                {
                    this.CorrectColor = new Color(0.5f, 0.5f, 0.5f);
                }
                else if (this.EyeColor == "Red")
                {
                    this.CorrectColor = new Color(1f, 0f, 0f);
                }
                else if (this.EyeColor == "Yellow")
                {
                    this.CorrectColor = new Color(1f, 1f, 0f);
                }
                else if (this.EyeColor == "Green")
                {
                    this.CorrectColor = new Color(0f, 1f, 0f);
                }
                else if (this.EyeColor == "Cyan")
                {
                    this.CorrectColor = new Color(0f, 1f, 1f);
                }
                else if (this.EyeColor == "Blue")
                {
                    this.CorrectColor = new Color(0f, 0f, 1f);
                }
                else if (this.EyeColor == "Purple")
                {
                    this.CorrectColor = new Color(1f, 0f, 1f);
                }
                else if (this.EyeColor == "Orange")
                {
                    this.CorrectColor = new Color(1f, 0.5f, 0f);
                }
                else if (this.EyeColor == "Brown")
                {
                    this.CorrectColor = new Color(0.5f, 0.25f, 0f);
                }
                else
                {
                    this.CorrectColor = new Color(0f, 0f, 0f);
                }
                if (this.CorrectColor != new Color(0f, 0f, 0f))
                {
                    this.RightEyeRenderer.material.color = this.CorrectColor;
                    this.LeftEyeRenderer.material.color  = this.CorrectColor;
                }
            }
        }
        else
        {
            float r = UnityEngine.Random.Range(0f, 1f);
            float g = UnityEngine.Random.Range(0f, 1f);
            float b = UnityEngine.Random.Range(0f, 1f);
            this.RightEyeRenderer.material.color = new Color(r, g, b);
            this.LeftEyeRenderer.material.color  = new Color(r, g, b);
        }
        if (!this.Randomize)
        {
            if (this.HairColor == "White")
            {
                this.ColorValue = new Color(1f, 1f, 1f);
            }
            else if (this.HairColor == "Black")
            {
                this.ColorValue = new Color(0.5f, 0.5f, 0.5f);
            }
            else if (this.HairColor == "Red")
            {
                this.ColorValue = new Color(1f, 0f, 0f);
            }
            else if (this.HairColor == "Yellow")
            {
                this.ColorValue = new Color(1f, 1f, 0f);
            }
            else if (this.HairColor == "Green")
            {
                this.ColorValue = new Color(0f, 1f, 0f);
            }
            else if (this.HairColor == "Cyan")
            {
                this.ColorValue = new Color(0f, 1f, 1f);
            }
            else if (this.HairColor == "Blue")
            {
                this.ColorValue = new Color(0f, 0f, 1f);
            }
            else if (this.HairColor == "Purple")
            {
                this.ColorValue = new Color(1f, 0f, 1f);
            }
            else if (this.HairColor == "Orange")
            {
                this.ColorValue = new Color(1f, 0.5f, 0f);
            }
            else if (this.HairColor == "Brown")
            {
                this.ColorValue = new Color(0.5f, 0.25f, 0f);
            }
            else
            {
                this.ColorValue = new Color(0f, 0f, 0f);
            }
            if (this.ColorValue == new Color(0f, 0f, 0f))
            {
                this.RightEyeRenderer.material.mainTexture = this.HairRenderer.material.mainTexture;
                this.LeftEyeRenderer.material.mainTexture  = this.HairRenderer.material.mainTexture;
                this.FaceTexture = this.HairRenderer.material.mainTexture;
                this.CustomHair  = true;
            }
            if (!this.CustomHair)
            {
                if (this.Hairstyle > 0)
                {
                    if (GameGlobals.LoveSick)
                    {
                        this.HairRenderer.material.color = new Color(0.1f, 0.1f, 0.1f);
                    }
                    else
                    {
                        this.HairRenderer.material.color = this.ColorValue;
                    }
                }
            }
            else if (GameGlobals.LoveSick)
            {
                this.HairRenderer.material.color = new Color(0.1f, 0.1f, 0.1f);
            }
            if (!this.Male)
            {
                this.FemaleAccessories[6].GetComponent <Renderer>().material.color = this.ColorValue;
            }
        }
        else
        {
            this.HairRenderer.material.color = new Color(UnityEngine.Random.Range(0f, 1f), UnityEngine.Random.Range(0f, 1f), UnityEngine.Random.Range(0f, 1f));
        }
        if (!this.Teacher)
        {
            if (this.CustomHair)
            {
                if (!this.Male)
                {
                    this.MyRenderer.materials[2].mainTexture = this.FaceTexture;
                }
                else if (StudentGlobals.MaleUniform == 1)
                {
                    this.MyRenderer.materials[2].mainTexture = this.FaceTexture;
                }
                else if (StudentGlobals.MaleUniform < 4)
                {
                    this.MyRenderer.materials[1].mainTexture = this.FaceTexture;
                }
                else
                {
                    this.MyRenderer.materials[0].mainTexture = this.FaceTexture;
                }
            }
        }
        else if (this.Teacher && StudentGlobals.GetStudentReplaced(this.StudentID))
        {
            Color studentColor    = StudentGlobals.GetStudentColor(this.StudentID);
            Color studentEyeColor = StudentGlobals.GetStudentEyeColor(this.StudentID);
            this.HairRenderer.material.color     = studentColor;
            this.RightEyeRenderer.material.color = studentEyeColor;
            this.LeftEyeRenderer.material.color  = studentEyeColor;
        }
        if (this.Male)
        {
            if (this.Accessory == 2)
            {
                this.RightIrisLight.SetActive(false);
                this.LeftIrisLight.SetActive(false);
            }
            if (SceneManager.GetActiveScene().name == "PortraitScene")
            {
                this.Character.transform.localScale = new Vector3(0.93f, 0.93f, 0.93f);
            }
            if (this.FacialHairRenderer != null)
            {
                this.FacialHairRenderer.material.color = this.ColorValue;
                if (this.FacialHairRenderer.materials.Length > 1)
                {
                    this.FacialHairRenderer.materials[1].color = this.ColorValue;
                }
            }
        }
        if (this.StudentID > 1 && this.StudentID < 8 && (float)StudentGlobals.GetStudentReputation(7) > -33.33333f)
        {
            this.FemaleAccessories[6].SetActive(true);
        }
        if (this.StudentID == 17)
        {
            if (SchemeGlobals.GetSchemeStage(2) == 2)
            {
                this.FemaleAccessories[3].SetActive(false);
            }
        }
        else if (this.StudentID == 20 && base.transform.position != Vector3.zero)
        {
            this.RightEyeRenderer.material.mainTexture = this.DefaultFaceTexture;
            this.LeftEyeRenderer.material.mainTexture  = this.DefaultFaceTexture;
            this.RightEyeRenderer.gameObject.GetComponent <RainbowScript>().enabled = true;
            this.LeftEyeRenderer.gameObject.GetComponent <RainbowScript>().enabled  = true;
        }
        if (this.Student != null && this.Student.AoT)
        {
            this.Student.AttackOnTitan();
        }
        if (this.HomeScene)
        {
            this.Student.CharacterAnimation["idle_00"].time  = 9f;
            this.Student.CharacterAnimation["idle_00"].speed = 0f;
        }
        this.TaskCheck();
        this.TurnOnCheck();
        this.EyeTypeCheck();
        if (this.Kidnapped)
        {
            this.WearIndoorShoes();
        }
    }
 // Token: 0x06001C11 RID: 7185 RVA: 0x0014EE04 File Offset: 0x0014D004
 public void UpdateTaskStatus()
 {
     if (TaskGlobals.GetTaskStatus(8) == 1 && this.StudentManager.Students[8] != null)
     {
         if (this.StudentManager.Students[8].TaskPhase == 0)
         {
             this.StudentManager.Students[8].TaskPhase = 4;
         }
         if (this.Yandere.Inventory.Soda)
         {
             this.StudentManager.Students[8].TaskPhase = 5;
         }
     }
     if (TaskGlobals.GetTaskStatus(11) == 1)
     {
         if (this.StudentManager.Students[11] != null)
         {
             if (this.StudentManager.Students[11].TaskPhase == 0)
             {
                 this.StudentManager.Students[11].TaskPhase = 4;
             }
             this.TaskObjects[11].SetActive(true);
         }
     }
     else if (this.TaskObjects[11] != null)
     {
         this.TaskObjects[11].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(25) == 1)
     {
         if (this.StudentManager.Students[25] != null)
         {
             if (this.StudentManager.Students[25].TaskPhase == 0)
             {
                 this.StudentManager.Students[25].TaskPhase = 4;
             }
             this.TaskObjects[25].SetActive(true);
         }
     }
     else if (this.TaskObjects[25] != null)
     {
         this.TaskObjects[25].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(28) == 1 && this.StudentManager.Students[28] != null)
     {
         if (this.StudentManager.Students[28].TaskPhase == 0)
         {
             this.StudentManager.Students[28].TaskPhase = 4;
         }
         for (int i = 1; i < 26; i++)
         {
             if (TaskGlobals.GetKittenPhoto(i))
             {
                 Debug.Log("Riku's Task can be turned in.");
                 this.StudentManager.Students[28].TaskPhase = 5;
             }
         }
     }
     if (TaskGlobals.GetTaskStatus(30) == 1 && this.StudentManager.Students[30] != null && this.StudentManager.Students[30].TaskPhase == 0)
     {
         this.StudentManager.Students[30].TaskPhase = 4;
     }
     if (TaskGlobals.GetTaskStatus(36) == 1 && this.StudentManager.Students[36] != null)
     {
         if (this.StudentManager.Students[36].TaskPhase == 0)
         {
             this.StudentManager.Students[36].TaskPhase = 4;
         }
         if (this.GirlsQuestioned[1] && this.GirlsQuestioned[2] && this.GirlsQuestioned[3] && this.GirlsQuestioned[4] && this.GirlsQuestioned[5])
         {
             Debug.Log("Gema's task should be ready to turn in!");
             this.StudentManager.Students[36].TaskPhase = 5;
         }
     }
     if (TaskGlobals.GetTaskStatus(37) == 1)
     {
         if (this.StudentManager.Students[37] != null)
         {
             if (this.StudentManager.Students[37].TaskPhase == 0)
             {
                 this.StudentManager.Students[37].TaskPhase = 4;
             }
             this.TaskObjects[37].SetActive(true);
         }
     }
     else if (this.TaskObjects[37] != null)
     {
         this.TaskObjects[37].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(38) == 1)
     {
         if (this.StudentManager.Students[38] != null && this.StudentManager.Students[38].TaskPhase == 0)
         {
             this.StudentManager.Students[38].TaskPhase = 4;
         }
     }
     else if (TaskGlobals.GetTaskStatus(38) == 2 && this.StudentManager.Students[38] != null)
     {
         this.StudentManager.Students[38].TaskPhase = 5;
     }
     if (ClubGlobals.GetClubClosed(ClubType.LightMusic) || this.StudentManager.Students[51] == null)
     {
         if (this.StudentManager.Students[52] != null)
         {
             this.StudentManager.Students[52].TaskPhase = 100;
         }
         TaskGlobals.SetTaskStatus(52, 100);
     }
     else if (TaskGlobals.GetTaskStatus(52) == 1 && this.StudentManager.Students[52] != null)
     {
         this.StudentManager.Students[52].TaskPhase = 4;
         for (int j = 1; j < 52; j++)
         {
             if (TaskGlobals.GetGuitarPhoto(j))
             {
                 this.StudentManager.Students[52].TaskPhase = 5;
             }
         }
     }
     if (TaskGlobals.GetTaskStatus(81) == 1 && this.StudentManager.Students[81] != null)
     {
         if (this.StudentManager.Students[81].TaskPhase == 0)
         {
             this.StudentManager.Students[81].TaskPhase = 4;
         }
         for (int k = 1; k < 26; k++)
         {
             if (TaskGlobals.GetHorudaPhoto(k))
             {
                 Debug.Log("Musume's Task can be turned in.");
                 this.StudentManager.Students[81].TaskPhase = 5;
             }
         }
     }
     TaskGlobals.GetTaskStatus(81);
 }
 // Token: 0x06001250 RID: 4688 RVA: 0x00082C4C File Offset: 0x00080E4C
 private void Start()
 {
     RenderSettings.ambientLight = new Color(0.75f, 0.75f, 0.75f);
     this.PeriodLabel.text       = "BEFORE CLASS";
     this.PresentTime            = this.StartHour * 60f;
     if (PlayerPrefs.GetInt("LoadingSave") == 1)
     {
         int profile = GameGlobals.Profile;
         int @int    = PlayerPrefs.GetInt("SaveSlot");
         Debug.Log(string.Concat(new object[]
         {
             "Loading time! Profile_",
             profile,
             "_Slot_",
             @int,
             "_Time is ",
             PlayerPrefs.GetFloat(string.Concat(new object[]
             {
                 "Profile_",
                 profile,
                 "_Slot_",
                 @int,
                 "_Time"
             }))
         }));
         this.PresentTime = PlayerPrefs.GetFloat(string.Concat(new object[]
         {
             "Profile_",
             profile,
             "_Slot_",
             @int,
             "_Time"
         }));
         this.Weekday = PlayerPrefs.GetInt(string.Concat(new object[]
         {
             "Profile_",
             profile,
             "_Slot_",
             @int,
             "_Weekday"
         }));
         if (this.Weekday == 1)
         {
             DateGlobals.Weekday = DayOfWeek.Monday;
         }
         else if (this.Weekday == 2)
         {
             DateGlobals.Weekday = DayOfWeek.Tuesday;
         }
         else if (this.Weekday == 3)
         {
             DateGlobals.Weekday = DayOfWeek.Wednesday;
         }
         else if (this.Weekday == 4)
         {
             DateGlobals.Weekday = DayOfWeek.Thursday;
         }
         else if (this.Weekday == 5)
         {
             DateGlobals.Weekday = DayOfWeek.Friday;
         }
     }
     if (DateGlobals.Weekday == DayOfWeek.Sunday)
     {
         DateGlobals.Weekday = DayOfWeek.Monday;
     }
     if (!SchoolGlobals.SchoolAtmosphereSet)
     {
         SchoolGlobals.SchoolAtmosphereSet = true;
         SchoolGlobals.SchoolAtmosphere    = 1f;
     }
     if (SchoolGlobals.SchoolAtmosphere < 0.5f)
     {
         this.BloomEffect.bloomIntensity  = 0.2f;
         this.BloomEffect.bloomThreshhold = 0f;
         this.Police.Darkness.enabled     = true;
         this.Police.Darkness.color       = new Color(this.Police.Darkness.color.r, this.Police.Darkness.color.g, this.Police.Darkness.color.b, 1f);
         this.FadeIn = true;
     }
     else
     {
         this.BloomEffect.bloomIntensity  = 10f;
         this.BloomEffect.bloomThreshhold = 0f;
         this.UpdateBloom = true;
     }
     this.BloomEffect.bloomThreshhold = 0f;
     this.DayLabel.text          = this.GetWeekdayText(DateGlobals.Weekday);
     this.MainLight.color        = new Color(1f, 1f, 1f, 1f);
     RenderSettings.ambientLight = new Color(0.75f, 0.75f, 0.75f, 1f);
     RenderSettings.skybox.SetColor("_Tint", new Color(0.5f, 0.5f, 0.5f));
     if (ClubGlobals.GetClubClosed(ClubType.Photography) || StudentGlobals.GetStudentGrudge(56) || StudentGlobals.GetStudentGrudge(57) || StudentGlobals.GetStudentGrudge(58) || StudentGlobals.GetStudentGrudge(59) || StudentGlobals.GetStudentGrudge(60))
     {
         this.IgnorePhotographyClub = true;
     }
     this.MissionMode = MissionModeGlobals.MissionMode;
     this.HourTime    = this.PresentTime / 60f;
     this.Hour        = Mathf.Floor(this.PresentTime / 60f);
     this.Minute      = Mathf.Floor((this.PresentTime / 60f - this.Hour) * 60f);
     this.UpdateClock();
 }