Old
Old
using UnityEngine;
using XInputDotNetPure;
SchemeGlobals.SetSchemeStage(1, 9);
this.Schemes.UpdateInstructions();
}
else if (this.Selected == 2)
{
Debug.Log("This code is only
supposed to fire if the player was speaking to the Counselor...");
SchemeGlobals.SetSchemeStage(2, 7);
this.Schemes.UpdateInstructions();
}
else if (this.Selected == 3)
{
SchemeGlobals.SetSchemeStage(3, 5);
this.Schemes.UpdateInstructions();
}
else if (this.Selected == 4)
{
SchemeGlobals.SetSchemeStage(4, 8);
this.Schemes.UpdateInstructions();
}
else if (this.Selected == 5)
{
SchemeGlobals.SetSchemeStage(5, 10);
this.Schemes.UpdateInstructions();
}
}
else if (this.Selected == 1)
{
this.ReportedAlcohol = true;
}
else if (this.Selected == 2)
{
this.ReportedCondoms = true;
}
else if (this.Selected == 3)
{
this.ReportedCigarettes = true;
}
else if (this.Selected == 4)
{
this.ReportedTheft = true;
}
else if (this.Selected == 5)
{
this.ReportedCheating = true;
}
else if (this.Selected == 6)
{
this.ReportedNarcotics = true;
}
this.CounselorSubtitle.text =
this.CounselorReportText[this.Selected];
this.MyAudio.clip =
this.CounselorReportClips[this.Selected];
this.MyAudio.Play();
this.ShowWindow = false;
this.Angry = true;
this.CutsceneManager.Scheme =
this.Selected;
this.LectureID = this.Selected;
this.PromptBar.ClearButtons();
this.PromptBar.Show = false;
this.Busy = true;
}
}
}
}
else if (!this.Interrogating)
{
if (Input.GetButtonDown(InputNames.Xbox_A))
{
this.MyAudio.Stop();
}
if (!this.MyAudio.isPlaying)
{
this.Timer += Time.deltaTime;
if (this.Timer > 0.5f)
{
this.CounselorDoor.FadeOut = true;
this.CounselorDoor.Exit = true;
this.LookAtPlayer = false;
this.UpdateList();
}
}
}
}
if (this.ShowWindow)
{
this.CounselorWindow.localScale =
Vector3.Lerp(this.CounselorWindow.localScale, new Vector3(1f, 1f, 1f),
Time.deltaTime * 10f);
}
else if (this.CounselorWindow.localScale.x > 0.1f)
{
this.CounselorWindow.localScale =
Vector3.Lerp(this.CounselorWindow.localScale, Vector3.zero, Time.deltaTime * 10f);
}
else if (this.CounselorWindow.gameObject.activeInHierarchy)
{
this.CounselorWindow.localScale = Vector3.zero;
this.CounselorWindow.gameObject.SetActive(false);
}
if (this.Lecturing)
{
this.Chibi.localPosition = new
Vector3(this.Chibi.localPosition.x, Mathf.Lerp(this.Chibi.localPosition.y, 250f +
(float)this.RivalExpelProgress * -90f, Time.deltaTime * 3f),
this.Chibi.localPosition.z);
if (this.LecturePhase == 1)
{
this.LectureLabel.text = this.LectureIntro[this.LectureID];
this.EndOfDayDarkness.color = new
Color(this.EndOfDayDarkness.color.r, this.EndOfDayDarkness.color.g,
this.EndOfDayDarkness.color.b, Mathf.MoveTowards(this.EndOfDayDarkness.color.a, 0f,
Time.deltaTime));
if (this.EndOfDayDarkness.color.a < 0.0001f)
{
this.EndOfDayDarkness.alpha = 0f;
this.PromptBar.ClearButtons();
this.PromptBar.Label[0].text = "Continue";
this.PromptBar.UpdateButtons();
this.PromptBar.Show = true;
if (Input.GetButtonDown(InputNames.Xbox_A))
{
this.LecturePhase++;
this.PromptBar.ClearButtons();
this.PromptBar.Show = false;
}
}
}
else if (this.LecturePhase == 2)
{
this.LectureLabel.color = new
Color(this.LectureLabel.color.r, this.LectureLabel.color.g,
this.LectureLabel.color.b, Mathf.MoveTowards(this.LectureLabel.color.a, 0f,
Time.deltaTime));
if (this.LectureLabel.color.a < 0.0001f)
{
this.LectureLabel.alpha = 0f;
this.EndOfDay.TextWindow.SetActive(false);
this.EndOfDay.EODCamera.GetComponent<AudioListener>().enabled = true;
this.LectureSubtitle.text =
this.CounselorLectureText[this.LectureID];
this.MyAudio.clip =
this.CounselorLectureClips[this.LectureID];
this.MyAudio.Play();
this.LecturePhase++;
}
}
else if (this.LecturePhase == 3)
{
if (!this.MyAudio.isPlaying ||
Input.GetButtonDown(InputNames.Xbox_A))
{
this.LectureSubtitle.text =
this.RivalText[this.LectureID];
this.MyAudio.clip = this.RivalClips[this.LectureID];
this.MyAudio.Play();
this.LecturePhase++;
}
}
else if (this.LecturePhase == 4)
{
if (!this.MyAudio.isPlaying ||
Input.GetButtonDown(InputNames.Xbox_A))
{
this.LectureSubtitle.text = string.Empty;
if (this.RivalExpelProgress < 5)
{
this.LecturePhase++;
}
else
{
this.LecturePhase = 7;
this.ExpelTimer = 0f;
}
}
}
else if (this.LecturePhase == 5)
{
this.ExpelProgress.color = new
Color(this.ExpelProgress.color.r, this.ExpelProgress.color.g,
this.ExpelProgress.color.b, Mathf.MoveTowards(this.ExpelProgress.color.a, 1f,
Time.deltaTime));
this.ExpelTimer += Time.deltaTime;
if (this.ExpelTimer > 2f)
{
if (this.ReportedNarcotics)
{
this.EXPELLED.text = "ARRESTED";
this.RivalExpelProgress = 5;
}
else
{
this.RivalExpelProgress++;
}
this.LecturePhase++;
Debug.Log("RivalExpelProgress is now: " +
this.RivalExpelProgress.ToString());
}
}
else if (this.LecturePhase == 6)
{
this.ExpelTimer += Time.deltaTime;
if (this.ExpelTimer > 4f)
{
this.LecturePhase += 2;
}
}
else if (this.LecturePhase == 7)
{
this.ExpelTimer += Time.deltaTime;
if (this.ExpelTimer > 1f)
{
this.RIVAL.gameObject.SetActive(true);
}
if (this.ExpelTimer > 3f)
{
this.EXPELLED.gameObject.SetActive(true);
}
if (this.ExpelTimer > 5f)
{
this.RIVAL.color = new Color(this.RIVAL.color.r,
this.RIVAL.color.g, this.RIVAL.color.b, this.RIVAL.color.a - Time.deltaTime);
this.EXPELLED.color = new
Color(this.EXPELLED.color.r, this.EXPELLED.color.g, this.EXPELLED.color.b,
this.EXPELLED.color.a - Time.deltaTime);
}
if (this.ExpelTimer > 7f)
{
this.RIVAL.gameObject.SetActive(false);
this.EXPELLED.gameObject.SetActive(false);
this.LecturePhase++;
}
}
else if (this.LecturePhase == 8)
{
Debug.Log("We are now in Lecture Phase 8. We're deciding
whether to return to gameplay or expel the rival.");
this.ExpelProgress.color = new
Color(this.ExpelProgress.color.r, this.ExpelProgress.color.g,
this.ExpelProgress.color.b, Mathf.MoveTowards(this.ExpelProgress.color.a, 0f,
Time.deltaTime));
this.ExpelTimer += Time.deltaTime;
if (this.ExpelTimer > 6f)
{
if ((this.RivalExpelProgress == 5 && !
StudentGlobals.GetStudentExpelled(this.StudentManager.RivalID) &&
this.EndOfDay.RivalEliminationMethod != RivalEliminationType.Expelled &&
this.EndOfDay.RivalEliminationMethod != RivalEliminationType.Arrested &&
this.StudentManager.Police.TranqCase.VictimID != this.StudentManager.RivalID) ||
this.StudentManager.Students[this.StudentManager.RivalID].SentHome)
{
Debug.Log("The guidence counselor is now
choosing the words she will say when expelling the rival.");
this.EndOfDayDarkness.color = new
Color(this.EndOfDayDarkness.color.r, this.EndOfDayDarkness.color.g,
this.EndOfDayDarkness.color.b, 0f);
this.LectureLabel.color = new
Color(this.LectureLabel.color.r, this.LectureLabel.color.g,
this.LectureLabel.color.b, 0f);
this.LecturePhase = 2;
this.ExpelTimer = 0f;
if (this.ReportedNarcotics)
{
this.LectureID = 8;
this.EndOfDay.RivalEliminationMethod =
RivalEliminationType.Arrested;
this.StudentManager.RivalEliminated =
true;
}
else
{
this.LectureID = 7;
this.EndOfDay.RivalEliminationMethod =
RivalEliminationType.Expelled;
this.StudentManager.RivalEliminated =
true;
}
if
(this.StudentManager.Students[this.StudentManager.SuitorID] != null)
{
Debug.Log("Commanding the rival's suitor
to stop trying to spy on her, since she's gone now.");
this.StudentManager.Students[this.StudentManager.SuitorID].Curious = false;
}
}
else
{
Debug.Log("The lecture is over. Now, the game
decides where to go next.");
this.Yandere.Subtitle.gameObject.SetActive(true);
if (!this.EndOfDay.Police.Show)
{
this.Lecturing = false;
if
(this.Yandere.StudentManager.Clock.Period > 4 || this.SentHome)
{
if (this.SentHome)
{
Debug.Log("We got here after
being sent home.");
}
else
{
Debug.Log("We got here during
Period 5 or 6. We must be at the end of the school day.");
}
this.EndOfDay.Phase++;
this.EndOfDay.UpdateScene();
}
else
{
Debug.Log("We got here prior to
Period 5. We are leaving the lecture and returning to gameplay.");
this.StudentManager.Portal.gameObject.GetComponent<PortalScript>().Class.gameObject
.SetActive(true);
this.StudentManager.Portal.gameObject.GetComponent<PortalScript>().ReturningFromLec
ture = true;
this.EndOfDay.gameObject.SetActive(false);
this.EndOfDay.Phase = 1;
this.CutsceneManager.Phase++;
this.Yandere.PauseScreen.Schemes.SchemeManager.enabled = false;
this.Yandere.MainCamera.gameObject.SetActive(true);
this.Yandere.gameObject.SetActive(true);
this.SpawnDelinquents();
Debug.Log("Now returning to
gameplay from the counselor.");
this.StudentManager.ComeBack();
this.StudentManager.Students[this.StudentManager.RivalID].IdleAnim =
this.StudentManager.Students[this.StudentManager.RivalID].BulliedIdleAnim;
this.StudentManager.Students[this.StudentManager.RivalID].WalkAnim =
this.StudentManager.Students[this.StudentManager.RivalID].BulliedWalkAnim;
if (this.Eighties)
{
if (this.LectureID == 4)
{
if
(this.StudentManager.Students[30] != null)
{
this.StudentManager.Students[30].Cosmetic.EnableRings();
this.StudentManager.Students[30].Depressed = false;
}
}
else if (this.LectureID == 6)
{
Debug.Log("Disabling the
rival and her bag, since she was expelled.");
this.StudentManager.Students[this.StudentManager.RivalID].gameObject.SetActive(fals
e);
if
(this.StudentManager.Students[this.StudentManager.SuitorID] != null)
{
this.StudentManager.Students[this.StudentManager.SuitorID].Curious = false;
}
}
if
(this.StudentManager.Students[this.StudentManager.RivalID] != null && !
this.StudentManager.Students[this.StudentManager.RivalID].gameObject.activeInHierar
chy)
{
Debug.Log("Disabling the
rival's bag, since she was expelled.");
this.StudentManager.GenericRivalBag.gameObject.SetActive(false);
if
(this.StudentManager.RivalID == 19)
{
this.StudentManager.RevertEightiesWeek9RoutineAdjustments();
}
}
}
else if (this.LectureID == 2)
{
if (this.StoleRing)
{
this.MustReturnStolenRing = true;
}
}
else if (this.LectureID == 6 &&
this.StudentManager.RivalID == 11 && this.StudentManager.Students[10] != null)
{
StudentScript studentScript =
this.StudentManager.Students[10];
Debug.Log("Osana is gone, so
Raibaru's routine has to change.");
ScheduleBlock scheduleBlock =
studentScript.ScheduleBlocks[4];
scheduleBlock.destination =
"Mourn";
scheduleBlock.action =
"Mourn";
ScheduleBlock scheduleBlock2
= studentScript.ScheduleBlocks[5];
scheduleBlock2.destination =
"Seat";
scheduleBlock2.action =
"Sit";
ScheduleBlock scheduleBlock3
= studentScript.ScheduleBlocks[6];
scheduleBlock3.destination =
"Locker";
scheduleBlock3.action =
"Shoes";
ScheduleBlock scheduleBlock4
= studentScript.ScheduleBlocks[7];
scheduleBlock4.destination =
"Exit";
scheduleBlock4.action =
"Exit";
ScheduleBlock scheduleBlock5
= studentScript.ScheduleBlocks[8];
scheduleBlock5.destination =
"Exit";
scheduleBlock5.action =
"Exit";
ScheduleBlock scheduleBlock6
= studentScript.ScheduleBlocks[9];
scheduleBlock6.destination =
"Exit";
scheduleBlock6.action =
"Exit";
studentScript.TargetDistance
= 0.5f;
studentScript.IdleAnim =
studentScript.BulliedIdleAnim;
studentScript.WalkAnim =
studentScript.BulliedWalkAnim;
studentScript.OriginalIdleAnim = studentScript.IdleAnim;
studentScript.Pathfinding.speed = 1f;
studentScript.GetDestinations();
}
this.LectureID = 0;
}
}
else
{
Debug.Log("The police were present at
school, so we're returning to the EndOfDay sequence now.");
this.EndOfDay.Phase++;
this.EndOfDay.UpdateScene();
}
}
}
}
}
if (!this.MyAudio.isPlaying)
{
this.CounselorSubtitle.text = string.Empty;
}
if (this.Interrogating)
{
this.UpdateInterrogation();
}
}
UnityEngine.Object.Destroy(this.Yandere.Subtitle.CurrentClip);
}
this.Yandere.CameraEffects.UpdateDOF(1.1f);
this.GenkaChibi.mainTexture = this.AnnoyedChibi;
this.CounselorBar.SetActive(true);
this.Subtitle.Label.text = "";
this.InterrogationPhase++;
Time.timeScale = 1f;
this.Timer = 0f;
}
}
else if (this.InterrogationPhase == 1)
{
this.Yandere.Police.Darkness.color -= new Color(0f, 0f, 0f,
Time.deltaTime);
this.Yandere.MainCamera.transform.position =
Vector3.Lerp(this.Yandere.MainCamera.transform.position,
this.CameraTarget.position, this.Timer * Time.deltaTime * 0.5f);
if (this.Timer > 5f || Input.GetButtonDown(InputNames.Xbox_A))
{
this.Yandere.MainCamera.transform.position =
this.CameraTarget.position;
this.MyAudio.clip =
this.GreetingClips[this.CounselorVisits];
this.CounselorSubtitle.text =
this.Greetings[this.CounselorVisits];
this.Yandere.Police.Darkness.color = new Color(0f, 0f, 0f,
0f);
this.InterrogationPhase++;
this.MyAudio.Play();
this.Timer = 0f;
}
}
else if (this.InterrogationPhase == 2)
{
if (Input.GetButtonDown(InputNames.Xbox_A))
{
this.MyAudio.Stop();
}
if (this.Timer > this.MyAudio.clip.length + 0.5f)
{
if (this.Crime == StudentWitnessType.Blood || this.Crime ==
StudentWitnessType.BloodAndInsanity)
{
this.MyAudio.clip =
this.BloodLectureClips[this.BloodVisits];
this.CounselorSubtitle.text =
this.BloodLectures[this.BloodVisits];
if (this.BloodVisits < 2)
{
this.BloodVisits++;
}
this.CrimeID = 1;
}
else if (this.Crime == StudentWitnessType.Insanity ||
this.Crime == StudentWitnessType.CleaningItem || this.Crime ==
StudentWitnessType.HoldingBloodyClothing || this.Crime ==
StudentWitnessType.Poisoning || this.Crime == StudentWitnessType.Stalking)
{
this.MyAudio.clip =
this.InsanityLectureClips[this.InsanityVisits];
this.CounselorSubtitle.text =
this.InsanityLectures[this.InsanityVisits];
if (this.InsanityVisits < 2)
{
this.InsanityVisits++;
}
this.CrimeID = 2;
}
else if (this.Crime == StudentWitnessType.Lewd)
{
this.MyAudio.clip =
this.LewdLectureClips[this.LewdVisits];
this.CounselorSubtitle.text =
this.LewdLectures[this.LewdVisits];
if (this.LewdVisits < 2)
{
this.LewdVisits++;
}
this.CrimeID = 3;
}
else if (this.Crime == StudentWitnessType.Theft ||
this.Crime == StudentWitnessType.Pickpocketing)
{
this.MyAudio.clip =
this.TheftLectureClips[this.TheftVisits];
this.CounselorSubtitle.text =
this.TheftLectures[this.TheftVisits];
if (this.TheftVisits < 2)
{
this.TheftVisits++;
}
this.CrimeID = 4;
}
else if (this.Crime == StudentWitnessType.Trespassing)
{
this.MyAudio.clip =
this.TrespassLectureClips[this.TrespassVisits];
this.CounselorSubtitle.text =
this.TrespassLectures[this.TrespassVisits];
if (this.TrespassVisits < 2)
{
this.TrespassVisits++;
}
this.CrimeID = 5;
}
else if (this.Crime == StudentWitnessType.Weapon ||
this.Crime == StudentWitnessType.WeaponAndBlood || this.Crime ==
StudentWitnessType.WeaponAndInsanity || this.Crime ==
StudentWitnessType.WeaponAndBloodAndInsanity)
{
this.MyAudio.clip =
this.WeaponLectureClips[this.WeaponVisits];
this.CounselorSubtitle.text =
this.WeaponLectures[this.WeaponVisits];
if (this.WeaponVisits < 2)
{
this.WeaponVisits++;
}
this.CrimeID = 6;
}
this.InterrogationPhase++;
this.MyAudio.Play();
this.Timer = 0f;
}
}
else if (this.InterrogationPhase == 3)
{
if (Input.GetButtonDown(InputNames.Xbox_A))
{
this.MyAudio.Stop();
}
if (this.Timer > this.MyAudio.clip.length + 0.5f)
{
for (int i = 1; i < 7; i++)
{
this.CounselorOption[i].transform.localPosition =
this.CounselorOption[i].OriginalPosition;
this.CounselorOption[i].Sprite.color =
this.CounselorOption[i].OriginalColor;
this.CounselorOption[i].transform.localScale = new
Vector3(0.9f, 0.9f, 1f);
this.CounselorOption[i].gameObject.SetActive(true);
this.CounselorOption[i].Clicked = false;
}
this.Yandere.CharacterAnimation["f02_countdown_00"].speed =
1f;
this.Yandere.CharacterAnimation.Play("f02_countdown_00");
this.Yandere.transform.position = new Vector3(-27.818f, 0f,
12f);
this.Yandere.transform.eulerAngles = new Vector3(0f, -90f,
0f);
this.Yandere.MainCamera.transform.position = new Vector3(-
28f, 1.1f, 12f);
this.Yandere.MainCamera.transform.eulerAngles = new
Vector3(0f, 90f, 0f);
this.Reticle.transform.localPosition = new Vector3(0f, 0f,
0f);
this.CounselorOptions.SetActive(true);
this.CounselorBar.SetActive(false);
this.CounselorSubtitle.text = "";
this.MyAudio.clip = this.Countdown;
this.MyAudio.Play();
this.PromptBar.Label[0].text = "Accept";
this.PromptBar.Label[4].text = "Choose";
this.PromptBar.Label[5].text = "Choose";
this.PromptBar.UpdateButtons();
this.PromptBar.Show = true;
Cursor.lockState = CursorLockMode.None;
Cursor.visible = true;
this.Yandere.CameraEffects.UpdateDOF(0.4f);
this.InterrogationPhase++;
this.Timer = 0f;
}
}
else if (this.InterrogationPhase == 4)
{
this.Yandere.MainCamera.transform.Translate(Vector3.forward *
Time.deltaTime * 0.01f);
this.CounselorOptions.transform.localEulerAngles += new
Vector3(0f, 0f, Time.deltaTime * -36f);
if (this.InputDevice.Type == InputDeviceType.Gamepad)
{
this.Reticle.SetActive(true);
Cursor.visible = false;
this.Reticle.transform.localPosition += new
Vector3(Input.GetAxis("Horizontal") * 1500f * Time.deltaTime,
Input.GetAxis("Vertical") * 1500f * Time.deltaTime, 0f);
}
else
{
this.Reticle.SetActive(true);
Cursor.visible = true;
this.Reticle.transform.localPosition += new
Vector3(Input.GetAxis("Horizontal") * 1500f * Time.deltaTime,
Input.GetAxis("Vertical") * 1500f * Time.deltaTime, 0f);
if (Input.GetKey("up"))
{
this.Reticle.transform.localPosition += new
Vector3(0f, 1500f * Time.deltaTime, 0f);
}
if (Input.GetKey("down"))
{
this.Reticle.transform.localPosition -= new
Vector3(0f, 1500f * Time.deltaTime, 0f);
}
if (Input.GetKey("right"))
{
this.Reticle.transform.localPosition += new
Vector3(1500f * Time.deltaTime, 0f, 0f);
}
if (Input.GetKey("left"))
{
this.Reticle.transform.localPosition -= new
Vector3(1500f * Time.deltaTime, 0f, 0f);
}
}
if (this.Reticle.transform.localPosition.x > 975f)
{
this.Reticle.transform.localPosition = new Vector3(975f,
this.Reticle.transform.localPosition.y, this.Reticle.transform.localPosition.z);
}
if (this.Reticle.transform.localPosition.x < -975f)
{
this.Reticle.transform.localPosition = new Vector3(-975f,
this.Reticle.transform.localPosition.y, this.Reticle.transform.localPosition.z);
}
if (this.Reticle.transform.localPosition.y > 525f)
{
this.Reticle.transform.localPosition = new
Vector3(this.Reticle.transform.localPosition.x, 525f,
this.Reticle.transform.localPosition.z);
}
if (this.Reticle.transform.localPosition.y < -525f)
{
this.Reticle.transform.localPosition = new
Vector3(this.Reticle.transform.localPosition.x, -525f,
this.Reticle.transform.localPosition.z);
}
for (int j = 1; j < 7; j++)
{
this.CounselorOption[j].transform.eulerAngles = new
Vector3(this.CounselorOption[j].transform.eulerAngles.x,
this.CounselorOption[j].transform.eulerAngles.y, 0f);
if (this.CounselorOption[j].Clicked ||
(this.CounselorOption[j].Sprite.color != this.CounselorOption[j].OriginalColor &&
Input.GetButtonDown(InputNames.Xbox_A)))
{
for (int k = 1; k < 7; k++)
{
if (k != j)
{
this.CounselorOption[k].gameObject.SetActive(false);
}
}
this.Yandere.CharacterAnimation["f02_countdown_00"].time = 10f;
this.MyAudio.clip = this.Choice;
this.MyAudio.pitch = 1f;
this.MyAudio.Play();
Cursor.lockState = CursorLockMode.Locked;
Cursor.visible = false;
this.Reticle.SetActive(false);
this.InterrogationPhase++;
this.Answer = j;
this.Timer = 0f;
this.PromptBar.ClearButtons();
}
}
if (this.Timer > 10f)
{
Cursor.lockState = CursorLockMode.Locked;
Cursor.visible = false;
this.Reticle.SetActive(false);
this.SilentTreatment = true;
this.InterrogationPhase++;
this.Timer = 0f;
this.PromptBar.ClearButtons();
}
}
else if (this.InterrogationPhase == 5)
{
int l = 1;
if (this.SilentTreatment)
{
this.CounselorOptions.transform.localScale += new
Vector3(Time.deltaTime * 2f, Time.deltaTime * 2f, Time.deltaTime * 2f);
while (l < 7)
{
this.CounselorOption[l].transform.localScale -= new
Vector3(Time.deltaTime, Time.deltaTime, Time.deltaTime);
l++;
}
}
if (this.Timer > 3f || Input.GetButtonDown(InputNames.Xbox_A))
{
this.CounselorOptions.transform.localScale = new
Vector3(1f, 1f, 1f);
this.CounselorOptions.SetActive(false);
this.CounselorBar.SetActive(true);
this.Yandere.CameraEffects.UpdateDOF(1.1f);
this.Yandere.transform.position = new Vector3(-27.51f, 0f,
12f);
this.Yandere.MainCamera.transform.position =
this.CameraTarget.position;
this.Yandere.MainCamera.transform.eulerAngles =
this.CameraTarget.eulerAngles;
if (this.SilentTreatment)
{
this.MyAudio.clip = this.Silence;
this.CounselorSubtitle.text = "...";
}
else if (this.Answer == 1)
{
this.MyAudio.clip = this.ExcuseClips[this.CrimeID];
this.CounselorSubtitle.text =
this.Excuses[this.CrimeID];
if (this.CrimeID == 1)
{
this.BloodExcuseUsed++;
}
else if (this.CrimeID == 2)
{
this.InsanityExcuseUsed++;
}
else if (this.CrimeID == 3)
{
this.LewdExcuseUsed++;
}
else if (this.CrimeID == 4)
{
this.TheftExcuseUsed++;
}
else if (this.CrimeID == 5)
{
this.TrespassExcuseUsed++;
}
else if (this.CrimeID == 6)
{
this.WeaponExcuseUsed++;
}
}
else if (this.Answer == 2)
{
this.MyAudio.clip = this.ApologyClip;
this.CounselorSubtitle.text = this.Apology;
this.ApologiesUsed++;
}
else if (this.Answer == 3)
{
this.MyAudio.clip = this.LieClips[this.CrimeID];
this.CounselorSubtitle.text =
this.Lies[this.CrimeID];
}
else if (this.Answer == 4)
{
this.MyAudio.clip =
this.DelinquentClips[this.CrimeID];
this.CounselorSubtitle.text =
this.Delinquents[this.CrimeID];
}
else if (this.Answer == 5)
{
this.MyAudio.clip = this.FlirtClip;
this.CounselorSubtitle.text = this.Flirt;
}
else if (this.Answer == 6)
{
this.MyAudio.clip = this.ThreatenClip;
this.CounselorSubtitle.text = this.Threaten;
}
this.Yandere.CharacterAnimation.Play("f02_sit_00");
this.InterrogationPhase++;
this.MyAudio.Play();
this.Timer = 0f;
}
}
else if (this.InterrogationPhase == 6)
{
if (this.Answer == 6)
{
this.Yandere.Sanity =
Mathf.MoveTowards(this.Yandere.Sanity, 0f, Time.deltaTime * 7.5f);
this.Rumble.volume += Time.deltaTime * 0.075f;
}
if (this.Timer > this.MyAudio.clip.length + 0.5f ||
Input.GetButtonDown(InputNames.Xbox_A))
{
if (this.SilentTreatment)
{
int num = UnityEngine.Random.Range(0, 3);
this.MyAudio.clip = this.SilentClips[num];
this.CounselorSubtitle.text = this.Silents[num];
this.Patience--;
}
else if (this.Answer == 1)
{
if (this.CrimeID == 1)
{
Debug.Log("The player's crime is Bloodiness.");
}
else if (this.CrimeID == 2)
{
Debug.Log("The player's crime is Insanity.");
}
else if (this.CrimeID == 3)
{
Debug.Log("The player's crime is Lewdness.");
}
else if (this.CrimeID == 4)
{
Debug.Log("The player's crime is Theft.");
}
else if (this.CrimeID == 5)
{
Debug.Log("The player's crime is
Trespassing.");
}
else if (this.CrimeID == 6)
{
Debug.Log("The player's crime is Weaponry.");
}
Debug.Log("The player has chosen to use an exuse.");
bool flag = false;
if ((this.CrimeID == 1 && this.BloodExcuseUsed > 1)
|| (this.CrimeID == 2 && this.InsanityExcuseUsed > 1) || (this.CrimeID == 3 &&
this.LewdExcuseUsed > 1) || (this.CrimeID == 4 && this.TheftExcuseUsed > 1) ||
(this.CrimeID == 5 && this.TrespassExcuseUsed > 1) || (this.CrimeID == 6 &&
this.WeaponExcuseUsed > 1))
{
Debug.Log("Yandere-chan has already used this
excuse before.");
flag = true;
}
if (!flag)
{
Debug.Log("Yandere-chan's excuse is not
invalid!");
this.MyAudio.clip =
this.AcceptExcuseClips[this.CrimeID];
this.CounselorSubtitle.text =
this.AcceptExcuses[this.CrimeID];
this.MyAnimation.CrossFade("CounselorRelief",
1f);
this.Stern = false;
this.Patience = 1;
}
else
{
Debug.Log("Yandere-chan's excuse has been
deemed invalid.");
int num2 = UnityEngine.Random.Range(0, 3);
this.MyAudio.clip =
this.RejectExcuseClips[num2];
this.CounselorSubtitle.text =
this.RejectExcuses[num2];
this.MyAnimation.CrossFade("CounselorAnnoyed");
this.Angry = true;
this.Patience--;
}
}
else if (this.Answer == 2)
{
if (this.ApologiesUsed == 1)
{
this.MyAudio.clip = this.AcceptApologyClip;
this.CounselorSubtitle.text =
this.AcceptApology;
this.MyAnimation.CrossFade("CounselorRelief",
1f);
this.Stern = false;
this.Patience = 1;
}
else
{
int num3 = UnityEngine.Random.Range(0, 3);
this.MyAudio.clip =
this.RejectApologyClips[num3];
this.CounselorSubtitle.text =
this.RejectApologies[num3];
this.MyAnimation.CrossFade("CounselorAnnoyed");
this.Patience--;
}
}
else if (this.Answer == 3)
{
int num4 = UnityEngine.Random.Range(0, 5);
this.MyAudio.clip = this.RejectLieClips[num4];
this.CounselorSubtitle.text = this.RejectLies[num4];
this.MyAnimation.CrossFade("CounselorAnnoyed");
this.Angry = true;
this.Patience--;
}
else if (this.Answer == 4)
{
bool flag2 = false;
bool flag3 = false;
bool flag4 = false;
int num5 = 5;
if (StudentGlobals.GetStudentDead(76) &&
StudentGlobals.GetStudentDead(77) && StudentGlobals.GetStudentDead(78) &&
StudentGlobals.GetStudentDead(79) && StudentGlobals.GetStudentDead(80))
{
flag4 = true;
}
else if (StudentGlobals.GetStudentExpelled(76) &&
StudentGlobals.GetStudentExpelled(77) && StudentGlobals.GetStudentExpelled(78) &&
StudentGlobals.GetStudentExpelled(79) && StudentGlobals.GetStudentExpelled(80))
{
flag3 = true;
}
else
{
if (this.StudentManager.Students[76] == null)
{
num5--;
}
else if (!
this.StudentManager.Students[76].gameObject.activeInHierarchy)
{
num5--;
}
if (this.StudentManager.Students[77] == null)
{
num5--;
}
else if (!
this.StudentManager.Students[77].gameObject.activeInHierarchy)
{
num5--;
}
if (this.StudentManager.Students[78] == null)
{
num5--;
}
else if (!
this.StudentManager.Students[78].gameObject.activeInHierarchy)
{
num5--;
}
if (this.StudentManager.Students[79] == null)
{
num5--;
}
else if (!
this.StudentManager.Students[79].gameObject.activeInHierarchy)
{
num5--;
}
if (this.StudentManager.Students[80] == null)
{
num5--;
}
else if (!
this.StudentManager.Students[80].gameObject.activeInHierarchy)
{
num5--;
}
if (num5 == 0)
{
flag2 = true;
}
}
bool flag5 = false;
if ((this.CrimeID == 1 && this.BloodBlameUsed > 1) ||
(this.CrimeID == 2 && this.InsanityBlameUsed > 1) || (this.CrimeID == 3 &&
this.LewdBlameUsed > 1) || (this.CrimeID == 4 && this.TheftBlameUsed > 1) ||
(this.CrimeID == 5 && this.TrespassBlameUsed > 1) || (this.CrimeID == 6 &&
this.WeaponBlameUsed > 1))
{
flag5 = true;
}
if (flag4)
{
this.MyAudio.clip = this.DelinquentsDeadClip;
this.CounselorSubtitle.text =
this.DelinquentsDead;
this.MyAnimation.CrossFade("CounselorAnnoyed");
this.Angry = true;
this.Patience--;
}
else if (flag3)
{
this.MyAudio.clip =
this.DelinquentsExpelledClip;
this.CounselorSubtitle.text =
this.DelinquentsExpelled;
this.MyAnimation.CrossFade("CounselorAnnoyed");
this.Patience--;
}
else if (flag2)
{
this.MyAudio.clip = this.DelinquentsGoneClip;
this.CounselorSubtitle.text =
this.DelinquentsGone;
this.MyAnimation.CrossFade("CounselorAnnoyed");
this.Patience--;
}
else if (!flag5)
{
if (this.CrimeID == 1)
{
Debug.Log("Banning weapons.");
this.WeaponsBanned++;
}
this.MyAudio.clip =
this.AcceptBlameClips[this.CrimeID];
this.CounselorSubtitle.text =
this.AcceptBlames[this.CrimeID];
this.MyAnimation.CrossFade("CounselorSad", 1f);
this.Stern = false;
this.Sad = true;
this.Patience = 1;
this.DelinquentPunishments++;
if (this.CrimeID == 1)
{
this.BloodBlameUsed++;
}
else if (this.CrimeID == 2)
{
this.InsanityBlameUsed++;
}
else if (this.CrimeID == 3)
{
this.LewdBlameUsed++;
}
else if (this.CrimeID == 4)
{
this.TheftBlameUsed++;
}
else if (this.CrimeID == 5)
{
this.TrespassBlameUsed++;
}
else if (this.CrimeID == 6)
{
this.WeaponBlameUsed++;
}
if (this.DelinquentPunishments > 5)
{
this.MustExpelDelinquents = true;
}
}
else
{
int num6 = UnityEngine.Random.Range(0, 3);
this.MyAudio.clip =
this.RejectBlameClips[num6];
this.CounselorSubtitle.text =
this.RejectBlames[num6];
this.MyAnimation.CrossFade("CounselorAnnoyed");
this.Patience--;
}
}
else if (this.Answer == 5)
{
int num7 = UnityEngine.Random.Range(0, 3);
this.MyAudio.clip = this.RejectFlirtClips[num7];
this.CounselorSubtitle.text =
this.RejectFlirts[num7];
this.MyAnimation.CrossFade("CounselorAnnoyed");
this.Angry = true;
this.Patience--;
}
else if (this.Answer == 6)
{
this.MyAudio.clip = this.RejectThreatClip;
this.CounselorSubtitle.text = this.RejectThreat;
this.MyAnimation.CrossFade("CounselorAnnoyed");
this.InterrogationPhase += 2;
this.Patience = -6;
this.Angry = true;
}
if (this.Patience < -6)
{
this.Patience = -6;
}
if (this.Patience == 1)
{
this.GenkaChibi.mainTexture = this.HappyChibi;
}
else if (this.Patience == -6)
{
this.GenkaChibi.mainTexture = this.MadChibi;
}
else
{
this.GenkaChibi.mainTexture = this.AnnoyedChibi;
}
this.InterrogationPhase++;
this.MyAudio.Play();
this.Timer = 0f;
}
}
else if (this.InterrogationPhase == 7)
{
if (this.Timer > this.MyAudio.clip.length + 0.5f ||
Input.GetButtonDown(InputNames.Xbox_A))
{
if (this.Patience < 0)
{
int num8 = UnityEngine.Random.Range(0, 3);
this.MyAudio.clip = this.BadClosingClips[num8];
this.CounselorSubtitle.text = this.BadClosings[num8];
this.MyAnimation.CrossFade("CounselorArmsCrossed",
1f);
this.InterrogationPhase += 2;
}
else
{
if (this.MustExpelDelinquents)
{
this.MyAudio.clip = this.ExpelDelinquentsClip;
this.CounselorSubtitle.text =
this.ExpelDelinquents;
this.MustExpelDelinquents = false;
this.StudentManager.Students[76].gameObject.SetActive(false);
this.StudentManager.Students[77].gameObject.SetActive(false);
this.StudentManager.Students[78].gameObject.SetActive(false);
this.StudentManager.Students[79].gameObject.SetActive(false);
this.StudentManager.Students[80].gameObject.SetActive(false);
this.ExpelledDelinquents = true;
this.DelinquentRadio.SetActive(false);
}
else if (this.Answer == 4)
{
this.MyAudio.clip =
this.BlameClosingClips[this.CrimeID];
this.CounselorSubtitle.text =
this.BlameClosings[this.CrimeID];
}
else
{
int num9 = UnityEngine.Random.Range(0, 3);
this.MyAudio.clip =
this.FreeToLeaveClips[num9];
this.CounselorSubtitle.text =
this.FreeToLeaves[num9];
this.MyAnimation.CrossFade("CounselorArmsCrossed", 1f);
this.Stern = true;
}
this.InterrogationPhase++;
}
this.MyAudio.Play();
this.Timer = 0f;
}
}
else if (this.InterrogationPhase == 8)
{
if (this.Timer > this.MyAudio.clip.length + 0.5f ||
Input.GetButtonDown(InputNames.Xbox_A))
{
this.CounselorDoor.FadeOut = true;
this.CounselorDoor.Exit = true;
this.Interrogating = false;
this.InterrogationPhase = 0;
this.Timer = 0f;
}
}
else if (this.InterrogationPhase == 9)
{
if (this.Timer > this.MyAudio.clip.length + 0.5f ||
Input.GetButtonDown(InputNames.Xbox_A))
{
this.MyAnimation.Play("CounselorSlamDesk");
this.InterrogationPhase++;
this.MyAudio.Stop();
this.Stern = false;
this.Angry = true;
this.Timer = 0f;
}
}
else if (this.InterrogationPhase == 10)
{
if (this.Timer > 0.5f)
{
if (!this.Slammed)
{
GamePad.SetVibration(PlayerIndex.One, 1f, 1f);
this.VibrationCheck = true;
this.VibrationTimer = 0.2f;
AudioSource.PlayClipAtPoint(this.Slam,
base.transform.position);
this.Shake.shakeAmount = 0.1f;
this.Shake.enabled = true;
this.Shake.shake = 0.5f;
this.Slammed = true;
}
this.Shake.shakeAmount = Mathf.Lerp(this.Shake.shakeAmount,
0f, Time.deltaTime);
}
this.Shake.shakeAmount = Mathf.Lerp(this.Shake.shakeAmount, 0f,
Time.deltaTime * 10f);
if (this.Timer > 1.5f || Input.GetButtonDown(InputNames.Xbox_A))
{
this.MyAudio.clip =
this.SuspensionClips[Mathf.Abs(this.Patience)];
this.CounselorSubtitle.text =
this.Suspensions[Mathf.Abs(this.Patience)];
this.MyAnimation.Play("CounselorSlamIdle");
this.Shake.enabled = false;
this.InterrogationPhase++;
this.SentHome = true;
this.MyAudio.Play();
this.Timer = 0f;
}
}
else if (this.InterrogationPhase == 11 && (this.Timer >
this.MyAudio.clip.length + 0.5f || Input.GetButtonDown(InputNames.Xbox_A)) && !
this.Yandere.Police.FadeOut)
{
this.PromptBar.Show = false;
this.CounselorPunishments++;
this.Yandere.Police.Darkness.color = new Color(0f, 0f, 0f, 0f);
this.Yandere.Police.SuspensionLength = Mathf.Abs(this.Patience);
this.Yandere.Police.Darkness.enabled = true;
this.Yandere.Police.ClubActivity = false;
this.Yandere.Police.Suspended = true;
this.Yandere.Police.FadeOut = true;
this.Yandere.Police.HiddenCorpses = 0;
if (this.Yandere.Police.Corpses > 0)
{
this.Yandere.ShoulderCamera.GoingToCounselor = true;
}
this.Yandere.ShoulderCamera.HUD.SetActive(true);
this.InterrogationPhase++;
if (this.Patience == -6)
{
this.Expelled = true;
}
this.Timer = 0f;
this.Yandere.Senpai = this.StudentManager.Students[1].transform;
this.StudentManager.Reputation.PendingRep -= 10f;
this.StudentManager.Reputation.UpdateRep();
}
if (this.InterrogationPhase > 6)
{
this.Yandere.Sanity = Mathf.Lerp(this.Yandere.Sanity, 100f,
Time.deltaTime);
this.Rumble.volume = Mathf.Lerp(this.Rumble.volume, 0f,
Time.deltaTime);
this.GenkaChibi.transform.localPosition =
Vector3.Lerp(this.GenkaChibi.transform.localPosition, new Vector3(0f, (float)(90 *
this.Patience), 0f), Time.deltaTime * 10f);
}
}