public IEnumerator UpdatePortraits() { if (this.Debugging) { Debug.Log("The Student Info Menu was instructed to get photos."); } int num; for (int ID = 1; ID < 101; ID = num + 1) { if (this.Debugging) { Debug.Log("1 - We entered the loop."); } if (ID == 0) { this.StudentPortraits[ID].Portrait.mainTexture = this.InfoChan; } else { if (this.Debugging) { Debug.Log("2 - ID is not zero."); } if (!this.PortraitLoaded[ID]) { if (this.Debugging) { Debug.Log("3 - PortraitLoaded is false."); } if (ID < 12 || (ID > 20 && ID < 98)) { if (this.Debugging) { Debug.Log("4 - ID is less than 98."); } if (StudentGlobals.GetStudentPhotographed(ID)) { if (this.Debugging) { Debug.Log("5 - GetStudentPhotographed is true."); } string text = string.Concat(new string[] { "file:///", Application.streamingAssetsPath, "/Portraits/Student_", ID.ToString(), ".png" }); if (this.Debugging) { Debug.Log("Path is: " + text); } WWW www = new WWW(text); if (this.Debugging) { Debug.Log("Waiting for www to return."); } yield return(www); if (this.Debugging) { Debug.Log("www has returned."); } if (www.error == null) { if (!StudentGlobals.GetStudentReplaced(ID)) { this.StudentPortraits[ID].Portrait.mainTexture = www.texture; } else { this.StudentPortraits[ID].Portrait.mainTexture = this.BlankPortrait; } } else { this.StudentPortraits[ID].Portrait.mainTexture = this.UnknownPortrait; } this.PortraitLoaded[ID] = true; www = null; } else { this.StudentPortraits[ID].Portrait.mainTexture = this.UnknownPortrait; } } else if (ID == 98) { this.StudentPortraits[ID].Portrait.mainTexture = this.Counselor; } else if (ID == 99) { this.StudentPortraits[ID].Portrait.mainTexture = this.Headmaster; } else if (ID == 100) { this.StudentPortraits[ID].Portrait.mainTexture = this.InfoChan; } else { this.StudentPortraits[ID].Portrait.mainTexture = this.RivalPortraits[ID]; } } } if (PlayerGlobals.GetStudentPantyShot(this.JSON.Students[ID].Name)) { this.StudentPortraits[ID].Panties.SetActive(true); } this.StudentPortraits[ID].Friend.SetActive(PlayerGlobals.GetStudentFriend(ID)); if (StudentGlobals.GetStudentDying(ID) || StudentGlobals.GetStudentDead(ID)) { this.StudentPortraits[ID].DeathShadow.SetActive(true); } if (MissionModeGlobals.MissionMode && ID == 1) { this.StudentPortraits[ID].DeathShadow.SetActive(true); } if (SceneManager.GetActiveScene().name == "SchoolScene" && this.StudentManager.Students[ID] != null && this.StudentManager.Students[ID].Tranquil) { this.StudentPortraits[ID].DeathShadow.SetActive(true); } if (StudentGlobals.GetStudentArrested(ID)) { this.StudentPortraits[ID].PrisonBars.SetActive(true); this.StudentPortraits[ID].DeathShadow.SetActive(true); } num = ID; } yield break; }
// Token: 0x060007E2 RID: 2018 RVA: 0x000797DC File Offset: 0x00077BDC public IEnumerator UpdatePortraits() { for (int ID = 1; ID < 101; ID++) { if (ID == 0) { this.StudentPortraits[ID].Portrait.mainTexture = this.InfoChan; } else if (!this.PortraitLoaded[ID]) { if (ID < 98) { if (StudentGlobals.GetStudentPhotographed(ID)) { string path = string.Concat(new string[] { "file:///", Application.streamingAssetsPath, "/Portraits/Student_", ID.ToString(), ".png" }); WWW www = new WWW(path); yield return(www); if (www.error == null) { if (!StudentGlobals.GetStudentReplaced(ID)) { if (!this.CustomPortraits) { this.StudentPortraits[ID].Portrait.mainTexture = ((ID >= 33 && ID <= 85) ? this.BlankPortrait : www.texture); } else { this.StudentPortraits[ID].Portrait.mainTexture = www.texture; } } else { this.StudentPortraits[ID].Portrait.mainTexture = this.BlankPortrait; } } else { this.StudentPortraits[ID].Portrait.mainTexture = this.UnknownPortrait; } this.PortraitLoaded[ID] = true; } else { this.StudentPortraits[ID].Portrait.mainTexture = this.UnknownPortrait; } } else if (ID == 98) { this.StudentPortraits[ID].Portrait.mainTexture = this.Counselor; } else if (ID == 99) { this.StudentPortraits[ID].Portrait.mainTexture = this.Headmaster; } else if (ID == 100) { this.StudentPortraits[ID].Portrait.mainTexture = this.InfoChan; } } if (PlayerGlobals.GetStudentPantyShot(this.JSON.Students[ID].Name)) { this.StudentPortraits[ID].Panties.SetActive(true); } this.StudentPortraits[ID].Friend.SetActive(PlayerGlobals.GetStudentFriend(ID)); if (StudentGlobals.GetStudentDying(ID) || StudentGlobals.GetStudentDead(ID)) { this.StudentPortraits[ID].DeathShadow.SetActive(true); } if (SceneManager.GetActiveScene().name == "SchoolScene" && this.StudentManager.Students[ID] != null && this.StudentManager.Students[ID].Tranquil) { this.StudentPortraits[ID].DeathShadow.SetActive(true); } if (StudentGlobals.GetStudentArrested(ID)) { this.StudentPortraits[ID].PrisonBars.SetActive(true); this.StudentPortraits[ID].DeathShadow.SetActive(true); } } yield break; }
// Token: 0x060007A1 RID: 1953 RVA: 0x000752F0 File Offset: 0x000736F0 private void SpawnMessage() { if (this.NewMessage != null) { UnityEngine.Object.Destroy(this.NewMessage); } this.NewMessage = UnityEngine.Object.Instantiate <GameObject>(this.Message); this.NewMessage.transform.parent = this.TextMessages; this.NewMessage.transform.localPosition = new Vector3(-225f, -275f, 0f); this.NewMessage.transform.localEulerAngles = Vector3.zero; this.NewMessage.transform.localScale = new Vector3(1f, 1f, 1f); bool flag = false; if (this.hit.collider != null && this.hit.collider.gameObject.name == "Kitten") { flag = true; } string text = string.Empty; int num; if (flag) { text = "Why are you showing me this? I don't care."; num = 2; } else if (!this.InfoX.activeInHierarchy) { text = "I recognize this person. Here's some information about them."; num = 3; } else if (!this.PantiesX.activeInHierarchy) { if (this.Student != null) { if (!PlayerGlobals.GetStudentPantyShot(this.Student.Name)) { PlayerGlobals.SetStudentPantyShot(this.Student.Name, true); if (this.Student.Nemesis) { text = "Wait...I recognize those panties! This person is extremely dangerous! Avoid her at all costs!"; } else if (this.Student.StudentID == 32 || this.Student.Club == ClubType.Council) { text = "A high value target! " + this.Student.Name + "'s panties were in high demand. I owe you a big favor for this one."; PlayerGlobals.PantyShots += 5; } else { text = "Excellent! Now I have a picture of " + this.Student.Name + "'s panties. I owe you a favor for this one."; PlayerGlobals.PantyShots++; } num = 5; } else if (!this.Student.Nemesis) { text = "I already have a picture of " + this.Student.Name + "'s panties. I don't need this shot."; num = 4; } else { text = "You are in danger. Avoid her."; num = 2; } } else { text = "How peculiar. I don't recognize these panties."; num = 2; } } else if (!this.ViolenceX.activeInHierarchy) { text = "Good work, but don't send me this stuff. I have no use for it."; num = 3; } else if (!this.SenpaiX.activeInHierarchy) { if (PlayerGlobals.SenpaiShots == 0) { text = "I don't need any pictures of your Senpai."; num = 2; } else if (PlayerGlobals.SenpaiShots == 1) { text = "I know how you feel about this person, but I have no use for these pictures."; num = 4; } else if (PlayerGlobals.SenpaiShots == 2) { text = "Okay, I get it, you love your Senpai, and you love taking pictures of your Senpai. I still don't need these shots."; num = 5; } else if (PlayerGlobals.SenpaiShots == 3) { text = "You're spamming my inbox. Cut it out."; num = 2; } else { text = "..."; num = 1; } PlayerGlobals.SenpaiShots++; } else if (this.NotFace) { text = "Do you want me to identify this person? Please get me a clear shot of their face."; num = 4; } else if (this.Skirt) { text = "Is this supposed to be a panty shot? My clients are picky. The panties need to be in the EXACT center of the shot."; num = 5; } else if (this.Nemesis) { if (this.NemesisShots == 1) { text = "Strange. I have no profile for this student."; num = 2; } else if (this.NemesisShots == 2) { text = "...wait. I think I know who she is."; num = 2; } else if (this.NemesisShots == 3) { text = "You are in danger. Avoid her."; num = 2; } else if (this.NemesisShots == 4) { text = "Do not engage."; num = 1; } else { text = "I repeat: Do. Not. Engage."; num = 2; } } else if (this.Disguise) { text = "Something about that student seems...wrong."; num = 2; } else { text = "I don't get it. What are you trying to show me? Make sure the subject is in the EXACT center of the photo."; num = 5; } this.NewMessage.GetComponent <UISprite>().height = 36 + 36 * num; this.NewMessage.GetComponent <TextMessageScript>().Label.text = text; }
// Token: 0x06001A07 RID: 6663 RVA: 0x000FDC0C File Offset: 0x000FBE0C public static PlayerSaveData ReadFromGlobals() { PlayerSaveData playerSaveData = new PlayerSaveData(); playerSaveData.alerts = PlayerGlobals.Alerts; playerSaveData.enlightenment = PlayerGlobals.Enlightenment; playerSaveData.enlightenmentBonus = PlayerGlobals.EnlightenmentBonus; playerSaveData.headset = PlayerGlobals.Headset; playerSaveData.kills = PlayerGlobals.Kills; playerSaveData.numbness = PlayerGlobals.Numbness; playerSaveData.numbnessBonus = PlayerGlobals.NumbnessBonus; playerSaveData.pantiesEquipped = PlayerGlobals.PantiesEquipped; playerSaveData.pantyShots = PlayerGlobals.PantyShots; foreach (int num in PlayerGlobals.KeysOfPhoto()) { if (PlayerGlobals.GetPhoto(num)) { playerSaveData.photo.Add(num); } } foreach (int num2 in PlayerGlobals.KeysOfPhotoOnCorkboard()) { if (PlayerGlobals.GetPhotoOnCorkboard(num2)) { playerSaveData.photoOnCorkboard.Add(num2); } } foreach (int num3 in PlayerGlobals.KeysOfPhotoPosition()) { playerSaveData.photoPosition.Add(num3, PlayerGlobals.GetPhotoPosition(num3)); } foreach (int num4 in PlayerGlobals.KeysOfPhotoRotation()) { playerSaveData.photoRotation.Add(num4, PlayerGlobals.GetPhotoRotation(num4)); } playerSaveData.reputation = PlayerGlobals.Reputation; playerSaveData.seduction = PlayerGlobals.Seduction; playerSaveData.seductionBonus = PlayerGlobals.SeductionBonus; foreach (int num5 in PlayerGlobals.KeysOfSenpaiPhoto()) { if (PlayerGlobals.GetSenpaiPhoto(num5)) { playerSaveData.senpaiPhoto.Add(num5); } } playerSaveData.senpaiShots = PlayerGlobals.SenpaiShots; playerSaveData.socialBonus = PlayerGlobals.SocialBonus; playerSaveData.speedBonus = PlayerGlobals.SpeedBonus; playerSaveData.stealthBonus = PlayerGlobals.StealthBonus; foreach (int num6 in PlayerGlobals.KeysOfStudentFriend()) { if (PlayerGlobals.GetStudentFriend(num6)) { playerSaveData.studentFriend.Add(num6); } } foreach (string text in PlayerGlobals.KeysOfStudentPantyShot()) { if (PlayerGlobals.GetStudentPantyShot(text)) { playerSaveData.studentPantyShot.Add(text); } } return(playerSaveData); }