Pastebin PRO Accounts EASTER SPECIAL! For a limited time only get 40% discount on a LIFETIME PRO account! Offer Ends April 2nd!
SHARE
TWEET
Untitled
a guest
Feb 17th, 2016
96
Never
- 10c10
- < private Quaternion targetRotation;
- ---
- > public Quaternion targetRotation;
- 47a48,49
- > public CosmeticScript Cosmetic;
- >
- 80,83d81
- < public Texture DrillTexture;
- <
- < public Texture HairTexture;
- <
- 86,87d83
- < public Color EyeColor;
- <
- 90,111d85
- < public Renderer MaleHairRenderer;
- <
- < public Renderer PonyRenderer;
- <
- < public Renderer NewLongHair;
- <
- < public Renderer ShortHair;
- <
- < public Renderer TwinPony;
- <
- < public Renderer LongHair;
- <
- < public Renderer PigtailR;
- <
- < public Renderer PigtailL;
- <
- < public Renderer Drills;
- <
- < public Renderer EyeR;
- <
- < public Renderer EyeL;
- <
- 116,117d89
- < public Transform LongHairBone;
- <
- 125a98,101
- > public Transform RightDrill;
- >
- > public Transform LeftDrill;
- >
- 132,136c108
- < public Transform DrillR;
- <
- < public Transform DrillL;
- <
- < public Transform HairF;
- ---
- > public Transform Eyes;
- 140,141d111
- < public Transform Eyes;
- <
- 144,149d113
- < public Texture[] FemaleUniformTextures;
- <
- < public Texture[] MaleUniformTextures;
- <
- < public GameObject[] MaleHairstyles;
- <
- 152,153d115
- < public OutlineScript[] Outlines;
- <
- 156c118
- < public GameObject[] Chopsticks;
- ---
- > public OutlineScript[] Outlines;
- 158c120
- < public GameObject[] OccultHair;
- ---
- > public GameObject[] Chopsticks;
- 162,169d123
- < public GameObject[] IrisLight;
- <
- < public Texture[] FaceTextures;
- <
- < public Texture[] SkinTextures;
- <
- < public Mesh[] FemaleUniforms;
- <
- 172,175d125
- < public GameObject[] Eyewear;
- <
- < public Mesh[] MaleUniforms;
- <
- 202c152
- < public GameObject ShinyGlasses;
- ---
- > public GameObject RightEmptyEye;
- 204c154
- < public GameObject DeathScream;
- ---
- > public GameObject LeftEmptyEye;
- 206c156
- < public GameObject TeacherHair;
- ---
- > public GameObject DeathScream;
- 218,223d167
- < public GameObject CirnoHair;
- <
- < public GameObject PippiHair;
- <
- < public GameObject Eyepatch;
- <
- 226,229d169
- < public GameObject Bandage;
- <
- < public GameObject Bandana;
- <
- 256,257d195
- < public bool VeryLongHair;
- <
- 276,277d213
- < public bool HidePony;
- <
- 307a244,245
- > public bool GoAway;
- >
- 337a276,277
- > public bool CameraReacting;
- >
- 361a302,303
- > public float CameraPoseTimer;
- >
- 363a306,307
- > public float ReactionTimer;
- >
- 365a310,311
- > public float GoAwayTimer;
- >
- 373a320,321
- > public float StuckTimer;
- >
- 397a346,357
- > public int CameraReactPhase;
- >
- > public int SplashPhase;
- >
- > public int BathePhase;
- >
- > public int ClubPhase;
- >
- > public int TaskPhase;
- >
- > public int Phase;
- >
- 402c362
- < public int Interaction;
- ---
- > public int GossipBonus;
- 404c364
- < public int SplashPhase;
- ---
- > public int Interaction;
- 406c366
- < public int BathePhase;
- ---
- > public int RepRecovery;
- 412,414c372
- < public int ClubPhase;
- <
- < public int TaskPhase;
- ---
- > public int RepBonus;
- 420,421d377
- < public int Phase;
- <
- 453a410,411
- > public string EvilWitnessAnim;
- >
- 525a484,505
- > public string CowardAnim;
- >
- > public string EvilAnim;
- >
- > public string SocialReportAnim;
- >
- > public string SocialFearAnim;
- >
- > public string SocialTerrorAnim;
- >
- > public string BuzzSawDeathAnim;
- >
- > public string[] CameraAnims;
- >
- > public string[] SocialAnims;
- >
- > public string[] CowardAnims;
- >
- > public string[] EvilAnims;
- >
- > public string[] HeroAnims;
- >
- 547a528,529
- > public Vector3 LastPosition;
- >
- 552,553d533
- < public Transform Ponytail;
- <
- 558,561d537
- < public Transform HairL;
- <
- < public Transform HairR;
- <
- 564,575d539
- < public string HairColor;
- <
- < public Mesh TeacherMesh;
- <
- < public GameObject TeacherGlasses;
- <
- < public Texture TeacherBodyTexture;
- <
- < public Texture TeacherFaceTexture;
- <
- < public Renderer TeacherHairRenderer;
- <
- 578,579d541
- < public Texture FaceTexture;
- <
- 590,591d551
- < public Mesh SchoolUniform;
- <
- 603a564,567
- > public Texture TitanBodyTexture;
- >
- > public Texture TitanFaceTexture;
- >
- 630a595
- > this.EvilWitnessAnim = string.Empty;
- 666a632,637
- > this.CowardAnim = string.Empty;
- > this.EvilAnim = string.Empty;
- > this.SocialReportAnim = string.Empty;
- > this.SocialFearAnim = string.Empty;
- > this.SocialTerrorAnim = string.Empty;
- > this.BuzzSawDeathAnim = string.Empty;
- 702a674,690
- > if (this.Persona == 1 || this.Persona == 4)
- > {
- > this.CameraAnims = this.CowardAnims;
- > }
- > if (this.Persona == 2 || this.Persona == 3 || this.Persona == 9)
- > {
- > this.CameraAnims = this.HeroAnims;
- > }
- > else if (this.Persona == 5)
- > {
- > this.CameraAnims = this.EvilAnims;
- > }
- > else if (this.Persona == 6)
- > {
- > this.CameraAnims = this.SocialAnims;
- > }
- > this.Phone.active = true;
- 737d724
- < this.TeacherGlasses.active = false;
- 740,741d726
- < this.UpdateHair();
- < this.SetColors();
- 773,780c758,759
- < int num = 0;
- < Color color = this.EyeR.material.color;
- < float num2 = color.a = (float)num;
- < Color color2 = this.EyeR.material.color = color;
- < int num3 = 0;
- < Color color3 = this.EyeL.material.color;
- < float num4 = color3.a = (float)num3;
- < Color color4 = this.EyeL.material.color = color3;
- ---
- > UnityEngine.Object.Destroy(this.RightEmptyEye);
- > UnityEngine.Object.Destroy(this.LeftEmptyEye);
- 783a763,771
- > if (!this.Teacher)
- > {
- > if (this.Persona == 5)
- > {
- > this.ScaredAnim = this.EvilWitnessAnim;
- > }
- > this.Character.animation[this.CameraAnims[1]].speed = (float)2;
- > this.Character.animation[this.CameraAnims[3]].speed = (float)2;
- > }
- 811d798
- < this.SetColors();
- 825,838d811
- < if (this.Accessory == "Eyepatch")
- < {
- < this.Eyepatch.active = true;
- < }
- < else if (this.Accessory == "Bandage")
- < {
- < this.Bandage.active = true;
- < }
- < else if (this.Accessory == "ShinyGlasses")
- < {
- < this.ShinyGlasses.active = true;
- < this.IrisLight[0].active = false;
- < this.IrisLight[1].active = false;
- < }
- 876d848
- < this.Bandana.active = true;
- 905,908d876
- < if (this.Club != 6)
- < {
- < this.Bandana.active = false;
- < }
- 929,932d896
- < if (PlayerPrefs.GetInt("SenpaiEyeWear") > 0)
- < {
- < this.Eyewear[PlayerPrefs.GetInt("SenpaiEyeWear")].active = true;
- < }
- 959,963c923
- < this.Reputation.PendingRep = this.Reputation.PendingRep - (float)10;
- < this.PendingRep -= (float)10;
- < this.Grudge = true;
- < this.ID = 0;
- < while (this.ID < Extensions.get_length(this.Outlines))
- ---
- > if (this.Persona != 4 && this.Persona != 5)
- 965,966c925,932
- < this.Outlines[this.ID].color = new Color((float)1, (float)1, (float)0, (float)1);
- < this.ID++;
- ---
- > this.Reputation.PendingRep = this.Reputation.PendingRep - (float)10;
- > this.PendingRep -= (float)10;
- > this.ID = 0;
- > while (this.ID < Extensions.get_length(this.Outlines))
- > {
- > this.Outlines[this.ID].color = new Color((float)1, (float)1, (float)0, (float)1);
- > this.ID++;
- > }
- 967a934
- > this.Grudge = true;
- 969c936
- < if ((this.StudentID != 21 && this.StudentID != 26) || this.Club == 0)
- ---
- > if (this.Club != 0 && (this.StudentID == 21 || this.StudentID == 26))
- 971c938
- < this.Armband.active = false;
- ---
- > this.Armband.active = true;
- 989a957
- > this.GoAway = false;
- 1131c1099
- < if (this.Actions[this.Phase] == 0)
- ---
- > if (!this.GoAway)
- 1133,1137c1101
- < this.Character.animation.CrossFade(this.IdleAnim);
- < }
- < else if (this.Actions[this.Phase] == 1)
- < {
- < if (PlayerPrefs.GetFloat("SchoolAtmosphere") < 33.33333f)
- ---
- > if (this.Actions[this.Phase] == 0)
- 1141c1105
- < else
- ---
- > else if (this.Actions[this.Phase] == 1)
- 1143,1144c1107,1111
- < this.Character.animation.CrossFade(this.RandomAnim);
- < if (this.Character.animation[this.RandomAnim].time >= this.Character.animation[this.RandomAnim].length)
- ---
- > if (PlayerPrefs.GetFloat("SchoolAtmosphere") < 33.33333f)
- > {
- > this.Character.animation.CrossFade(this.IdleAnim);
- > }
- > else
- 1146c1113,1117
- < this.PickRandomAnim();
- ---
- > this.Character.animation.CrossFade(this.RandomAnim);
- > if (this.Character.animation[this.RandomAnim].time >= this.Character.animation[this.RandomAnim].length)
- > {
- > this.PickRandomAnim();
- > }
- 1149,1168c1120
- < }
- < else if (this.Actions[this.Phase] == 2)
- < {
- < this.Character.animation.CrossFade(this.GameAnim);
- < }
- < else if (this.Actions[this.Phase] == 3)
- < {
- < this.Character.animation.CrossFade(this.SadSitAnim);
- < }
- < else if (this.Actions[this.Phase] == 4)
- < {
- < this.Character.animation.CrossFade(this.BrokenAnim);
- < }
- < else if (this.Actions[this.Phase] == 5)
- < {
- < this.Character.animation.CrossFade(this.RelaxAnim);
- < }
- < else if (this.Actions[this.Phase] == 6)
- < {
- < if (this.DressCode && this.ClubAttire)
- ---
- > else if (this.Actions[this.Phase] == 2)
- 1170c1122
- < this.Character.animation.CrossFade(this.IdleAnim);
- ---
- > this.Character.animation.CrossFade(this.GameAnim);
- 1172c1124
- < else
- ---
- > else if (this.Actions[this.Phase] == 3)
- 1174c1126
- < this.Character.animation.CrossFade(this.SitAnim);
- ---
- > this.Character.animation.CrossFade(this.SadSitAnim);
- 1176,1183c1128
- < }
- < else if (this.Actions[this.Phase] == 7)
- < {
- < this.Character.animation.CrossFade(this.StalkAnim);
- < }
- < else if (this.Actions[this.Phase] == 8)
- < {
- < if (this.DressCode && !this.ClubAttire)
- ---
- > else if (this.Actions[this.Phase] == 4)
- 1185c1130
- < this.Character.animation.CrossFade(this.IdleAnim);
- ---
- > this.Character.animation.CrossFade(this.BrokenAnim);
- 1187c1132,1136
- < else
- ---
- > else if (this.Actions[this.Phase] == 5)
- > {
- > this.Character.animation.CrossFade(this.RelaxAnim);
- > }
- > else if (this.Actions[this.Phase] == 6)
- 1189c1138,1145
- < this.Character.animation.CrossFade(this.ClubAnim);
- ---
- > if (this.DressCode && this.ClubAttire)
- > {
- > this.Character.animation.CrossFade(this.IdleAnim);
- > }
- > else
- > {
- > this.Character.animation.CrossFade(this.SitAnim);
- > }
- 1191c1147
- < if (this.Club == 3 && this.StudentID != 26)
- ---
- > else if (this.Actions[this.Phase] == 7)
- 1193c1149
- < this.OccultBook.active = true;
- ---
- > this.Character.animation.CrossFade(this.StalkAnim);
- 1195,1198c1151
- < }
- < else if (this.Actions[this.Phase] == 9)
- < {
- < if (PlayerPrefs.GetFloat("SchoolAtmosphere") < 33.33333f)
- ---
- > else if (this.Actions[this.Phase] == 8)
- 1200c1153,1164
- < this.Character.animation.CrossFade(this.IdleAnim);
- ---
- > if (this.DressCode && !this.ClubAttire)
- > {
- > this.Character.animation.CrossFade(this.IdleAnim);
- > }
- > else
- > {
- > this.Character.animation.CrossFade(this.ClubAnim);
- > }
- > if (this.Club == 3 && this.StudentID != 26)
- > {
- > this.OccultBook.active = true;
- > }
- 1202c1166
- < else
- ---
- > else if (this.Actions[this.Phase] == 9)
- 1204,1205c1168,1172
- < this.Character.animation.CrossFade(this.RandomAnim);
- < if (this.Character.animation[this.RandomAnim].time >= this.Character.animation[this.RandomAnim].length)
- ---
- > if (PlayerPrefs.GetFloat("SchoolAtmosphere") < 33.33333f)
- > {
- > this.Character.animation.CrossFade(this.IdleAnim);
- > }
- > else
- 1207c1174,1178
- < this.PickRandomAnim();
- ---
- > this.Character.animation.CrossFade(this.RandomAnim);
- > if (this.Character.animation[this.RandomAnim].time >= this.Character.animation[this.RandomAnim].length)
- > {
- > this.PickRandomAnim();
- > }
- 1210a1182,1193
- > else
- > {
- > this.Character.animation.CrossFade(this.IdleAnim);
- > this.GoAwayTimer += Time.deltaTime;
- > if (this.GoAwayTimer > (float)60)
- > {
- > this.CurrentDestination = this.Destinations[this.Phase];
- > this.Pathfinding.target = this.Destinations[this.Phase];
- > this.GoAwayTimer = (float)0;
- > this.GoAway = false;
- > }
- > }
- 1285,1286c1268,1272
- < this.Police.Witnesses = this.Police.Witnesses - 1;
- < this.Police.Show = true;
- ---
- > if (this.Persona != 4 && this.Persona != 5)
- > {
- > this.Police.Witnesses = this.Police.Witnesses - 1;
- > this.Police.Show = true;
- > }
- 1403c1389
- < if (!this.Yandere.Armed)
- ---
- > if (!this.Yandere.Armed || !this.Yandere.Weapon[this.Yandere.Equipped].Concealable)
- 1425a1412,1500
- > else if (this.Persona == 4)
- > {
- > this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
- > this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- > this.Character.animation.CrossFade(this.CowardAnim);
- > this.ReactionTimer += Time.deltaTime;
- > if (this.ReactionTimer > (float)5)
- > {
- > this.CurrentDestination = this.StudentManager.Exit;
- > this.Pathfinding.target = this.StudentManager.Exit;
- > }
- > }
- > else if (this.Persona == 5)
- > {
- > this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
- > this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- > this.Character.animation.CrossFade(this.EvilAnim);
- > this.ReactionTimer += Time.deltaTime;
- > if (this.ReactionTimer > (float)5)
- > {
- > this.CurrentDestination = this.StudentManager.Exit;
- > this.Pathfinding.target = this.StudentManager.Exit;
- > }
- > }
- > else if (this.Persona == 6)
- > {
- > if (this.ReportPhase == 1)
- > {
- > this.targetRotation = Quaternion.LookRotation(this.Pathfinding.target.position - this.Pathfinding.target.forward - this.transform.position);
- > this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- > if (!this.Phone.active)
- > {
- > if (this.StudentManager.Reporter == null && !this.Police.Called)
- > {
- > this.Character.animation.CrossFade(this.SocialReportAnim);
- > this.Subtitle.UpdateLabel("Social Report", 1, (float)5);
- > this.StudentManager.Reporter = this;
- > this.Phone.active = true;
- > }
- > else
- > {
- > this.ReportTimer = (float)5;
- > }
- > }
- > this.ReportTimer += Time.deltaTime;
- > if (this.ReportTimer > (float)5)
- > {
- > if (this.StudentManager.Reporter == this)
- > {
- > this.Police.Called = true;
- > this.Police.Show = true;
- > }
- > this.Character.animation.CrossFade(this.ParanoidAnim);
- > this.Phone.active = false;
- > this.ReportPhase++;
- > }
- > }
- > else if (this.ReportPhase == 2)
- > {
- > if (this.WitnessedMurder)
- > {
- > this.LookForYandere();
- > }
- > }
- > else if (this.ReportPhase == 3)
- > {
- > this.Character.animation.CrossFade(this.SocialFearAnim);
- > this.Subtitle.UpdateLabel("Social Fear", 1, (float)5);
- > this.SpawnAlarmDisc();
- > this.ReportPhase++;
- > }
- > else if (this.ReportPhase == 4)
- > {
- > this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
- > this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- > if (this.Yandere.Attacking)
- > {
- > this.LookForYandere();
- > }
- > }
- > else if (this.ReportPhase == 5)
- > {
- > this.Character.animation.CrossFade(this.SocialTerrorAnim);
- > this.Subtitle.UpdateLabel("Social Terror", 1, (float)5);
- > this.VisionCone.farClipPlane = (float)0;
- > this.SpawnAlarmDisc();
- > this.ReportPhase++;
- > }
- > }
- 1510a1586
- > this.Police.Called = true;
- 1549,1553c1625,1626
- < if (this.Yandere.Dragging || this.Yandere.Mopping || this.Yandere.PickUp != null)
- < {
- < this.Yandere.Mopping = false;
- < this.Yandere.EmptyHands();
- < }
- ---
- > this.Yandere.Mopping = false;
- > this.Yandere.EmptyHands();
- 1778,1781c1851,1854
- < AudioSource arg_22F1_0 = this.LightSwitch.audio;
- < object arg_22EC_0;
- < object expr_22D2 = arg_22EC_0 = UnityRuntimeServices.GetProperty(this.LightSwitch, "ElectricityCackling");
- < if (!(expr_22D2 is AudioClip))
- ---
- > AudioSource arg_27DA_0 = this.LightSwitch.audio;
- > object arg_27D5_0;
- > object expr_27BB = arg_27D5_0 = UnityRuntimeServices.GetProperty(this.LightSwitch, "ElectricityCackling");
- > if (!(expr_27BB is AudioClip))
- 1783c1856
- < arg_22EC_0 = RuntimeServices.Coerce(expr_22D2, typeof(AudioClip));
- ---
- > arg_27D5_0 = RuntimeServices.Coerce(expr_27BB, typeof(AudioClip));
- 1785c1858
- < arg_22F1_0.clip = (AudioClip)arg_22EC_0;
- ---
- > arg_27DA_0.clip = (AudioClip)arg_27D5_0;
- 1796,1797c1869,1870
- < this.DrillR.eulerAngles = new Vector3(UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f));
- < this.DrillL.eulerAngles = new Vector3(UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f));
- ---
- > this.RightDrill.eulerAngles = new Vector3(UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f));
- > this.LeftDrill.eulerAngles = new Vector3(UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f));
- 1820,1821c1893,1894
- < this.DrillR.localEulerAngles = new Vector3((float)0, (float)0, (float)45);
- < this.DrillL.localEulerAngles = new Vector3((float)0, (float)0, (float)-45);
- ---
- > this.RightDrill.localEulerAngles = new Vector3((float)0, (float)0, 68.30447f);
- > this.LeftDrill.localEulerAngles = new Vector3((float)0, (float)-180, -159.417f);
- 2004,2007c2077
- < }
- < if (!this.Dying)
- < {
- < if (!this.Distracted)
- ---
- > if (this.CameraReacting)
- 2009c2079,2081
- < if (this.Character.animation[this.PhoneAnim].weight > (float)0)
- ---
- > this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
- > this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- > if (!this.Yandere.ClubCamera.active)
- 2011c2083
- < if (this.Character.animation[this.PhoneAnim].weight > 0.1f)
- ---
- > if (this.CameraReactPhase == 1)
- 2013c2085,2090
- < this.Character.animation[this.PhoneAnim].weight = Mathf.Lerp(this.Character.animation[this.PhoneAnim].weight, (float)0, Time.deltaTime * (float)10);
- ---
- > if (this.Character.animation[this.CameraAnims[1]].time >= this.Character.animation[this.CameraAnims[1]].length)
- > {
- > this.Character.animation.CrossFade(this.CameraAnims[2]);
- > this.CameraReactPhase = 2;
- > this.CameraPoseTimer = (float)1;
- > }
- 2015c2092
- < else
- ---
- > else if (this.CameraReactPhase == 2)
- 2017c2094,2099
- < this.Character.animation[this.PhoneAnim].weight = (float)0;
- ---
- > this.CameraPoseTimer -= Time.deltaTime;
- > if (this.CameraPoseTimer <= (float)0)
- > {
- > this.Character.animation.CrossFade(this.CameraAnims[3]);
- > this.CameraReactPhase = 3;
- > }
- 2019,2022c2101,2153
- < }
- < if (!this.WitnessedMurder)
- < {
- < int num = 0;
- ---
- > else if (this.CameraReactPhase == 3)
- > {
- > if (this.CameraPoseTimer == (float)1)
- > {
- > this.Character.animation.CrossFade(this.CameraAnims[2]);
- > this.CameraReactPhase = 2;
- > }
- > if (this.Character.animation[this.CameraAnims[3]].time >= this.Character.animation[this.CameraAnims[3]].length)
- > {
- > this.Obstacle.enabled = false;
- > this.CameraReacting = false;
- > this.Routine = true;
- > }
- > }
- > }
- > else if (this.Yandere.Shutter.TargetStudent != this.StudentID)
- > {
- > this.CameraPoseTimer -= Time.deltaTime;
- > if (this.CameraPoseTimer <= (float)0)
- > {
- > this.Obstacle.enabled = false;
- > this.CameraReacting = false;
- > this.Routine = true;
- > }
- > }
- > else
- > {
- > this.CameraPoseTimer = (float)1;
- > }
- > if (this.InEvent)
- > {
- > this.CameraReacting = false;
- > }
- > }
- > }
- > if (!this.Dying)
- > {
- > if (!this.Distracted)
- > {
- > if (this.Character.animation[this.PhoneAnim].weight > (float)0)
- > {
- > if (this.Character.animation[this.PhoneAnim].weight > 0.1f)
- > {
- > this.Character.animation[this.PhoneAnim].weight = Mathf.Lerp(this.Character.animation[this.PhoneAnim].weight, (float)0, Time.deltaTime * (float)10);
- > }
- > else
- > {
- > this.Character.animation[this.PhoneAnim].weight = (float)0;
- > }
- > }
- > if (!this.WitnessedMurder)
- > {
- > int num = 0;
- 2197a2329
- > this.CameraReacting = false;
- 2539a2672,2676
- > else if (this.Clock.Period == 2 || this.Clock.Period == 4)
- > {
- > this.Subtitle.UpdateLabel("Class Apology", 0, (float)3);
- > this.Prompt.Circle[0].fillAmount = (float)1;
- > }
- 2648c2785
- < if (this.Talking)
- ---
- > if (this.Dying)
- 2650c2787
- < if (this.Interaction == 0)
- ---
- > if (this.Distracting)
- 2652,2666c2789,2794
- < this.Character.animation.CrossFade(this.IdleAnim);
- < if (this.TalkTimer == (float)0)
- < {
- < this.DialogueWheel.Impatience.fillAmount = this.DialogueWheel.Impatience.fillAmount + Time.deltaTime * 0.1f;
- < if (this.DialogueWheel.Impatience.fillAmount > 0.5f && this.Subtitle.Timer == (float)0)
- < {
- < this.Subtitle.UpdateLabel("Impatience", 1, (float)5);
- < }
- < if (this.DialogueWheel.Impatience.fillAmount >= (float)1)
- < {
- < this.Subtitle.UpdateLabel("Impatience", 2, (float)3);
- < this.DialogueWheel.End();
- < this.WaitTimer = (float)0;
- < }
- < }
- ---
- > this.DistractionTarget.Distracted = false;
- > this.Distracting = false;
- > }
- > if (this.EventManager != null)
- > {
- > this.EventManager.EndEvent();
- 2668c2796,2797
- < else if (this.Interaction == 1)
- ---
- > this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
- > if (!this.Teacher)
- 2670c2799,2800
- < if (this.TalkTimer == (float)3)
- ---
- > this.EyeShrink = Mathf.Lerp(this.EyeShrink, (float)1, Time.deltaTime * (float)10);
- > if (!this.Dead && !this.Tranquil)
- 2672,2687c2802
- < this.Character.animation.CrossFade(this.Nod2Anim);
- < int num9 = 5;
- < if (PlayerPrefs.GetInt("PantiesEquipped") == 6)
- < {
- < num9 += 5;
- < }
- < this.PendingRep += (float)num9;
- < this.Reputation.PendingRep = this.Reputation.PendingRep + (float)num9;
- < this.ID = 0;
- < while (this.ID < Extensions.get_length(this.Outlines))
- < {
- < this.Outlines[this.ID].color = new Color((float)0, (float)1, (float)0, (float)1);
- < this.ID++;
- < }
- < this.Forgave = true;
- < if (this.Witnessed == "Insanity" || this.Witnessed == "Weapon and Blood and Insanity" || this.Witnessed == "Weapon and Insanity" || this.Witnessed == "Blood and Insanity")
- ---
- > if (this.Yandere.Weapon[this.Yandere.Equipped].WeaponID == 7)
- 2689c2804,2805
- < this.Subtitle.UpdateLabel("Forgiving Insanity", 0, (float)3);
- ---
- > this.Character.animation.CrossFade(this.BuzzSawDeathAnim);
- > this.MoveTowardsTarget(this.Yandere.transform.position + this.Yandere.transform.forward);
- 2693c2809,2810
- < this.Subtitle.UpdateLabel("Forgiving", 0, (float)3);
- ---
- > this.Character.animation.CrossFade(this.DefendAnim);
- > this.MoveTowardsTarget(this.Yandere.transform.position + this.Yandere.transform.forward * 0.1f);
- 2694a2812,2813
- > this.targetRotation = Quaternion.LookRotation(new Vector3(this.Yandere.transform.position.x, this.transform.position.y, this.Yandere.transform.position.z) - this.transform.position);
- > this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
- 2698,2702c2817,2818
- < if (Input.GetButtonDown("A"))
- < {
- < this.TalkTimer = (float)0;
- < }
- < if (this.Character.animation[this.Nod2Anim].time >= this.Character.animation[this.Nod2Anim].length)
- ---
- > this.Character.animation.CrossFade(this.DeathAnim);
- > if (this.Character.animation[this.DeathAnim].time < (float)1)
- 2704c2820
- < this.Character.animation.CrossFade(this.IdleAnim);
- ---
- > this.transform.Translate(Vector3.back * Time.deltaTime);
- 2706c2822
- < if (this.TalkTimer <= (float)0)
- ---
- > else
- 2708,2709c2824
- < this.IgnoreTimer = (float)5;
- < this.DialogueWheel.End();
- ---
- > this.BecomeRagdoll();
- 2712d2826
- < this.TalkTimer -= Time.deltaTime;
- 2714c2828
- < else if (this.Interaction == 2)
- ---
- > else
- 2716,2738c2830
- < if (this.TalkTimer == (float)3)
- < {
- < this.Subtitle.UpdateLabel("Student Compliment", 0, (float)3);
- < int num10 = 0;
- < if (PlayerPrefs.GetInt("PantiesEquipped") == 3)
- < {
- < num10++;
- < }
- < if ((this.Male && PlayerPrefs.GetInt("Seduction") > 0) || PlayerPrefs.GetInt("Seduction") == 5)
- < {
- < num10++;
- < }
- < this.Reputation.PendingRep = this.Reputation.PendingRep + (float)(1 + num10);
- < this.PendingRep += (float)(1 + num10);
- < this.Complimented = true;
- < }
- < else if (Input.GetButtonDown("A"))
- < {
- < this.TalkTimer = (float)0;
- < }
- < this.Character.animation.CrossFade(this.LookDownAnim);
- < this.TalkTimer -= Time.deltaTime;
- < if (this.TalkTimer <= (float)0)
- ---
- > if (!this.StudentManager.Stop)
- 2740c2832,2837
- < this.DialogueWheel.End();
- ---
- > this.StudentManager.StopMoving();
- > this.Yandere.Laughing = false;
- > this.Yandere.Dipping = false;
- > this.Yandere.RPGCamera.enabled = false;
- > this.Phone.active = false;
- > this.Police.Show = false;
- 2741a2839,2843
- > this.Character.animation.CrossFade(this.CounterAnim);
- > this.targetRotation = Quaternion.LookRotation(new Vector3(this.Yandere.transform.position.x, this.transform.position.y, this.Yandere.transform.position.z) - this.transform.position);
- > this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
- > this.MoveTowardsTarget(this.Yandere.transform.position + this.Yandere.transform.forward * (float)1);
- > this.transform.localScale = Vector3.Lerp(this.transform.localScale, new Vector3((float)1, (float)1, (float)1), Time.deltaTime * (float)10);
- 2743c2845,2850
- < else if (this.Interaction == 3)
- ---
- > }
- > else if (this.Pushed)
- > {
- > this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
- > this.EyeShrink = Mathf.Lerp(this.EyeShrink, (float)1, Time.deltaTime * (float)10);
- > if (this.Character.animation[this.PushedAnim].time >= this.Character.animation[this.PushedAnim].length)
- 2745,2790c2852
- < if (this.TalkTimer == (float)3)
- < {
- < this.Character.animation.CrossFade(this.GossipAnim);
- < this.Subtitle.UpdateLabel("Student Gossip", 0, (float)3);
- < int num11 = 0;
- < if (this.Reputation.Reputation > 33.33333f)
- < {
- < num11++;
- < }
- < if (PlayerPrefs.GetInt("PantiesEquipped") == 9)
- < {
- < num11++;
- < }
- < if (PlayerPrefs.GetInt("DarkSecret") == 1)
- < {
- < num11++;
- < }
- < if (PlayerPrefs.GetInt(this.StudentID + "_Friend") == 1)
- < {
- < num11++;
- < }
- < if ((this.Male && PlayerPrefs.GetInt("Seduction") > 1) || PlayerPrefs.GetInt("Seduction") == 5)
- < {
- < num11++;
- < }
- < PlayerPrefs.SetInt("Student_" + this.DialogueWheel.Victim + "_Reputation", PlayerPrefs.GetInt("Student_" + this.DialogueWheel.Victim + "_Reputation") - (1 + num11));
- < this.Reputation.PendingRep = this.Reputation.PendingRep - (float)2;
- < this.PendingRep -= (float)2;
- < this.Gossiped = true;
- < }
- < else
- < {
- < if (Input.GetButtonDown("A"))
- < {
- < this.TalkTimer = (float)0;
- < }
- < if (this.Character.animation[this.GossipAnim].time >= this.Character.animation[this.GossipAnim].length)
- < {
- < this.Character.animation.CrossFade(this.IdleAnim);
- < }
- < if (this.TalkTimer <= (float)0)
- < {
- < this.DialogueWheel.End();
- < }
- < }
- < this.TalkTimer -= Time.deltaTime;
- ---
- > this.BecomeRagdoll();
- 2792c2854,2859
- < else if (this.Interaction == 4)
- ---
- > }
- > else if (this.Drowned)
- > {
- > this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
- > this.EyeShrink = Mathf.Lerp(this.EyeShrink, (float)1, Time.deltaTime * (float)10);
- > if (this.Character.animation[this.DrownAnim].time >= this.Character.animation[this.DrownAnim].length)
- 2794,2807c2861
- < if (this.TalkTimer == (float)2)
- < {
- < this.Subtitle.UpdateLabel("Student Farewell", 0, (float)2);
- < }
- < else if (Input.GetButtonDown("A"))
- < {
- < this.TalkTimer = (float)0;
- < }
- < this.Character.animation.CrossFade(this.IdleAnim);
- < this.TalkTimer -= Time.deltaTime;
- < if (this.TalkTimer <= (float)0)
- < {
- < this.DialogueWheel.End();
- < }
- ---
- > this.BecomeRagdoll();
- 2809c2863,2866
- < else if (this.Interaction == 5)
- ---
- > }
- > else if (this.WitnessedMurder)
- > {
- > if (!this.Fleeing)
- 2811,2818c2868
- < if (this.TalkTimer == (float)100)
- < {
- < this.Subtitle.UpdateLabel("Task " + this.StudentID + " Line", this.TaskPhase, this.Subtitle.GetClipLength(this.StudentID, this.TaskPhase));
- < this.Character.animation.CrossFade(this.TaskAnims[this.TaskPhase]);
- < this.CurrentAnim = this.TaskAnims[this.TaskPhase];
- < this.TalkTimer = this.Subtitle.GetClipLength(this.StudentID, this.TaskPhase);
- < }
- < else if (Input.GetButtonDown("A"))
- ---
- > if (this.StudentID > 1 && this.Persona != 5)
- 2820,2826c2870
- < this.Subtitle.Label.text = string.Empty;
- < UnityEngine.Object.Destroy(this.Subtitle.CurrentClip);
- < this.TalkTimer = (float)0;
- < }
- < if (this.Character.animation[this.CurrentAnim].time >= this.Character.animation[this.CurrentAnim].length)
- < {
- < this.Character.animation.CrossFade(this.IdleAnim);
- ---
- > this.EyeShrink += Time.deltaTime * 0.2f;
- 2828,2829c2872,2875
- < this.TalkTimer -= Time.deltaTime;
- < if (this.TalkTimer <= (float)0)
- ---
- > this.Character.animation.CrossFade(this.ScaredAnim);
- > this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
- > this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- > if (!this.Yandere.Struggling)
- 2831,2843c2877
- < if (this.TaskPhase == 5)
- < {
- < this.DialogueWheel.TaskWindow.TaskComplete = true;
- < PlayerPrefs.SetInt("Task_" + this.StudentID + "_Status", 3);
- < PlayerPrefs.SetInt(this.StudentID + "_Friend", 1);
- < this.Interaction = 0;
- < }
- < else if (this.TaskPhase == 4 || this.TaskPhase == 0)
- < {
- < this.StudentManager.TaskManager.UpdateTaskStatus();
- < this.DialogueWheel.End();
- < }
- < else if (this.TaskPhase == 3)
- ---
- > if (this.Persona != 3)
- 2845,2846c2879
- < this.DialogueWheel.TaskWindow.UpdateWindow(this.StudentID);
- < this.Interaction = 0;
- ---
- > this.AlarmTimer += Time.deltaTime;
- 2850,2854c2883
- < this.TaskPhase++;
- < this.Subtitle.UpdateLabel("Task " + this.StudentID + " Line", this.TaskPhase, this.Subtitle.GetClipLength(this.StudentID, this.TaskPhase));
- < this.Character.animation.CrossFade(this.TaskAnims[this.TaskPhase]);
- < this.CurrentAnim = this.TaskAnims[this.TaskPhase];
- < this.TalkTimer = this.Subtitle.GetClipLength(this.StudentID, this.TaskPhase);
- ---
- > this.AlarmTimer += Time.deltaTime * (float)5;
- 2857,2860c2886
- < }
- < else if (this.Interaction == 6)
- < {
- < if (this.TalkTimer == (float)2)
- ---
- > if (this.AlarmTimer > (float)5)
- 2862,2863c2888,2889
- < this.Character.animation.CrossFade(this.Nod1Anim);
- < this.Subtitle.UpdateLabel("Student Follow", 0, (float)2);
- ---
- > this.PersonaReaction();
- > this.AlarmTimer = (float)0;
- 2865c2891
- < else
- ---
- > else if (this.AlarmTimer > (float)1 && !this.Reacted)
- 2867,2871c2893
- < if (Input.GetButtonDown("A"))
- < {
- < this.TalkTimer = (float)0;
- < }
- < if (this.Character.animation[this.Nod1Anim].time >= this.Character.animation[this.Nod1Anim].length)
- ---
- > if (this.StudentID > 1)
- 2873c2895,2903
- < this.Character.animation.CrossFade(this.IdleAnim);
- ---
- > if (!this.Teacher)
- > {
- > this.Subtitle.UpdateLabel("Murder Reaction", 1, (float)3);
- > }
- > else
- > {
- > this.Subtitle.UpdateLabel("Teacher Murder Reaction", UnityEngine.Random.Range(1, 3), (float)3);
- > this.StudentManager.Portal.active = false;
- > }
- 2875c2905
- < if (this.TalkTimer <= (float)0)
- ---
- > else
- 2877,2882c2907,2914
- < this.DialogueWheel.End();
- < this.Pathfinding.target = this.Yandere.transform;
- < this.Prompt.Label[0].text = " " + "Stop";
- < this.Yandere.Follower = this;
- < this.Yandere.Followers = this.Yandere.Followers + 1;
- < this.Following = true;
- ---
- > this.Subtitle.UpdateLabel("Senpai Murder Reaction", 1, 4.5f);
- > this.GameOverCause = "Murder";
- > this.SenpaiNoticed();
- > this.Character.animation.CrossFade(this.ScaredAnim);
- > this.Yandere.ShoulderCamera.enabled = true;
- > this.Yandere.ShoulderCamera.Noticed = true;
- > this.Yandere.RPGCamera.enabled = false;
- > this.Stop = true;
- 2883a2916
- > this.Reacted = true;
- 2885d2917
- < this.TalkTimer -= Time.deltaTime;
- 2887c2919,2956
- < else if (this.Interaction == 7)
- ---
- > }
- > else if (this.Alarmed)
- > {
- > this.OccultBook.active = false;
- > if (this.WitnessedCorpse)
- > {
- > this.Character.animation.CrossFade(this.ScaredAnim);
- > }
- > else if (this.StudentID > 1)
- > {
- > this.Character.animation.CrossFade(this.IdleAnim);
- > }
- > if (this.WitnessedMurder)
- > {
- > this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
- > this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- > }
- > else if (this.WitnessedCorpse)
- > {
- > this.targetRotation = Quaternion.LookRotation(this.Corpse.AllColliders[0].transform.position - this.transform.position);
- > this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- > }
- > else if (!this.DiscCheck)
- > {
- > this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
- > this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- > }
- > else
- > {
- > this.targetRotation = Quaternion.LookRotation(this.DistractionSpot - this.transform.position);
- > this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- > }
- > if (!this.Fleeing)
- > {
- > this.AlarmTimer += Time.deltaTime;
- > }
- > this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
- > if (this.AlarmTimer > (float)5)
- 2889c2958,2960
- < if (this.TalkTimer == (float)3)
- ---
- > this.Pathfinding.canSearch = true;
- > this.Pathfinding.canMove = true;
- > if (this.StudentID == 1 || this.Teacher)
- 2891,2892c2962
- < this.Character.animation.CrossFade(this.Nod1Anim);
- < this.Subtitle.UpdateLabel("Student Leave", 0, (float)3);
- ---
- > this.IgnoreTimer = 0.0001f;
- 2896,2909c2966,2977
- < if (Input.GetButtonDown("A"))
- < {
- < this.TalkTimer = (float)0;
- < }
- < if (this.Character.animation[this.Nod1Anim].time >= this.Character.animation[this.Nod1Anim].length)
- < {
- < this.Character.animation.CrossFade(this.IdleAnim);
- < }
- < if (this.TalkTimer <= (float)0)
- < {
- < this.DialogueWheel.End();
- < this.CurrentDestination = this.StudentManager.GoAwaySpot;
- < this.Pathfinding.target = this.StudentManager.GoAwaySpot;
- < }
- ---
- > this.IgnoreTimer = (float)5;
- > }
- > this.Alarmed = false;
- > this.Reacted = false;
- > this.AlarmTimer = (float)0;
- > if (this.WitnessedCorpse)
- > {
- > this.PersonaReaction();
- > }
- > else if (!this.Following && !this.Wet)
- > {
- > this.Routine = true;
- 2911d2978
- < this.TalkTimer -= Time.deltaTime;
- 2913c2980
- < else if (this.Interaction == 8)
- ---
- > else if (this.AlarmTimer > (float)1 && !this.Reacted)
- 2915c2982
- < if (this.TalkTimer == (float)3)
- ---
- > if (this.Teacher)
- 2917,3470c2984
- < this.Character.animation.CrossFade(this.Nod1Anim);
- < if (!this.StudentManager.Students[this.DialogueWheel.Victim].InEvent && PlayerPrefs.GetInt("Student_" + this.DialogueWheel.Victim + "_Slave") == 0)
- < {
- < this.Subtitle.UpdateLabel("Student Distract", 0, (float)3);
- < }
- < else
- < {
- < this.Subtitle.UpdateLabel("Student Distract Refuse", 0, (float)3);
- < }
- < }
- < else
- < {
- < if (Input.GetButtonDown("A"))
- < {
- < this.TalkTimer = (float)0;
- < }
- < if (this.Character.animation[this.Nod1Anim].time >= this.Character.animation[this.Nod1Anim].length)
- < {
- < this.Character.animation.CrossFade(this.IdleAnim);
- < }
- < if (this.TalkTimer <= (float)0)
- < {
- < this.DialogueWheel.End();
- < if (!this.StudentManager.Students[this.DialogueWheel.Victim].InEvent && PlayerPrefs.GetInt("Student_" + this.DialogueWheel.Victim + "_Slave") == 0)
- < {
- < this.DistractionTarget = this.StudentManager.Students[this.DialogueWheel.Victim];
- < this.CurrentDestination = this.DistractionTarget.transform;
- < this.Pathfinding.target = this.DistractionTarget.transform;
- < this.Pathfinding.speed = (float)4;
- < this.TargetDistance = (float)1;
- < this.DistractTimer = (float)10;
- < this.Distracting = true;
- < this.Routine = false;
- < this.InEvent = true;
- < }
- < }
- < }
- < this.TalkTimer -= Time.deltaTime;
- < }
- < else if (this.Interaction == 9)
- < {
- < if (this.TalkTimer == (float)5)
- < {
- < this.Character.animation.CrossFade(this.GrudgeAnim);
- < if (!this.Male)
- < {
- < this.Subtitle.UpdateLabel("Grudge Warning", 0, (float)99);
- < }
- < else
- < {
- < this.Subtitle.UpdateLabel("Grudge Warning", 1, (float)99);
- < }
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < else
- < {
- < if (Input.GetButtonDown("A"))
- < {
- < this.TalkTimer = (float)0;
- < }
- < if (this.Character.animation[this.GrudgeAnim].time >= this.Character.animation[this.GrudgeAnim].length)
- < {
- < this.Character.animation.CrossFade(this.GrudgeAnim);
- < }
- < if (this.TalkTimer <= (float)0)
- < {
- < this.DialogueWheel.End();
- < }
- < }
- < this.TalkTimer -= Time.deltaTime;
- < }
- < else if (this.Interaction == 10)
- < {
- < if (this.TalkTimer == (float)100)
- < {
- < this.Subtitle.UpdateLabel("Club " + this.Club + " Info", this.ClubPhase, (float)99);
- < this.TalkTimer = this.Subtitle.GetClubClipLength(this.Club, this.ClubPhase);
- < }
- < else if (Input.GetButtonDown("A"))
- < {
- < this.Subtitle.Label.text = string.Empty;
- < UnityEngine.Object.Destroy(this.Subtitle.CurrentClip);
- < this.TalkTimer = (float)0;
- < }
- < this.TalkTimer -= Time.deltaTime;
- < if (this.TalkTimer <= (float)0)
- < {
- < if (this.ClubPhase == 3)
- < {
- < this.DialogueWheel.Show = true;
- < this.Subtitle.Label.text = string.Empty;
- < this.Interaction = 0;
- < this.TalkTimer = (float)0;
- < }
- < else
- < {
- < this.ClubPhase++;
- < this.Subtitle.UpdateLabel("Club " + this.Club + " Info", this.ClubPhase, (float)99);
- < this.TalkTimer = this.Subtitle.GetClubClipLength(this.Club, this.ClubPhase);
- < }
- < }
- < }
- < else if (this.Interaction == 11)
- < {
- < if (this.TalkTimer == (float)100)
- < {
- < if (this.ClubPhase == 1)
- < {
- < this.Subtitle.UpdateLabel("Club Join", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < else if (this.ClubPhase == 2)
- < {
- < this.Subtitle.UpdateLabel("Club Accept", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < else if (this.ClubPhase == 3)
- < {
- < this.Subtitle.UpdateLabel("Club Refuse", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < else if (this.ClubPhase == 4)
- < {
- < this.Subtitle.UpdateLabel("Club Rejoin", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < else if (this.ClubPhase == 5)
- < {
- < this.Subtitle.UpdateLabel("Club Exclusive", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < else if (this.ClubPhase == 6)
- < {
- < this.Subtitle.UpdateLabel("Club Grudge", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < }
- < else if (Input.GetButtonDown("A"))
- < {
- < this.Subtitle.Label.text = string.Empty;
- < UnityEngine.Object.Destroy(this.Subtitle.CurrentClip);
- < this.TalkTimer = (float)0;
- < }
- < this.TalkTimer -= Time.deltaTime;
- < if (this.TalkTimer <= (float)0)
- < {
- < if (this.ClubPhase == 1)
- < {
- < this.DialogueWheel.ClubWindow.Club = this.Club;
- < this.DialogueWheel.ClubWindow.UpdateWindow();
- < this.Interaction = 0;
- < }
- < else
- < {
- < this.DialogueWheel.End();
- < if (this.Club == 6)
- < {
- < this.ChangingBooth.CheckYandereClub();
- < }
- < }
- < }
- < }
- < else if (this.Interaction == 12)
- < {
- < if (this.TalkTimer == (float)100)
- < {
- < if (this.ClubPhase == 1)
- < {
- < this.Subtitle.UpdateLabel("Club Quit", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < else if (this.ClubPhase == 2)
- < {
- < this.Subtitle.UpdateLabel("Club Confirm", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < else if (this.ClubPhase == 3)
- < {
- < this.Subtitle.UpdateLabel("Club Deny", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < }
- < else if (Input.GetButtonDown("A"))
- < {
- < this.Subtitle.Label.text = string.Empty;
- < UnityEngine.Object.Destroy(this.Subtitle.CurrentClip);
- < this.TalkTimer = (float)0;
- < }
- < this.TalkTimer -= Time.deltaTime;
- < if (this.TalkTimer <= (float)0)
- < {
- < if (this.ClubPhase == 1)
- < {
- < this.DialogueWheel.ClubWindow.Club = this.Club;
- < this.DialogueWheel.ClubWindow.Quitting = true;
- < this.DialogueWheel.ClubWindow.UpdateWindow();
- < this.Interaction = 0;
- < }
- < else
- < {
- < this.DialogueWheel.End();
- < if (this.Club == 6)
- < {
- < this.ChangingBooth.CheckYandereClub();
- < }
- < }
- < }
- < }
- < else if (this.Interaction == 13)
- < {
- < if (this.TalkTimer == this.Subtitle.ClubFarewellClips[this.Club].length)
- < {
- < this.Subtitle.UpdateLabel("Club Farewell", this.Club, this.Subtitle.ClubFarewellClips[this.Club].length);
- < }
- < else if (Input.GetButtonDown("A"))
- < {
- < this.TalkTimer = (float)0;
- < }
- < this.TalkTimer -= Time.deltaTime;
- < if (this.TalkTimer <= (float)0)
- < {
- < this.DialogueWheel.End();
- < }
- < }
- < else if (this.Interaction == 14)
- < {
- < if (this.TalkTimer == (float)100)
- < {
- < if (this.ClubPhase == 1)
- < {
- < this.Subtitle.UpdateLabel("Club Activity", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < else if (this.ClubPhase == 2)
- < {
- < this.Subtitle.UpdateLabel("Club Yes", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < else if (this.ClubPhase == 3)
- < {
- < this.Subtitle.UpdateLabel("Club No", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < else if (this.ClubPhase == 4)
- < {
- < this.Subtitle.UpdateLabel("Club Early", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < else if (this.ClubPhase == 5)
- < {
- < this.Subtitle.UpdateLabel("Club Late", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < }
- < else if (Input.GetButtonDown("A"))
- < {
- < this.Subtitle.Label.text = string.Empty;
- < UnityEngine.Object.Destroy(this.Subtitle.CurrentClip);
- < this.TalkTimer = (float)0;
- < }
- < this.TalkTimer -= Time.deltaTime;
- < if (this.TalkTimer <= (float)0)
- < {
- < if (this.ClubPhase == 1)
- < {
- < this.DialogueWheel.ClubWindow.Club = this.Club;
- < this.DialogueWheel.ClubWindow.Activity = true;
- < this.DialogueWheel.ClubWindow.UpdateWindow();
- < this.Interaction = 0;
- < }
- < else if (this.ClubPhase == 2)
- < {
- < this.Police.ClubActivity = true;
- < this.Police.FadeOut = true;
- < this.Interaction = 0;
- < }
- < else
- < {
- < this.DialogueWheel.End();
- < }
- < }
- < }
- < else if (this.Interaction == 15)
- < {
- < if (this.TalkTimer == (float)5)
- < {
- < this.Subtitle.UpdateLabel("Club Unwelcome", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < else
- < {
- < if (Input.GetButtonDown("A"))
- < {
- < this.TalkTimer = (float)0;
- < }
- < if (this.TalkTimer <= (float)0)
- < {
- < this.DialogueWheel.End();
- < }
- < }
- < this.TalkTimer -= Time.deltaTime;
- < }
- < else if (this.Interaction == 16)
- < {
- < if (this.TalkTimer == (float)5)
- < {
- < this.Subtitle.UpdateLabel("Club Kick", this.Club, (float)99);
- < this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
- < }
- < else
- < {
- < if (Input.GetButtonDown("A"))
- < {
- < this.TalkTimer = (float)0;
- < }
- < if (this.TalkTimer <= (float)0)
- < {
- < PlayerPrefs.SetInt("Club", 0);
- < this.DialogueWheel.End();
- < }
- < }
- < this.TalkTimer -= Time.deltaTime;
- < }
- < if (this.Waiting)
- < {
- < this.WaitTimer -= Time.deltaTime;
- < if (this.WaitTimer <= (float)0)
- < {
- < this.Pathfinding.canSearch = true;
- < this.Pathfinding.canMove = true;
- < this.Obstacle.enabled = false;
- < this.Alarmed = false;
- < this.Talking = false;
- < this.Waiting = false;
- < if (!this.Following && !this.Distracting && !this.Wet)
- < {
- < this.Routine = true;
- < }
- < if (!this.Following)
- < {
- < this.Hearts.enableEmission = false;
- < }
- < this.StudentManager.EnablePrompts();
- < }
- < }
- < else
- < {
- < this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
- < this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- < }
- < }
- < else if (this.Dying)
- < {
- < if (this.Distracting)
- < {
- < this.DistractionTarget.Distracted = false;
- < this.Distracting = false;
- < }
- < if (this.EventManager != null)
- < {
- < this.EventManager.EndEvent();
- < }
- < this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
- < if (!this.Teacher)
- < {
- < this.EyeShrink = Mathf.Lerp(this.EyeShrink, (float)1, Time.deltaTime * (float)10);
- < if (!this.Dead && !this.Tranquil)
- < {
- < this.Character.animation.CrossFade(this.DefendAnim);
- < this.targetRotation = Quaternion.LookRotation(new Vector3(this.Yandere.transform.position.x, this.transform.position.y, this.Yandere.transform.position.z) - this.transform.position);
- < this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
- < this.MoveTowardsTarget(this.Yandere.transform.position + this.Yandere.transform.forward * 0.1f);
- < }
- < else
- < {
- < this.Character.animation.CrossFade(this.DeathAnim);
- < if (this.Character.animation[this.DeathAnim].time < (float)1)
- < {
- < this.transform.Translate(Vector3.back * Time.deltaTime);
- < }
- < else
- < {
- < this.BecomeRagdoll();
- < }
- < }
- < }
- < else
- < {
- < if (this.Yandere.Laughing)
- < {
- < this.Yandere.Laughing = false;
- < }
- < if (this.Yandere.Dipping)
- < {
- < this.Yandere.Dipping = false;
- < }
- < if (this.Yandere.RPGCamera.enabled)
- < {
- < this.Yandere.RPGCamera.enabled = false;
- < }
- < if (this.Phone.active)
- < {
- < this.Phone.active = false;
- < }
- < if (this.Police.Show)
- < {
- < this.Police.Show = false;
- < }
- < this.Character.animation.CrossFade(this.CounterAnim);
- < this.targetRotation = Quaternion.LookRotation(new Vector3(this.Yandere.transform.position.x, this.transform.position.y, this.Yandere.transform.position.z) - this.transform.position);
- < this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
- < this.MoveTowardsTarget(this.Yandere.transform.position + this.Yandere.transform.forward * (float)1);
- < this.transform.localScale = Vector3.Lerp(this.transform.localScale, new Vector3((float)1, (float)1, (float)1), Time.deltaTime * (float)10);
- < }
- < }
- < else if (this.Pushed)
- < {
- < this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
- < this.EyeShrink = Mathf.Lerp(this.EyeShrink, (float)1, Time.deltaTime * (float)10);
- < if (this.Character.animation[this.PushedAnim].time >= this.Character.animation[this.PushedAnim].length)
- < {
- < this.BecomeRagdoll();
- < }
- < }
- < else if (this.Drowned)
- < {
- < this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
- < this.EyeShrink = Mathf.Lerp(this.EyeShrink, (float)1, Time.deltaTime * (float)10);
- < if (this.Character.animation[this.DrownAnim].time >= this.Character.animation[this.DrownAnim].length)
- < {
- < this.BecomeRagdoll();
- < }
- < }
- < else if (this.WitnessedMurder)
- < {
- < if (!this.Fleeing)
- < {
- < if (this.StudentID > 1)
- < {
- < this.EyeShrink += Time.deltaTime * 0.2f;
- < }
- < this.Character.animation.CrossFade(this.ScaredAnim);
- < this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
- < this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- < if (!this.Yandere.Struggling)
- < {
- < if (this.Persona != 3)
- < {
- < this.AlarmTimer += Time.deltaTime;
- < }
- < else
- < {
- < this.AlarmTimer += Time.deltaTime * (float)5;
- < }
- < }
- < if (this.AlarmTimer > (float)5)
- < {
- < this.PersonaReaction();
- < this.AlarmTimer = (float)0;
- < }
- < else if (this.AlarmTimer > (float)1 && !this.Reacted)
- < {
- < if (this.StudentID > 1)
- < {
- < if (!this.Teacher)
- < {
- < this.Subtitle.UpdateLabel("Murder Reaction", 1, (float)3);
- < }
- < else
- < {
- < this.Subtitle.UpdateLabel("Teacher Murder Reaction", UnityEngine.Random.Range(1, 3), (float)3);
- < this.StudentManager.Portal.active = false;
- < }
- < }
- < else
- < {
- < this.Subtitle.UpdateLabel("Senpai Murder Reaction", 1, 4.5f);
- < this.GameOverCause = "Murder";
- < this.SenpaiNoticed();
- < this.Character.animation.CrossFade(this.ScaredAnim);
- < this.Yandere.ShoulderCamera.enabled = true;
- < this.Yandere.ShoulderCamera.Noticed = true;
- < this.Yandere.RPGCamera.enabled = false;
- < this.Stop = true;
- < }
- < this.Reacted = true;
- < }
- < }
- < }
- < else if (this.Alarmed)
- < {
- < this.OccultBook.active = false;
- < if (this.WitnessedCorpse)
- < {
- < this.Character.animation.CrossFade(this.ScaredAnim);
- < }
- < else if (this.StudentID > 1)
- < {
- < this.Character.animation.CrossFade(this.IdleAnim);
- < }
- < if (this.WitnessedMurder)
- < {
- < this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
- < this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- < }
- < else if (this.WitnessedCorpse)
- < {
- < this.targetRotation = Quaternion.LookRotation(this.Corpse.AllColliders[0].transform.position - this.transform.position);
- < this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- < }
- < else if (!this.DiscCheck)
- < {
- < this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
- < this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- < }
- < else
- < {
- < this.targetRotation = Quaternion.LookRotation(this.DistractionSpot - this.transform.position);
- < this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
- < }
- < if (!this.Fleeing)
- < {
- < this.AlarmTimer += Time.deltaTime;
- < }
- < this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
- < if (this.AlarmTimer > (float)5)
- < {
- < this.Pathfinding.canSearch = true;
- < this.Pathfinding.canMove = true;
- < if (this.StudentID == 1 || this.Teacher)
- < {
- < this.IgnoreTimer = 0.0001f;
- < }
- < else
- < {
- < this.IgnoreTimer = (float)5;
- < }
- < this.Alarmed = false;
- < this.Reacted = false;
- < this.AlarmTimer = (float)0;
- < if (this.WitnessedCorpse)
- < {
- < this.PersonaReaction();
- < }
- < else if (!this.Following && !this.Wet)
- < {
- < this.Routine = true;
- < }
- < }
- < else if (this.AlarmTimer > (float)1 && !this.Reacted)
- < {
- < if (this.Teacher)
- < {
- < if (!this.WitnessedCorpse)
- ---
- > if (!this.WitnessedCorpse)
- 3783c3297
- < if (this.transform.position.z > (float)-50 && this.Clock.HourTime > 15.5f)
- ---
- > if (this.transform.position.z < (float)-50 && this.Clock.HourTime > 15.5f)
- 3792c3306
- < int num12 = 0;
- ---
- > int num9 = 0;
- 3794c3308
- < float num13 = position.y = (float)num12;
- ---
- > float num10 = position.y = (float)num9;
- 3798c3312
- < int num14 = 0;
- ---
- > int num11 = 0;
- 3800c3314
- < float num15 = eulerAngles.x = (float)num14;
- ---
- > float num12 = eulerAngles.x = (float)num11;
- 3802c3316
- < int num16 = 0;
- ---
- > int num13 = 0;
- 3804c3318
- < float num17 = eulerAngles2.z = (float)num16;
- ---
- > float num14 = eulerAngles2.z = (float)num13;
- 3823a3338,3347
- > if (this.Pathfinding.canMove && this.Pathfinding.currentSpeed > (float)0 && this.transform.position == this.LastPosition)
- > {
- > this.StuckTimer += Time.deltaTime;
- > if (this.StuckTimer > (float)1)
- > {
- > this.MyController.Move(this.transform.right * Time.timeScale * 0.0001f);
- > this.StuckTimer = (float)0;
- > }
- > }
- > this.LastPosition = this.transform.position;
- 3912,3925d3435
- < if (this.HidePony)
- < {
- < this.Ponytail.parent.transform.localScale = new Vector3((float)1, (float)1, 0.93f);
- < this.Ponytail.localScale = new Vector3((float)0, (float)0, (float)0);
- < this.HairR.localScale = new Vector3((float)0, (float)0, (float)0);
- < this.HairL.localScale = new Vector3((float)0, (float)0, (float)0);
- < }
- < if (this.VeryLongHair)
- < {
- < int num7 = 2;
- < Vector3 localScale5 = this.LongHairBone.localScale;
- < float num8 = localScale5.x = (float)num7;
- < Vector3 vector7 = this.LongHairBone.localScale = localScale5;
- < }
- 3994a3505
- > this.OccultBook.active = false;
- 4032,4036c3543
- < if (!this.Yandere.Attacking && this.Yandere.Armed)
- < {
- < this.Yandere.Weapon[this.Yandere.Equipped].Drop();
- < }
- < if (this.Yandere.Dragging)
- ---
- > if (!this.Yandere.Attacking)
- 4066c3573
- < if (this.Teacher)
- ---
- > if (this.Teacher || this.StudentID == 1)
- 4098c3605,3608
- < this.Police.Witnesses = this.Police.Witnesses + 1;
- ---
- > if (this.Persona != 5)
- > {
- > this.Police.Witnesses = this.Police.Witnesses + 1;
- > }
- 4181c3691
- < if (!this.WitnessedMurder && this.Persona == 3)
- ---
- > if (!this.WitnessedMurder)
- 4183,4184c3693
- < this.SwitchBack = true;
- < if (this.Corpse != null)
- ---
- > if (this.Persona == 3)
- 4186c3695,3703
- < this.Persona = 2;
- ---
- > this.SwitchBack = true;
- > if (this.Corpse != null)
- > {
- > this.Persona = 2;
- > }
- > else
- > {
- > this.Persona = 1;
- > }
- 4188c3705
- < else
- ---
- > else if (this.Persona == 4 || this.Persona == 5)
- 4197c3714
- < this.Subtitle.UpdateLabel("Coward Murder Reaction", 1, (float)3);
- ---
- > this.Subtitle.UpdateLabel("Loner Murder Reaction", 1, (float)3);
- 4201c3718
- < this.Subtitle.UpdateLabel("Coward Corpse Reaction", 1, (float)3);
- ---
- > this.Subtitle.UpdateLabel("Loner Corpse Reaction", 1, (float)3);
- 4283a3801,3826
- > else if (this.Persona == 4)
- > {
- > this.CurrentDestination = this.transform;
- > this.Pathfinding.target = this.transform;
- > this.Subtitle.UpdateLabel("Coward Murder Reaction", 1, (float)5);
- > this.Routine = false;
- > this.Fleeing = true;
- > }
- > else if (this.Persona == 5)
- > {
- > this.CurrentDestination = this.transform;
- > this.Pathfinding.target = this.transform;
- > this.Subtitle.UpdateLabel("Evil Murder Reaction", 1, (float)5);
- > this.Routine = false;
- > this.Fleeing = true;
- > }
- > else if (this.Persona == 6)
- > {
- > this.CurrentDestination = this.Destinations[this.Phase];
- > this.Pathfinding.target = this.Destinations[this.Phase];
- > this.Subtitle.UpdateLabel("Social Death Reaction", 1, (float)5);
- > this.ReportPhase = 1;
- > this.Routine = false;
- > this.Fleeing = true;
- > this.Halt = true;
- > }
- 4335,4338c3878
- < if (this.Yandere.PickUp != null)
- < {
- < this.Yandere.EmptyHands();
- < }
- ---
- > this.Yandere.EmptyHands();
- 4462,4838d4001
- < public override void SetColors()
- < {
- < string a = "Default";
- < string text = this.JSON.StudentStockings[this.StudentID];
- < this.HairColor = this.JSON.StudentColors[this.StudentID];
- < this.ID = 1;
- < if (!this.Male)
- < {
- < if (this.HairColor == "Red")
- < {
- < this.HairTexture = this.StudentManager.Colors[0];
- < }
- < else if (this.HairColor == "Yellow")
- < {
- < this.HairTexture = this.StudentManager.Colors[1];
- < }
- < else if (this.HairColor == "Green")
- < {
- < this.HairTexture = this.StudentManager.Colors[2];
- < }
- < else if (this.HairColor == "Cyan")
- < {
- < this.HairTexture = this.StudentManager.Colors[3];
- < }
- < else if (this.HairColor == "Blue")
- < {
- < this.HairTexture = this.StudentManager.Colors[4];
- < }
- < else if (this.HairColor == "Purple")
- < {
- < this.HairTexture = this.StudentManager.Colors[5];
- < this.DrillTexture = this.StudentManager.Colors[6];
- < }
- < else if (this.HairColor == "Brown")
- < {
- < this.HairTexture = this.StudentManager.Colors[7];
- < }
- < else if (this.HairColor == "Pippi")
- < {
- < this.HairTexture = this.StudentManager.Colors[8];
- < }
- < else if (this.HairColor == "Black")
- < {
- < this.HairTexture = this.StudentManager.Colors[9];
- < }
- < else if (this.HairColor == "LongGreen")
- < {
- < this.HairTexture = this.StudentManager.Colors[10];
- < }
- < else if (this.HairColor == "Succubus1")
- < {
- < this.HairTexture = this.StudentManager.Colors[11];
- < }
- < else if (this.HairColor == "Succubus2")
- < {
- < this.HairTexture = this.StudentManager.Colors[12];
- < }
- < else if (this.HairColor == "Kuudere")
- < {
- < this.HairTexture = this.StudentManager.Colors[13];
- < }
- < else if (this.HairColor == "LongPink")
- < {
- < this.HairTexture = this.StudentManager.Colors[14];
- < }
- < else if (this.HairColor == "ShortBrown")
- < {
- < this.HairTexture = this.StudentManager.Colors[15];
- < }
- < else if (this.HairColor == "ShortOrange")
- < {
- < this.HairTexture = this.StudentManager.Colors[16];
- < }
- < else if (this.HairColor == "Occult1")
- < {
- < this.HairTexture = this.StudentManager.Colors[17];
- < this.FaceTexture = this.HairTexture;
- < }
- < else if (this.HairColor == "Occult3")
- < {
- < this.HairTexture = this.StudentManager.Colors[19];
- < this.FaceTexture = this.HairTexture;
- < }
- < else if (this.HairColor == "Occult5")
- < {
- < this.HairTexture = this.StudentManager.Colors[21];
- < this.FaceTexture = this.HairTexture;
- < }
- < this.PonyRenderer.material.mainTexture = this.HairTexture;
- < this.NewLongHair.material.mainTexture = this.HairTexture;
- < this.ShortHair.material.mainTexture = this.HairTexture;
- < this.LongHair.material.mainTexture = this.HairTexture;
- < this.PigtailR.material.mainTexture = this.HairTexture;
- < this.PigtailL.material.mainTexture = this.HairTexture;
- < this.Drills.materials[0].mainTexture = this.DrillTexture;
- < this.Drills.materials[1].mainTexture = this.DrillTexture;
- < this.Drills.materials[2].mainTexture = this.DrillTexture;
- < }
- < else
- < {
- < int num;
- < if (this.StudentID > 1)
- < {
- < num = UnityBuiltins.parseInt(this.Hairstyle);
- < }
- < else if (PlayerPrefs.GetInt("CustomSenpai") == 1)
- < {
- < num = UnityBuiltins.parseInt(PlayerPrefs.GetInt("SenpaiHairStyle"));
- < a = PlayerPrefs.GetString("SenpaiEyeColor");
- < this.HairColor = PlayerPrefs.GetString("SenpaiHairColor");
- < }
- < else
- < {
- < this.HairColor = "Black";
- < num = 1;
- < }
- < if (num > 0)
- < {
- < this.MaleHairstyles[num].active = true;
- < if (this.Club == 5)
- < {
- < int num2 = -1;
- < Vector3 localScale = this.MaleHairstyles[num].transform.localScale;
- < float num3 = localScale.x = (float)num2;
- < Vector3 vector = this.MaleHairstyles[num].transform.localScale = localScale;
- < }
- < if (num < 10)
- < {
- < this.MaleHairRenderer = (Renderer)this.MaleHairstyles[num].GetComponent(typeof(Renderer));
- < }
- < }
- < if (this.MaleHairRenderer != null)
- < {
- < if (num < 10)
- < {
- < if (this.HairColor == "Black")
- < {
- < this.MaleHairRenderer.material.color = new Color(0.5f, 0.5f, 0.5f);
- < }
- < else if (this.HairColor == "Red")
- < {
- < this.MaleHairRenderer.material.color = new Color((float)1, (float)0, (float)0);
- < }
- < else if (this.HairColor == "Yellow")
- < {
- < this.MaleHairRenderer.material.color = new Color((float)1, (float)1, (float)0);
- < }
- < else if (this.HairColor == "Green")
- < {
- < this.MaleHairRenderer.material.color = new Color((float)0, (float)1, (float)0);
- < }
- < else if (this.HairColor == "Cyan")
- < {
- < this.MaleHairRenderer.material.color = new Color((float)0, (float)1, (float)1);
- < }
- < else if (this.HairColor == "Blue")
- < {
- < this.MaleHairRenderer.material.color = new Color((float)0, (float)0, (float)1);
- < }
- < else if (this.HairColor == "Purple")
- < {
- < this.MaleHairRenderer.material.color = new Color((float)1, (float)0, (float)1);
- < }
- < else if (this.HairColor == "Default")
- < {
- < this.MaleHairRenderer.material.color = new Color((float)1, (float)1, (float)1);
- < }
- < else if (this.HairColor == "Orange")
- < {
- < this.MaleHairRenderer.material.color = new Color((float)1, 0.5f, (float)0);
- < }
- < else if (this.HairColor == "Brown")
- < {
- < this.MaleHairRenderer.material.color = new Color(0.5f, 0.25f, (float)0);
- < }
- < }
- < }
- < else if (this.HairColor == "Occult2" || this.HairColor == "Occult4" || this.HairColor == "Occult6")
- < {
- < this.MaleHairRenderer = (Renderer)this.MaleHairstyles[UnityBuiltins.parseInt(this.Hairstyle)].GetComponent(typeof(Renderer));
- < this.EyeR.material.mainTexture = this.MaleHairRenderer.material.mainTexture;
- < this.EyeL.material.mainTexture = this.MaleHairRenderer.material.mainTexture;
- < }
- < if (this.StudentID > 1)
- < {
- < if (num < 10)
- < {
- < this.EyeR.material.color = this.MaleHairRenderer.material.color;
- < this.EyeL.material.color = this.MaleHairRenderer.material.color;
- < }
- < }
- < else
- < {
- < if (a == "Red")
- < {
- < this.EyeColor = new Color((float)1, (float)0, (float)0);
- < }
- < else if (a == "Yellow")
- < {
- < this.EyeColor = new Color((float)1, (float)1, (float)0);
- < }
- < else if (a == "Green")
- < {
- < this.EyeColor = new Color((float)0, (float)1, (float)0);
- < }
- < else if (a == "Cyan")
- < {
- < this.EyeColor = new Color((float)0, (float)1, (float)1);
- < }
- < else if (a == "Blue")
- < {
- < this.EyeColor = new Color((float)0, (float)0, (float)1);
- < }
- < else if (a == "Purple")
- < {
- < this.EyeColor = new Color((float)1, (float)0, (float)1);
- < }
- < else if (a == "Default")
- < {
- < this.EyeColor = new Color((float)1, (float)1, (float)1);
- < }
- < else if (a == "Orange")
- < {
- < this.EyeColor = new Color((float)1, 0.5f, (float)0);
- < }
- < else if (a == "Brown")
- < {
- < this.EyeColor = new Color(0.5f, 0.25f, (float)0);
- < }
- < else if (a == "Black")
- < {
- < this.EyeColor = new Color(0.5f, 0.5f, 0.5f);
- < }
- < this.EyeR.material.color = this.EyeColor;
- < this.EyeL.material.color = this.EyeColor;
- < }
- < }
- < if (!this.Male)
- < {
- < if (!this.Teacher)
- < {
- < this.SetFemaleUniform();
- < }
- < }
- < else
- < {
- < this.SetMaleUniform();
- < }
- < this.ID = 0;
- < while (this.ID < Extensions.get_length(this.Outlines))
- < {
- < if (this.Outlines[this.ID].h != null)
- < {
- < this.Outlines[this.ID].h.ReinitMaterials();
- < }
- < this.ID++;
- < }
- < }
- <
- < public override void UpdateHair()
- < {
- < this.PigtailR.transform.parent.transform.parent.transform.localScale = new Vector3((float)1, 0.75f, (float)1);
- < this.PigtailL.transform.parent.transform.parent.transform.localScale = new Vector3((float)1, 0.75f, (float)1);
- < this.TwinPony.transform.parent.gameObject.active = false;
- < this.PonyRenderer.gameObject.active = false;
- < this.NewLongHair.gameObject.active = false;
- < this.OccultHair[1].active = false;
- < this.OccultHair[3].active = false;
- < this.OccultHair[5].active = false;
- < this.TeacherHair.active = false;
- < this.CirnoHair.active = false;
- < this.PippiHair.active = false;
- < this.ShortHair.active = false;
- < this.LongHair.active = false;
- < this.TwinPony.active = false;
- < this.PigtailR.active = false;
- < this.PigtailL.active = false;
- < this.Drills.active = false;
- < this.HidePony = true;
- < if (this.Hairstyle == "PonyTail")
- < {
- < this.PonyRenderer.gameObject.active = true;
- < this.HidePony = false;
- < this.Ponytail.localScale = new Vector3((float)1, (float)1, (float)1);
- < this.HairR.localScale = new Vector3((float)1, (float)1, (float)1);
- < this.HairL.localScale = new Vector3((float)1, (float)1, (float)1);
- < }
- < else if (this.Hairstyle == "RightTail")
- < {
- < this.PonyRenderer.gameObject.active = true;
- < this.PigtailR.active = true;
- < }
- < else if (this.Hairstyle == "LeftTail")
- < {
- < this.PonyRenderer.gameObject.active = true;
- < this.PigtailL.active = true;
- < }
- < else if (this.Hairstyle == "PigTails")
- < {
- < this.PonyRenderer.gameObject.active = true;
- < this.PigtailR.active = true;
- < this.PigtailL.active = true;
- < }
- < else if (this.Hairstyle == "TriTails")
- < {
- < this.PigtailR.active = true;
- < this.PigtailL.active = true;
- < this.HidePony = false;
- < this.PonyRenderer.gameObject.active = true;
- < this.Ponytail.localScale = new Vector3((float)1, (float)1, (float)1);
- < this.HairR.localScale = new Vector3((float)1, (float)1, (float)1);
- < this.HairL.localScale = new Vector3((float)1, (float)1, (float)1);
- < }
- < else if (this.Hairstyle == "TwinTails")
- < {
- < this.PonyRenderer.gameObject.active = true;
- < this.PigtailR.active = true;
- < this.PigtailL.active = true;
- < this.PigtailR.transform.parent.transform.parent.transform.localScale = new Vector3((float)2, (float)2, (float)2);
- < this.PigtailL.transform.parent.transform.parent.transform.localScale = new Vector3((float)2, (float)2, (float)2);
- < }
- < else if (this.Hairstyle == "Drills")
- < {
- < this.PonyRenderer.gameObject.active = true;
- < this.Drills.active = true;
- < }
- < else if (this.Hairstyle == "Short")
- < {
- < this.ShortHair.active = true;
- < }
- < else if (this.Hairstyle == "Pippi")
- < {
- < this.PonyRenderer.gameObject.active = false;
- < this.PippiHair.active = true;
- < }
- < else if (this.Hairstyle == "Cirno")
- < {
- < this.CirnoHair.active = true;
- < }
- < else if (this.Hairstyle == "Long")
- < {
- < this.LongHair.active = true;
- < }
- < else if (this.Hairstyle == "NewLong")
- < {
- < this.NewLongHair.active = true;
- < }
- < else if (this.Hairstyle == "VeryLong")
- < {
- < this.NewLongHair.active = true;
- < this.VeryLongHair = true;
- < }
- < else if (this.Hairstyle == "TwinPony")
- < {
- < this.TwinPony.transform.parent.gameObject.active = true;
- < this.TwinPony.active = true;
- < }
- < else if (this.Hairstyle == "Occult1")
- < {
- < this.OccultHair[1].active = true;
- < this.Emo = true;
- < }
- < else if (this.Hairstyle == "Occult3")
- < {
- < this.OccultHair[3].active = true;
- < }
- < else if (this.Hairstyle == "Occult5")
- < {
- < this.OccultHair[5].active = true;
- < }
- < else if (this.Hairstyle == "Teacher")
- < {
- < this.PonyRenderer.gameObject.active = false;
- < this.TeacherHair.active = true;
- < }
- < }
- <
- 4860d4022
- < this.MyRenderer.sharedMesh = this.TeacherMesh;
- 4863d4024
- < this.TeacherGlasses.active = true;
- 4866,4892d4026
- < this.MyRenderer.materials[0].mainTexture = this.TeacherBodyTexture;
- < this.MyRenderer.materials[1].mainTexture = this.TeacherFaceTexture;
- < this.MyRenderer.materials[2].mainTexture = this.TeacherBodyTexture;
- < if (this.HairColor == "Brown1")
- < {
- < this.TeacherHairRenderer.material.color = new Color(0.5f, 0.25f, (float)0, (float)1);
- < }
- < else if (this.HairColor == "Brown2")
- < {
- < this.TeacherHairRenderer.material.color = new Color(0.45f, 0.225f, (float)0, (float)1);
- < }
- < else if (this.HairColor == "Brown3")
- < {
- < this.TeacherHairRenderer.material.color = new Color(0.4f, 0.2f, (float)0, (float)1);
- < }
- < else if (this.HairColor == "Brown4")
- < {
- < this.TeacherHairRenderer.material.color = new Color(0.35f, 0.175f, (float)0, (float)1);
- < }
- < else if (this.HairColor == "Brown5")
- < {
- < this.TeacherHairRenderer.material.color = new Color(0.3f, 0.15f, (float)0, (float)1);
- < }
- < else if (this.HairColor == "Brown6")
- < {
- < this.TeacherHairRenderer.material.color = new Color(0.25f, 0.125f, (float)0, (float)1);
- < }
- 4986d4119
- < this.Ragdoll.HidePony = this.HidePony;
- 4996c4129
- < if (this.WitnessedMurder)
- ---
- > if (this.WitnessedMurder && this.Persona != 5)
- 5052,5103d4184
- < public override void SetMaleUniform()
- < {
- < if (this.StudentID == 1)
- < {
- < this.SkinColor = PlayerPrefs.GetInt("SenpaiSkinColor");
- < }
- < this.MyRenderer.sharedMesh = this.MaleUniforms[PlayerPrefs.GetInt("MaleUniform")];
- < this.FaceTexture = this.FaceTextures[this.SkinColor];
- < if (this.Club == 3)
- < {
- < this.FaceTexture = this.MaleHairRenderer.material.mainTexture;
- < }
- < if (PlayerPrefs.GetInt("MaleUniform") == 1)
- < {
- < this.MyRenderer.materials[0].mainTexture = this.SkinTextures[this.SkinColor];
- < this.MyRenderer.materials[1].mainTexture = this.MaleUniformTextures[1];
- < this.MyRenderer.materials[2].mainTexture = this.FaceTexture;
- < }
- < else if (PlayerPrefs.GetInt("MaleUniform") == 2)
- < {
- < this.MyRenderer.materials[0].mainTexture = this.MaleUniformTextures[2];
- < this.MyRenderer.materials[1].mainTexture = this.FaceTexture;
- < this.MyRenderer.materials[2].mainTexture = this.SkinTextures[this.SkinColor];
- < }
- < else if (PlayerPrefs.GetInt("MaleUniform") == 3)
- < {
- < this.MyRenderer.materials[0].mainTexture = this.MaleUniformTextures[3];
- < this.MyRenderer.materials[1].mainTexture = this.FaceTexture;
- < this.MyRenderer.materials[2].mainTexture = this.SkinTextures[this.SkinColor];
- < }
- < else if (PlayerPrefs.GetInt("MaleUniform") == 4)
- < {
- < this.MyRenderer.materials[0].mainTexture = this.FaceTexture;
- < this.MyRenderer.materials[1].mainTexture = this.SkinTextures[this.SkinColor];
- < this.MyRenderer.materials[2].mainTexture = this.MaleUniformTextures[4];
- < }
- < else if (PlayerPrefs.GetInt("MaleUniform") == 5)
- < {
- < this.MyRenderer.materials[0].mainTexture = this.FaceTexture;
- < this.MyRenderer.materials[1].mainTexture = this.SkinTextures[this.SkinColor];
- < this.MyRenderer.materials[2].mainTexture = this.MaleUniformTextures[5];
- < }
- < }
- <
- < public override void SetFemaleUniform()
- < {
- < this.MyRenderer.sharedMesh = this.FemaleUniforms[PlayerPrefs.GetInt("FemaleUniform")];
- < this.MyRenderer.materials[0].mainTexture = this.FemaleUniformTextures[PlayerPrefs.GetInt("FemaleUniform")];
- < this.MyRenderer.materials[1].mainTexture = this.FemaleUniformTextures[PlayerPrefs.GetInt("FemaleUniform")];
- < this.MyRenderer.materials[2].mainTexture = this.HairTexture;
- < }
- <
- 5109c4190
- < this.MyRenderer.materials[0].mainTexture = this.HairTexture;
- ---
- > this.MyRenderer.materials[0].mainTexture = this.Cosmetic.FaceTexture;
- 5117c4198
- < this.MyRenderer.materials[2].mainTexture = this.FaceTextures[this.SkinColor];
- ---
- > this.MyRenderer.materials[2].mainTexture = this.Cosmetic.FaceTextures[this.SkinColor];
- 5144,5145c4225,4232
- < this.MyRenderer.sharedMesh = this.SchoolUniform;
- < this.SetColors();
- ---
- > if (!this.Male)
- > {
- > this.Cosmetic.SetFemaleUniform();
- > }
- > else
- > {
- > this.Cosmetic.SetMaleUniform();
- > }
- 5156c4243,4251
- < this.MyRenderer.materials[2].mainTexture = this.HairTexture;
- ---
- > this.MyRenderer.materials[2].mainTexture = this.Cosmetic.FaceTexture;
- > }
- > while (this.ID < Extensions.get_length(this.Outlines))
- > {
- > if (this.Outlines[this.ID].h != null)
- > {
- > this.Outlines[this.ID].h.ReinitMaterials();
- > }
- > this.ID++;
- 5168a4264,4272
- > if (!this.Male)
- > {
- > this.Cosmetic.FaceTexture = this.TitanFaceTexture;
- > }
- > else
- > {
- > this.Cosmetic.FaceTextures[this.SkinColor] = this.TitanFaceTexture;
- > }
- > this.NudeTexture = this.TitanBodyTexture;
- 5225a4330,4333
- > if (this.Dying && this.Yandere.Weapon[this.Yandere.Equipped].WeaponID == 7)
- > {
- > ((AlarmDiscScript)gameObject.GetComponent(typeof(AlarmDiscScript))).Long = true;
- > }
- 5240c4348
- < this.MyRenderer.materials[2].mainTexture = this.HairTexture;
- ---
- > this.MyRenderer.materials[2].mainTexture = this.Cosmetic.FaceTexture;
- 5245c4353
- < this.MyRenderer.materials[1].mainTexture = this.HairTexture;
- ---
- > this.MyRenderer.materials[1].mainTexture = this.Cosmetic.FaceTexture;
- 5248a4357,4364
- > if (this.StudentID == 21)
- > {
- > float z = 0.01f;
- > Vector3 localPosition = this.Armband.transform.localPosition;
- > float num = localPosition.z = z;
- > Vector3 vector = this.Armband.transform.localPosition = localPosition;
- > this.Armband.transform.localScale = new Vector3(1.3f, 1.3f, 1.3f);
- > }
- 5253a4370,4412
- > if (this.StudentID == 21)
- > {
- > float z2 = 0.012f;
- > Vector3 localPosition2 = this.Armband.transform.localPosition;
- > float num2 = localPosition2.z = z2;
- > Vector3 vector2 = this.Armband.transform.localPosition = localPosition2;
- > this.Armband.transform.localScale = new Vector3(1.2f, 1.2f, 1.2f);
- > }
- > }
- > }
- >
- > public override void CameraReact()
- > {
- > this.Pathfinding.canSearch = false;
- > this.Pathfinding.canMove = false;
- > this.Obstacle.enabled = true;
- > this.CameraReacting = true;
- > this.CameraReactPhase = 1;
- > this.Routine = false;
- > if (!this.Yandere.ClubCamera.active)
- > {
- > this.Character.animation.CrossFade(this.CameraAnims[1]);
- > }
- > else
- > {
- > this.Character.animation.CrossFade(this.IdleAnim);
- > }
- > }
- >
- > public override void LookForYandere()
- > {
- > if (!this.Yandere.Chased)
- > {
- > this.Planes = GeometryUtility.CalculateFrustumPlanes(this.VisionCone);
- > if (GeometryUtility.TestPlanesAABB(this.Planes, this.Yandere.collider.bounds))
- > {
- > RaycastHit raycastHit = default(RaycastHit);
- > Debug.DrawLine(this.Eyes.transform.position, this.Yandere.transform.position + Vector3.up * (float)1, Color.green);
- > if (Physics.Linecast(this.Eyes.transform.position, this.Yandere.transform.position + Vector3.up * (float)1, out raycastHit) && raycastHit.collider.gameObject == this.Yandere.gameObject)
- > {
- > this.ReportPhase++;
- > }
- > }
RAW Paste Data
