Advertisement
Guest User

YandereScript Update

a guest
Oct 16th, 2016
15,896
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 138.01 KB | None | 0 0
  1. public override void Update()
  2.     {
  3.         GameObject gameObject;
  4.         if (Input.GetKeyDown("left alt"))
  5.         {
  6.             this.CinematicCamera.active = false;
  7.         }
  8.         if (this.PauseScreen.Show)
  9.         {
  10.             this.audio.volume = this.audio.volume - 0.333333343f;
  11.         }
  12.         else
  13.         {
  14.             if (!this.CanMove)
  15.             {
  16.                 if (this.Dumping)
  17.                 {
  18.                     this.targetRotation = Quaternion.LookRotation(this.Incinerator.transform.position - this.transform.position);
  19.                     this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
  20.                     this.MoveTowardsTarget(this.Incinerator.transform.position + (Vector3.right * (float)-2));
  21.                     if (this.DumpTimer == (float)0 && this.Carrying)
  22.                     {
  23.                         this.CharacterAnimation["f02_carryDisposeA_00"].time = 2.5f;
  24.                     }
  25.                     this.DumpTimer = this.DumpTimer + Time.deltaTime;
  26.                     if (this.DumpTimer > (float)1)
  27.                     {
  28.                         if (!((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).Dumped)
  29.                         {
  30.                             this.DumpRagdoll(1);
  31.                         }
  32.                         this.CharacterAnimation.CrossFade("f02_carryDisposeA_00");
  33.                         if (this.CharacterAnimation["f02_carryDisposeA_00"].time >= this.CharacterAnimation["f02_carryDisposeA_00"].length)
  34.                         {
  35.                             this.Incinerator.Prompt.enabled = true;
  36.                             this.Incinerator.Ready = true;
  37.                             this.Incinerator.Open = false;
  38.                             this.Dragging = false;
  39.                             this.Dumping = false;
  40.                             this.CanMove = true;
  41.                             this.Ragdoll = null;
  42.                             this.StopCarrying();
  43.                             this.DumpTimer = (float)0;
  44.                         }
  45.                     }
  46.                 }
  47.                 if (this.Chipping)
  48.                 {
  49.                     this.targetRotation = Quaternion.LookRotation(this.WoodChipper.gameObject.transform.position - this.transform.position);
  50.                     this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
  51.                     this.MoveTowardsTarget(this.WoodChipper.DumpPoint.position);
  52.                     if (this.DumpTimer == (float)0 && this.Carrying)
  53.                     {
  54.                         this.CharacterAnimation["f02_carryDisposeA_00"].time = 2.5f;
  55.                     }
  56.                     this.DumpTimer = this.DumpTimer + Time.deltaTime;
  57.                     if (this.DumpTimer > (float)1)
  58.                     {
  59.                         if (!((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).Dumped)
  60.                         {
  61.                             this.DumpRagdoll(3);
  62.                         }
  63.                         this.CharacterAnimation.CrossFade("f02_carryDisposeA_00");
  64.                         if (this.CharacterAnimation["f02_carryDisposeA_00"].time >= this.CharacterAnimation["f02_carryDisposeA_00"].length)
  65.                         {
  66.                             this.WoodChipper.Prompt.HideButton[0] = false;
  67.                             this.WoodChipper.Prompt.HideButton[3] = true;
  68.                             this.WoodChipper.Occupied = true;
  69.                             this.WoodChipper.Open = false;
  70.                             this.Dragging = false;
  71.                             this.Chipping = false;
  72.                             this.CanMove = true;
  73.                             this.Ragdoll = null;
  74.                             this.StopCarrying();
  75.                             this.DumpTimer = (float)0;
  76.                         }
  77.                     }
  78.                 }
  79.                 if (this.Dipping)
  80.                 {
  81.                     if (this.Bucket != null)
  82.                     {
  83.                         float bucket = this.Bucket.transform.position.x;
  84.                         float single = this.transform.position.y;
  85.                         Vector3 vector3 = this.Bucket.transform.position;
  86.                         this.targetRotation = Quaternion.LookRotation(new Vector3(bucket, single, vector3.z) - this.transform.position);
  87.                         this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
  88.                     }
  89.                     this.CharacterAnimation.CrossFade("f02_dipping_00");
  90.                     if (this.CharacterAnimation["f02_dipping_00"].time >= this.CharacterAnimation["f02_dipping_00"].length * 0.5f && this.Mop.Bloodiness > (float)0)
  91.                     {
  92.                         if (this.Bucket != null)
  93.                         {
  94.                             this.Bucket.Bloodiness = this.Bucket.Bloodiness + this.Mop.Bloodiness / (float)2;
  95.                         }
  96.                         this.Mop.Bloodiness = (float)0;
  97.                         this.Mop.UpdateBlood();
  98.                     }
  99.                     if (this.CharacterAnimation["f02_dipping_00"].time >= this.CharacterAnimation["f02_dipping_00"].length)
  100.                     {
  101.                         this.CharacterAnimation["f02_dipping_00"].time = (float)0;
  102.                         this.Mop.Prompt.enabled = true;
  103.                         this.Dipping = false;
  104.                         this.CanMove = true;
  105.                     }
  106.                 }
  107.                 if (this.Pouring)
  108.                 {
  109.                     this.MoveTowardsTarget(this.Stool.position);
  110.                     this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.Stool.rotation, (float)10 * Time.deltaTime);
  111.                     this.CharacterAnimation.CrossFade(("f02_bucketDump" + this.PourHeight) + "_00", (float)0);
  112.                     if (this.CharacterAnimation[("f02_bucketDump" + this.PourHeight) + "_00"].time >= this.PourTime && !this.PickUp.Bucket.Poured)
  113.                     {
  114.                         if (this.PickUp.Bucket.Gasoline)
  115.                         {
  116.                             this.PickUp.Bucket.PourEffect.startColor = new Color((float)1, (float)1, (float)0, 0.5f);
  117.                             Object.Instantiate(this.PickUp.Bucket.GasCollider, this.PickUp.Bucket.PourEffect.transform.position + (this.PourDistance * this.transform.forward), Quaternion.identity);
  118.                         }
  119.                         else if (this.PickUp.Bucket.Bloodiness >= (float)50)
  120.                         {
  121.                             this.PickUp.Bucket.PourEffect.startColor = new Color(0.5f, (float)0, (float)0, 0.5f);
  122.                             Object.Instantiate(this.PickUp.Bucket.BloodCollider, this.PickUp.Bucket.PourEffect.transform.position + (this.PourDistance * this.transform.forward), Quaternion.identity);
  123.                         }
  124.                         else
  125.                         {
  126.                             this.PickUp.Bucket.PourEffect.startColor = new Color((float)0, (float)1, (float)1, 0.5f);
  127.                             Object.Instantiate(this.PickUp.Bucket.WaterCollider, this.PickUp.Bucket.PourEffect.transform.position + (this.PourDistance * this.transform.forward), Quaternion.identity);
  128.                         }
  129.                         this.PickUp.Bucket.PourEffect.Play();
  130.                         this.PickUp.Bucket.Poured = true;
  131.                         this.PickUp.Bucket.Empty();
  132.                     }
  133.                     if (this.CharacterAnimation[("f02_bucketDump" + this.PourHeight) + "_00"].time >= this.CharacterAnimation[("f02_bucketDump" + this.PourHeight) + "_00"].length)
  134.                     {
  135.                         this.CharacterAnimation[("f02_bucketDump" + this.PourHeight) + "_00"].time = (float)0;
  136.                         this.PickUp.Bucket.Poured = false;
  137.                         this.Pouring = false;
  138.                         this.CanMove = true;
  139.                     }
  140.                 }
  141.                 if (this.Laughing)
  142.                 {
  143.                     if (this.Hairstyles[14].active)
  144.                     {
  145.                         this.LaughAnim = "storepower_20";
  146.                         this.LaughClip = this.ChargeUp;
  147.                     }
  148.                     if (this.CirnoHair.active)
  149.                     {
  150.                         float axis = Input.GetAxis("Vertical");
  151.                         float axis1 = Input.GetAxis("Horizontal");
  152.                         Vector3 vector31 = this.MainCamera.transform.TransformDirection(Vector3.forward);
  153.                         vector31.y = (float)0;
  154.                         vector31 = vector31.normalized;
  155.                         Vector3 vector32 = new Vector3(vector31.z, (float)0, -vector31.x);
  156.                         Vector3 vector33 = (axis1 * vector32) + (axis * vector31);
  157.                         if (vector33 != Vector3.zero)
  158.                         {
  159.                             this.targetRotation = Quaternion.LookRotation(vector33);
  160.                             this.transform.rotation = Quaternion.Lerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
  161.                         }
  162.                         this.LaughAnim = "f02_cirnoAttack_00";
  163.                         this.CirnoTimer = this.CirnoTimer - Time.deltaTime;
  164.                         if (this.CirnoTimer < (float)0)
  165.                         {
  166.                             GameObject gameObject1 = (GameObject)Object.Instantiate(this.CirnoIceAttack, this.transform.position + (this.transform.up * 1.4f), this.transform.rotation);
  167.                             gameObject1.transform.localEulerAngles = gameObject1.transform.localEulerAngles + new Vector3(Random.Range(-5f, 5f), Random.Range(-5f, 5f), Random.Range(-5f, 5f));
  168.                             this.audio.PlayOneShot(this.CirnoIceClip);
  169.                             this.CirnoTimer = 0.1f;
  170.                         }
  171.                     }
  172.                     else if (this.audio.clip != this.LaughClip)
  173.                     {
  174.                         this.audio.clip = this.LaughClip;
  175.                         this.audio.time = (float)0;
  176.                         this.audio.Play();
  177.                     }
  178.                     this.CharacterAnimation.CrossFade(this.LaughAnim);
  179.                     if (Input.GetButtonDown("RB"))
  180.                     {
  181.                         this.LaughIntensity = this.LaughIntensity + (float)1;
  182.                         if (this.LaughIntensity <= (float)5)
  183.                         {
  184.                             this.LaughAnim = "f02_laugh_01";
  185.                             this.LaughClip = this.Laugh1;
  186.                             this.LaughTimer = 0.5f;
  187.                         }
  188.                         else if (this.LaughIntensity <= (float)10)
  189.                         {
  190.                             this.LaughAnim = "f02_laugh_02";
  191.                             this.LaughClip = this.Laugh2;
  192.                             this.LaughTimer = (float)1;
  193.                         }
  194.                         else if (this.LaughIntensity <= (float)15)
  195.                         {
  196.                             this.LaughAnim = "f02_laugh_03";
  197.                             this.LaughClip = this.Laugh3;
  198.                             this.LaughTimer = 1.5f;
  199.                         }
  200.                         else if (this.LaughIntensity > (float)20)
  201.                         {
  202.                             gameObject = (GameObject)Object.Instantiate(this.AlarmDisc, this.transform.position + Vector3.up, Quaternion.identity);
  203.                             ((AlarmDiscScript)gameObject.GetComponent(typeof(AlarmDiscScript))).NoScream = true;
  204.                             this.LaughAnim = "f02_laugh_04";
  205.                             this.LaughIntensity = (float)20;
  206.                             this.LaughTimer = (float)2;
  207.                         }
  208.                         else
  209.                         {
  210.                             gameObject = (GameObject)Object.Instantiate(this.AlarmDisc, this.transform.position + Vector3.up, Quaternion.identity);
  211.                             ((AlarmDiscScript)gameObject.GetComponent(typeof(AlarmDiscScript))).NoScream = true;
  212.                             this.LaughAnim = "f02_laugh_04";
  213.                             this.LaughClip = this.Laugh4;
  214.                             this.LaughTimer = (float)2;
  215.                         }
  216.                     }
  217.                     if (this.LaughIntensity > (float)15)
  218.                     {
  219.                         this.Sanity = this.Sanity + Time.deltaTime * (float)10;
  220.                         this.UpdateSanity();
  221.                     }
  222.                     this.LaughTimer = this.LaughTimer - Time.deltaTime;
  223.                     if (this.LaughTimer <= (float)0)
  224.                     {
  225.                         this.StopLaughing();
  226.                     }
  227.                 }
  228.                 if (this.TimeSkipping)
  229.                 {
  230.                     float timeSkipHeight = this.TimeSkipHeight;
  231.                     float single1 = timeSkipHeight;
  232.                     Vector3 vector34 = this.transform.position;
  233.                     Vector3 vector35 = vector34;
  234.                     float single2 = single1;
  235.                     float single3 = single2;
  236.                     vector35.y = single2;
  237.                     Vector3 vector36 = vector35;
  238.                     Vector3 vector37 = vector36;
  239.                     this.transform.position = vector36;
  240.                     this.CharacterAnimation.CrossFade("f02_timeSkip_00");
  241.                     this.MyController.Move(this.transform.up * 0.0001f);
  242.                     this.Sanity = this.Sanity + Time.deltaTime * 0.17f;
  243.                     this.UpdateSanity();
  244.                 }
  245.                 if (this.DumpsterGrabbing)
  246.                 {
  247.                     if (Input.GetAxis("Horizontal") > 0.5f || Input.GetAxis("DpadX") > 0.5f)
  248.                     {
  249.                         if (this.DumpsterHandle.Direction != (float)-1)
  250.                         {
  251.                             this.CharacterAnimation.CrossFade("f02_dumpsterPush_00");
  252.                         }
  253.                         else
  254.                         {
  255.                             this.CharacterAnimation.CrossFade("f02_dumpsterPull_00");
  256.                         }
  257.                     }
  258.                     else if (Input.GetAxis("Horizontal") >= -0.5f && Input.GetAxis("DpadX") >= -0.5f)
  259.                     {
  260.                         this.CharacterAnimation.CrossFade("f02_dumpsterGrab_00");
  261.                     }
  262.                     else if (this.DumpsterHandle.Direction != (float)-1)
  263.                     {
  264.                         this.CharacterAnimation.CrossFade("f02_dumpsterPull_00");
  265.                     }
  266.                     else
  267.                     {
  268.                         this.CharacterAnimation.CrossFade("f02_dumpsterPush_00");
  269.                     }
  270.                 }
  271.                 if (this.Stripping && this.CharacterAnimation["f02_stripping_00"].time >= this.CharacterAnimation["f02_stripping_00"].length)
  272.                 {
  273.                     this.Stripping = false;
  274.                     this.CanMove = true;
  275.                     this.MyLocker.UpdateSchoolwear();
  276.                 }
  277.                 if (this.Bathing)
  278.                 {
  279.                     this.MoveTowardsTarget(this.Stool.position);
  280.                     this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.Stool.rotation, (float)10 * Time.deltaTime);
  281.                     this.CharacterAnimation.CrossFade("f02_stoolBathing_00");
  282.                     if (this.CharacterAnimation["f02_stoolBathing_00"].time >= this.CharacterAnimation["f02_stoolBathing_00"].length)
  283.                     {
  284.                         this.Bloodiness = (float)0;
  285.                         this.UpdateBlood();
  286.                         this.Bathing = false;
  287.                         this.CanMove = true;
  288.                     }
  289.                 }
  290.                 if (this.Degloving)
  291.                 {
  292.                     this.CharacterAnimation.CrossFade("f02_removeGloves_00");
  293.                     if (this.CharacterAnimation["f02_removeGloves_00"].time >= this.CharacterAnimation["f02_removeGloves_00"].length)
  294.                     {
  295.                         this.Gloves.transform.parent = null;
  296.                         this.Gloves.active = true;
  297.                         this.Degloving = false;
  298.                         this.CanMove = true;
  299.                         this.Gloved = false;
  300.                         this.Gloves = null;
  301.                         this.SetUniform();
  302.                     }
  303.                     else if (this.InputDevice.Type == 1)
  304.                     {
  305.                         if (Input.GetAxis("DpadY") > -0.5f)
  306.                         {
  307.                             this.Degloving = false;
  308.                             this.CanMove = true;
  309.                             this.GloveTimer = (float)0;
  310.                         }
  311.                     }
  312.                     else if (Input.GetKeyUp("1"))
  313.                     {
  314.                         this.Degloving = false;
  315.                         this.CanMove = true;
  316.                         this.GloveTimer = (float)0;
  317.                     }
  318.                 }
  319.                 if (this.Struggling)
  320.                 {
  321.                     if (!this.Won && !this.Lost)
  322.                     {
  323.                         if (this.TargetStudent.Teacher)
  324.                         {
  325.                             this.CharacterAnimation.CrossFade("f02_teacherStruggleA_00");
  326.                         }
  327.                         else
  328.                         {
  329.                             this.CharacterAnimation.CrossFade("f02_struggleA_00");
  330.                         }
  331.                         this.targetRotation = Quaternion.LookRotation(this.TargetStudent.transform.position - this.transform.position);
  332.                         this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  333.                     }
  334.                     else if (this.Won)
  335.                     {
  336.                         if (this.TargetStudent.Teacher)
  337.                         {
  338.                             this.CharacterAnimation.CrossFade("f02_teacherStruggleWinA_00");
  339.                             this.Weapon[this.Equipped].transform.localEulerAngles = Vector3.Lerp(this.Weapon[this.Equipped].transform.localEulerAngles, new Vector3((float)0, (float)0, (float)0), Time.deltaTime);
  340.                         }
  341.                         else
  342.                         {
  343.                             this.CharacterAnimation.CrossFade("f02_struggleWinA_00");
  344.                             if (this.CharacterAnimation["f02_struggleWinA_00"].time > this.CharacterAnimation["f02_struggleWinA_00"].length - (float)1)
  345.                             {
  346.                                 this.Weapon[this.Equipped].transform.localEulerAngles = Vector3.Lerp(this.Weapon[this.Equipped].transform.localEulerAngles, new Vector3((float)0, (float)0, (float)0), Time.deltaTime * 3.33333f);
  347.                             }
  348.                         }
  349.                         if (this.StrugglePhase == 0)
  350.                         {
  351.                             if (!this.TargetStudent.Teacher && this.CharacterAnimation["f02_struggleWinA_00"].time > 1.3f || this.TargetStudent.Teacher && this.CharacterAnimation["f02_teacherStruggleWinA_00"].time > 0.8f)
  352.                             {
  353.                                 if (this.TargetStudent.Teacher)
  354.                                 {
  355.                                     Object.Instantiate(this.TargetStudent.StabBloodEffect, this.Weapon[this.Equipped].transform.position, Quaternion.identity);
  356.                                 }
  357.                                 else
  358.                                 {
  359.                                     Object.Instantiate(this.TargetStudent.StabBloodEffect, this.TargetStudent.Head.position, Quaternion.identity);
  360.                                 }
  361.                                 this.Bloodiness = this.Bloodiness + (float)20;
  362.                                 this.UpdateBlood();
  363.                                 this.Sanity = this.Sanity - (float)20 * this.Numbness;
  364.                                 this.UpdateSanity();
  365.                                 this.StainWeapon();
  366.                                 this.StrugglePhase = this.StrugglePhase + 1;
  367.                             }
  368.                         }
  369.                         else if (this.StrugglePhase == 1)
  370.                         {
  371.                             if (this.TargetStudent.Teacher && this.CharacterAnimation["f02_teacherStruggleWinA_00"].time > 1.3f)
  372.                             {
  373.                                 Object.Instantiate(this.TargetStudent.StabBloodEffect, this.Weapon[this.Equipped].transform.position, Quaternion.identity);
  374.                                 this.StrugglePhase = this.StrugglePhase + 1;
  375.                             }
  376.                         }
  377.                         else if (this.StrugglePhase == 2 && this.TargetStudent.Teacher && this.CharacterAnimation["f02_teacherStruggleWinA_00"].time > 2.1f)
  378.                         {
  379.                             Object.Instantiate(this.TargetStudent.StabBloodEffect, this.Weapon[this.Equipped].transform.position, Quaternion.identity);
  380.                             this.StrugglePhase = this.StrugglePhase + 1;
  381.                         }
  382.                         if (!this.TargetStudent.Teacher && this.CharacterAnimation["f02_struggleWinA_00"].time > this.CharacterAnimation["f02_struggleWinA_00"].length || this.TargetStudent.Teacher && this.CharacterAnimation["f02_teacherStruggleWinA_00"].time > this.CharacterAnimation["f02_teacherStruggleWinA_00"].length)
  383.                         {
  384.                             this.MyController.radius = 0.2f;
  385.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  386.                             this.ShoulderCamera.Struggle = false;
  387.                             this.Struggling = false;
  388.                             this.StrugglePhase = 0;
  389.                             this.TargetStudent.BecomeRagdoll();
  390.                             this.TargetStudent.Dead = true;
  391.                         }
  392.                     }
  393.                     else if (this.Lost)
  394.                     {
  395.                         if (this.TargetStudent.Teacher)
  396.                         {
  397.                             this.CharacterAnimation.CrossFade("f02_teacherStruggleLoseA_00");
  398.                         }
  399.                         else
  400.                         {
  401.                             this.CharacterAnimation.CrossFade("f02_struggleLoseA_00");
  402.                         }
  403.                     }
  404.                 }
  405.                 if (this.ClubActivity && PlayerPrefs.GetInt("Club") == 6)
  406.                 {
  407.                     this.CharacterAnimation.Play("f02_kick_23");
  408.                     if (this.CharacterAnimation["f02_kick_23"].time >= this.CharacterAnimation["f02_kick_23"].length)
  409.                     {
  410.                         this.CharacterAnimation["f02_kick_23"].time = (float)0;
  411.                     }
  412.                 }
  413.                 if (this.Possessed)
  414.                 {
  415.                     this.CharacterAnimation.CrossFade("f02_possessionPose_00");
  416.                 }
  417.                 if (this.Punching)
  418.                 {
  419.                     if (!this.FalconHelmet.active)
  420.                     {
  421.                         if (this.CharacterAnimation["f02_punch_21"].time >= 0.15f && this.CharacterAnimation["f02_punch_21"].time <= 0.2f && this.NewOnePunch == null)
  422.                         {
  423.                             this.NewOnePunch = (GameObject)Object.Instantiate(this.OnePunch);
  424.                             this.NewOnePunch.transform.parent = this.ItemParent;
  425.                             this.NewOnePunch.transform.localPosition = new Vector3((float)0, (float)0, (float)0);
  426.                         }
  427.                         if (this.CharacterAnimation["f02_punch_21"].time >= this.CharacterAnimation["f02_punch_21"].length - 0.1f)
  428.                         {
  429.                             this.NewOnePunch = null;
  430.                             this.Punching = false;
  431.                             this.CanMove = true;
  432.                         }
  433.                     }
  434.                     else
  435.                     {
  436.                         if (this.CharacterAnimation["f02_falconPunch_00"].time >= (float)1 && this.CharacterAnimation["f02_falconPunch_00"].time <= 1.25f)
  437.                         {
  438.                             this.FalconSpeed = Mathf.MoveTowards(this.FalconSpeed, 2.5f, Time.deltaTime * 2.5f);
  439.                         }
  440.                         else if (this.CharacterAnimation["f02_falconPunch_00"].time >= 1.25f && this.CharacterAnimation["f02_falconPunch_00"].time <= 1.5f)
  441.                         {
  442.                             this.FalconSpeed = Mathf.MoveTowards(this.FalconSpeed, (float)0, Time.deltaTime * 2.5f);
  443.                         }
  444.                         if (this.CharacterAnimation["f02_falconPunch_00"].time >= (float)1 && this.CharacterAnimation["f02_falconPunch_00"].time <= 1.5f)
  445.                         {
  446.                             if (this.NewFalconPunch == null)
  447.                             {
  448.                                 this.NewFalconPunch = (GameObject)Object.Instantiate(this.FalconPunch);
  449.                                 this.NewFalconPunch.transform.parent = this.ItemParent;
  450.                                 this.NewFalconPunch.transform.localPosition = new Vector3((float)0, (float)0, (float)0);
  451.                             }
  452.                             this.MyController.Move(this.transform.forward * this.FalconSpeed);
  453.                         }
  454.                         if (this.CharacterAnimation["f02_falconPunch_00"].time >= this.CharacterAnimation["f02_falconPunch_00"].length)
  455.                         {
  456.                             this.NewFalconPunch = null;
  457.                             this.Punching = false;
  458.                             this.CanMove = true;
  459.                         }
  460.                     }
  461.                 }
  462.                 if (this.PK)
  463.                 {
  464.                     if (Input.GetAxis("Vertical") > 0.5f)
  465.                     {
  466.                         this.CharacterAnimation.CrossFade("f02_sansUp_00");
  467.                         this.RagdollPK.transform.localPosition = new Vector3((float)0, (float)3, (float)2);
  468.                         if (this.PKDir != 1)
  469.                         {
  470.                             AudioSource.PlayClipAtPoint(this.Slam, this.transform.position + Vector3.up);
  471.                         }
  472.                         this.PKDir = 1;
  473.                     }
  474.                     else if (Input.GetAxis("Vertical") < -0.5f)
  475.                     {
  476.                         this.CharacterAnimation.CrossFade("f02_sansDown_00");
  477.                         this.RagdollPK.transform.localPosition = new Vector3((float)0, (float)0, (float)2);
  478.                         if (this.PKDir != 2)
  479.                         {
  480.                             AudioSource.PlayClipAtPoint(this.Slam, this.transform.position + Vector3.up);
  481.                         }
  482.                         this.PKDir = 2;
  483.                     }
  484.                     else if (Input.GetAxis("Horizontal") > 0.5f)
  485.                     {
  486.                         this.CharacterAnimation.CrossFade("f02_sansRight_00");
  487.                         this.RagdollPK.transform.localPosition = new Vector3(1.5f, 1.5f, (float)2);
  488.                         if (this.PKDir != 3)
  489.                         {
  490.                             AudioSource.PlayClipAtPoint(this.Slam, this.transform.position + Vector3.up);
  491.                         }
  492.                         this.PKDir = 3;
  493.                     }
  494.                     else if (Input.GetAxis("Horizontal") >= -0.5f)
  495.                     {
  496.                         this.CharacterAnimation.CrossFade("f02_sansHold_00");
  497.                         this.RagdollPK.transform.localPosition = new Vector3((float)0, 1.5f, (float)2);
  498.                         this.PKDir = 0;
  499.                     }
  500.                     else
  501.                     {
  502.                         this.CharacterAnimation.CrossFade("f02_sansLeft_00");
  503.                         this.RagdollPK.transform.localPosition = new Vector3(-1.5f, 1.5f, (float)2);
  504.                         if (this.PKDir != 4)
  505.                         {
  506.                             AudioSource.PlayClipAtPoint(this.Slam, this.transform.position + Vector3.up);
  507.                         }
  508.                         this.PKDir = 4;
  509.                     }
  510.                     if (Input.GetButtonDown("B"))
  511.                     {
  512.                         this.PromptBar.ClearButtons();
  513.                         this.PromptBar.UpdateButtons();
  514.                         this.PromptBar.Show = false;
  515.                         ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).StopDragging();
  516.                         this.SansEyes[0].active = false;
  517.                         this.SansEyes[1].active = false;
  518.                         this.GlowEffect.Stop();
  519.                         this.CanMove = true;
  520.                         this.PK = false;
  521.                     }
  522.                 }
  523.                 if (this.SummonBones)
  524.                 {
  525.                     this.CharacterAnimation.CrossFade("f02_sansBones_00");
  526.                     if (this.BoneTimer == (float)0)
  527.                     {
  528.                         Object.Instantiate(this.Bone, ((this.transform.position + (this.transform.right * Random.Range(-2.5f, 2.5f))) + (this.transform.up * (float)-2)) + (this.transform.forward * Random.Range(1f, 6f)), Quaternion.identity);
  529.                     }
  530.                     this.BoneTimer = this.BoneTimer + Time.deltaTime;
  531.                     if (this.BoneTimer > 0.1f)
  532.                     {
  533.                         this.BoneTimer = (float)0;
  534.                     }
  535.                     if (Input.GetButtonUp("RB"))
  536.                     {
  537.                         this.SansEyes[0].active = false;
  538.                         this.SansEyes[1].active = false;
  539.                         this.GlowEffect.Stop();
  540.                         this.SummonBones = false;
  541.                         this.CanMove = true;
  542.                     }
  543.                     if (this.PK)
  544.                     {
  545.                         this.PromptBar.ClearButtons();
  546.                         this.PromptBar.UpdateButtons();
  547.                         this.PromptBar.Show = false;
  548.                         ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).StopDragging();
  549.                         this.SansEyes[0].active = false;
  550.                         this.SansEyes[1].active = false;
  551.                         this.GlowEffect.Stop();
  552.                         this.CanMove = true;
  553.                         this.PK = false;
  554.                     }
  555.                 }
  556.                 if (this.Blasting)
  557.                 {
  558.                     if (this.CharacterAnimation["f02_sansBlaster_00"].time >= this.CharacterAnimation["f02_sansBlaster_00"].length - 0.25f)
  559.                     {
  560.                         this.SansEyes[0].active = false;
  561.                         this.SansEyes[1].active = false;
  562.                         this.GlowEffect.Stop();
  563.                         this.Blasting = false;
  564.                         this.CanMove = true;
  565.                     }
  566.                     if (this.PK)
  567.                     {
  568.                         this.PromptBar.ClearButtons();
  569.                         this.PromptBar.UpdateButtons();
  570.                         this.PromptBar.Show = false;
  571.                         ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).StopDragging();
  572.                         this.SansEyes[0].active = false;
  573.                         this.SansEyes[1].active = false;
  574.                         this.GlowEffect.Stop();
  575.                         this.CanMove = true;
  576.                         this.PK = false;
  577.                     }
  578.                 }
  579.                 if (this.Lifting && this.CharacterAnimation["f02_carryLiftA_00"].time >= this.CharacterAnimation["f02_carryLiftA_00"].length)
  580.                 {
  581.                     this.IdleAnim = this.CarryIdleAnim;
  582.                     this.WalkAnim = this.CarryWalkAnim;
  583.                     this.RunAnim = this.CarryRunAnim;
  584.                     this.CanMove = true;
  585.                     this.Carrying = true;
  586.                     this.Lifting = false;
  587.                 }
  588.                 if (this.Dropping)
  589.                 {
  590.                     this.targetRotation = Quaternion.LookRotation((this.DropSpot.position + this.DropSpot.forward) - this.transform.position);
  591.                     this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
  592.                     this.MoveTowardsTarget(this.DropSpot.position);
  593.                     if (this.DumpTimer == (float)0 && this.Carrying)
  594.                     {
  595.                         ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).CharacterAnimation[((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).DumpedAnim].time = 2.5f;
  596.                         this.CharacterAnimation["f02_carryDisposeA_00"].time = 2.5f;
  597.                     }
  598.                     this.DumpTimer = this.DumpTimer + Time.deltaTime;
  599.                     if (this.DumpTimer > (float)1)
  600.                     {
  601.                         if (this.Ragdoll != null)
  602.                         {
  603.                             int num = 0;
  604.                             int num1 = num;
  605.                             Vector3 pelvisRoot = ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).PelvisRoot.localEulerAngles;
  606.                             Vector3 vector38 = pelvisRoot;
  607.                             float single4 = (float)num1;
  608.                             float single5 = single4;
  609.                             vector38.y = single4;
  610.                             Vector3 vector39 = vector38;
  611.                             Vector3 vector310 = vector39;
  612.                             ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).PelvisRoot.localEulerAngles = vector39;
  613.                             int num2 = 0;
  614.                             int num3 = num2;
  615.                             Vector3 pelvisRoot1 = ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).PelvisRoot.localPosition;
  616.                             Vector3 vector311 = pelvisRoot1;
  617.                             float single6 = (float)num3;
  618.                             float single7 = single6;
  619.                             vector311.z = single6;
  620.                             Vector3 vector312 = vector311;
  621.                             Vector3 vector313 = vector312;
  622.                             ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).PelvisRoot.localPosition = vector312;
  623.                         }
  624.                         Transform cameraTarget = this.CameraTarget;
  625.                         Vector3 cameraTarget1 = this.CameraTarget.position;
  626.                         float hips = this.Hips.position.x;
  627.                         float single8 = this.transform.position.y + (float)1;
  628.                         Vector3 hips1 = this.Hips.position;
  629.                         cameraTarget.position = Vector3.MoveTowards(cameraTarget1, new Vector3(hips, single8, hips1.z), Time.deltaTime * (float)10);
  630.                         if (this.CharacterAnimation["f02_carryDisposeA_00"].time < 4.5f)
  631.                         {
  632.                             if (((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).StopAnimation)
  633.                             {
  634.                                 ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).StopAnimation = false;
  635.                                 this.ID = 0;
  636.                                 while (this.ID < ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).AllRigidbodies.Length)
  637.                                 {
  638.                                     ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).AllRigidbodies[this.ID].isKinematic = true;
  639.                                     this.ID = this.ID + 1;
  640.                                 }
  641.                             }
  642.                             this.CharacterAnimation.CrossFade("f02_carryDisposeA_00");
  643.                             ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).CharacterAnimation.CrossFade(((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).DumpedAnim);
  644.                             this.Ragdoll.transform.position = this.transform.position;
  645.                             this.Ragdoll.transform.eulerAngles = this.transform.eulerAngles;
  646.                         }
  647.                         else
  648.                         {
  649.                             this.StopCarrying();
  650.                         }
  651.                         if (this.CharacterAnimation["f02_carryDisposeA_00"].time >= this.CharacterAnimation["f02_carryDisposeA_00"].length)
  652.                         {
  653.                             this.CameraTarget.localPosition = new Vector3((float)0, (float)1, (float)0);
  654.                             this.Dropping = false;
  655.                             this.CanMove = true;
  656.                             this.DumpTimer = (float)0;
  657.                         }
  658.                     }
  659.                 }
  660.                 if (this.Dismembering && this.CharacterAnimation["f02_dismember_00"].time >= this.CharacterAnimation["f02_dismember_00"].length)
  661.                 {
  662.                     ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).Dismember();
  663.                     this.RPGCamera.enabled = true;
  664.                     this.TargetStudent = null;
  665.                     this.Dismembering = false;
  666.                     this.CanMove = true;
  667.                 }
  668.                 if (this.Shoved)
  669.                 {
  670.                     if (this.CharacterAnimation["f02_shoveA_00"].time < this.CharacterAnimation["f02_shoveA_00"].length)
  671.                     {
  672.                         Transform transforms = this.CameraTarget;
  673.                         Vector3 cameraTarget2 = this.CameraTarget.position;
  674.                         float hips2 = this.Hips.position.x;
  675.                         float single9 = this.transform.position.y + (float)1;
  676.                         Vector3 hips3 = this.Hips.position;
  677.                         transforms.position = Vector3.MoveTowards(cameraTarget2, new Vector3(hips2, single9, hips3.z), Time.deltaTime * (float)10);
  678.                     }
  679.                     else
  680.                     {
  681.                         float hips4 = this.Hips.transform.position.x;
  682.                         float single10 = hips4;
  683.                         Vector3 vector314 = this.transform.position;
  684.                         Vector3 vector315 = vector314;
  685.                         float single11 = single10;
  686.                         float single12 = single11;
  687.                         vector315.x = single11;
  688.                         Vector3 vector316 = vector315;
  689.                         Vector3 vector317 = vector316;
  690.                         this.transform.position = vector316;
  691.                         float hips5 = this.Hips.transform.position.z;
  692.                         float single13 = hips5;
  693.                         Vector3 vector318 = this.transform.position;
  694.                         Vector3 vector319 = vector318;
  695.                         float single14 = single13;
  696.                         float single15 = single14;
  697.                         vector319.z = single14;
  698.                         Vector3 vector320 = vector319;
  699.                         Vector3 vector321 = vector320;
  700.                         this.transform.position = vector320;
  701.                         this.CameraTarget.localPosition = new Vector3((float)0, (float)1, (float)0);
  702.                         this.CharacterAnimation.Play(this.IdleAnim);
  703.                         this.Shoved = false;
  704.                         this.CanMove = true;
  705.                     }
  706.                 }
  707.                 if (this.Attacked && this.CharacterAnimation["f02_swingB_00"].time >= this.CharacterAnimation["f02_swingB_00"].length)
  708.                 {
  709.                     this.ShoulderCamera.HeartbrokenCamera.active = true;
  710.                 }
  711.                 if (this.Hiding)
  712.                 {
  713.                     if (this.Exiting)
  714.                     {
  715.                         this.MoveTowardsTarget(this.ExitSpot.position);
  716.                         this.CharacterAnimation.CrossFade(this.IdleAnim);
  717.                         this.ExitTimer = this.ExitTimer + Time.deltaTime;
  718.                         if (this.ExitTimer > (float)1 || Vector3.Distance(this.transform.position, this.ExitSpot.position) < 0.1f)
  719.                         {
  720.                             float single16 = 0.825f;
  721.                             float single17 = single16;
  722.                             Vector3 myController = this.MyController.center;
  723.                             Vector3 vector322 = myController;
  724.                             float single18 = single17;
  725.                             float single19 = single18;
  726.                             vector322.y = single18;
  727.                             Vector3 vector323 = vector322;
  728.                             Vector3 vector324 = vector323;
  729.                             this.MyController.center = vector323;
  730.                             this.MyController.height = 1.45f;
  731.                             this.ExitTimer = (float)0;
  732.                             this.Exiting = false;
  733.                             this.CanMove = true;
  734.                             this.Hiding = false;
  735.                         }
  736.                     }
  737.                     else
  738.                     {
  739.                         this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.HidingSpot.rotation, Time.deltaTime * (float)10);
  740.                         this.MoveTowardsTarget(this.HidingSpot.position);
  741.                         this.CharacterAnimation.CrossFade("f02_hiding_00");
  742.                     }
  743.                     if (Input.GetButtonDown("B"))
  744.                     {
  745.                         this.PromptBar.ClearButtons();
  746.                         this.PromptBar.Show = false;
  747.                         this.Exiting = true;
  748.                     }
  749.                 }
  750.                 if (this.Tripping)
  751.                 {
  752.                     if (this.CharacterAnimation["f02_bucketTrip_00"].time >= this.CharacterAnimation["f02_bucketTrip_00"].length)
  753.                     {
  754.                         this.CharacterAnimation["f02_bucketTrip_00"].speed = (float)1;
  755.                         this.Tripping = false;
  756.                         this.CanMove = true;
  757.                     }
  758.                     else if (this.CharacterAnimation["f02_bucketTrip_00"].time < 0.5f)
  759.                     {
  760.                         this.MyController.Move((this.transform.forward * Time.deltaTime) * (float)2);
  761.                         if (this.CharacterAnimation["f02_bucketTrip_00"].time > 0.33333f && this.CharacterAnimation["f02_bucketTrip_00"].speed == (float)1)
  762.                         {
  763.                             this.CharacterAnimation["f02_bucketTrip_00"].speed = this.CharacterAnimation["f02_bucketTrip_00"].speed + 1E-06f;
  764.                             AudioSource.PlayClipAtPoint(this.Thud, this.transform.position);
  765.                         }
  766.                     }
  767.                     else if (Input.GetButtonDown("A"))
  768.                     {
  769.                         this.CharacterAnimation["f02_bucketTrip_00"].speed = this.CharacterAnimation["f02_bucketTrip_00"].speed + 0.1f;
  770.                     }
  771.                 }
  772.                 if (this.BucketDropping)
  773.                 {
  774.                     this.targetRotation = Quaternion.LookRotation((this.DropSpot.position + this.DropSpot.forward) - this.transform.position);
  775.                     this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
  776.                     this.MoveTowardsTarget(this.DropSpot.position);
  777.                     if (this.CharacterAnimation["f02_bucketDrop_00"].time >= this.CharacterAnimation["f02_bucketDrop_00"].length)
  778.                     {
  779.                         this.MyController.radius = 0.2f;
  780.                         this.BucketDropping = false;
  781.                         this.CanMove = true;
  782.                     }
  783.                     else if (this.CharacterAnimation["f02_bucketDrop_00"].time >= (float)1 && this.PickUp != null)
  784.                     {
  785.                         this.PickUp.Bucket.Dropped = true;
  786.                         this.EmptyHands();
  787.                     }
  788.                 }
  789.                 if (this.Flicking)
  790.                 {
  791.                     if (this.CharacterAnimation["f02_flickingMatch_00"].time >= this.CharacterAnimation["f02_flickingMatch_00"].length)
  792.                     {
  793.                         ((MatchboxScript)this.PickUp.GetComponent(typeof(MatchboxScript))).Prompt.enabled = true;
  794.                         this.Arc.active = true;
  795.                         this.Flicking = false;
  796.                         this.CanMove = true;
  797.                     }
  798.                     else if (this.CharacterAnimation["f02_flickingMatch_00"].time > (float)1 && this.Match != null)
  799.                     {
  800.                         this.Match.rigidbody.isKinematic = false;
  801.                         this.Match.rigidbody.useGravity = true;
  802.                         this.Match.rigidbody.AddRelativeForce(Vector3.right * (float)250);
  803.                         this.Match.transform.parent = null;
  804.                         this.Match = null;
  805.                     }
  806.                 }
  807.                 if (this.Rummaging)
  808.                 {
  809.                     this.MoveTowardsTarget(this.RummageSpot.Target.position);
  810.                     this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.RummageSpot.Target.rotation, Time.deltaTime * (float)10);
  811.                     this.RummageTimer = this.RummageTimer + Time.deltaTime;
  812.                     float rummageTimer = this.RummageTimer / (float)10;
  813.                     float single20 = rummageTimer;
  814.                     Vector3 progressBar = this.ProgressBar.transform.localScale;
  815.                     Vector3 vector325 = progressBar;
  816.                     float single21 = single20;
  817.                     float single22 = single21;
  818.                     vector325.x = single21;
  819.                     Vector3 vector326 = vector325;
  820.                     Vector3 vector327 = vector326;
  821.                     this.ProgressBar.transform.localScale = vector326;
  822.                     if (this.RummageTimer > (float)10)
  823.                     {
  824.                         this.RummageSpot.GetReward();
  825.                         this.ProgressBar.transform.parent.active = false;
  826.                         this.RummageSpot = null;
  827.                         this.Rummaging = false;
  828.                         this.RummageTimer = (float)0;
  829.                         this.CanMove = true;
  830.                     }
  831.                 }
  832.                 if (this.Digging)
  833.                 {
  834.                     if (this.DigPhase == 1)
  835.                     {
  836.                         if (this.CharacterAnimation["f02_shovelDig_00"].time >= 1.66666663f)
  837.                         {
  838.                             this.audio.volume = (float)1;
  839.                             this.audio.clip = this.Dig;
  840.                             this.audio.Play();
  841.                             this.DigPhase = this.DigPhase + 1;
  842.                         }
  843.                     }
  844.                     else if (this.DigPhase == 2)
  845.                     {
  846.                         if (this.CharacterAnimation["f02_shovelDig_00"].time >= 3.5f)
  847.                         {
  848.                             this.audio.volume = (float)1;
  849.                             this.audio.Play();
  850.                             this.DigPhase = this.DigPhase + 1;
  851.                         }
  852.                     }
  853.                     else if (this.DigPhase == 3)
  854.                     {
  855.                         if (this.CharacterAnimation["f02_shovelDig_00"].time >= 5.66666651f)
  856.                         {
  857.                             this.audio.volume = (float)1;
  858.                             this.audio.Play();
  859.                             this.DigPhase = this.DigPhase + 1;
  860.                         }
  861.                     }
  862.                     else if (this.DigPhase == 4 && this.CharacterAnimation["f02_shovelDig_00"].time >= this.CharacterAnimation["f02_shovelDig_00"].length)
  863.                     {
  864.                         this.Weapon[this.Equipped].gameObject.active = true;
  865.                         this.FloatingShovel.active = false;
  866.                         this.RPGCamera.enabled = true;
  867.                         this.Digging = false;
  868.                         this.CanMove = true;
  869.                     }
  870.                 }
  871.                 if (this.Burying)
  872.                 {
  873.                     if (this.DigPhase == 1)
  874.                     {
  875.                         if (this.CharacterAnimation["f02_shovelBury_00"].time >= 2.16666675f)
  876.                         {
  877.                             this.audio.volume = (float)1;
  878.                             this.audio.clip = this.Dig;
  879.                             this.audio.Play();
  880.                             this.DigPhase = this.DigPhase + 1;
  881.                         }
  882.                     }
  883.                     else if (this.DigPhase == 2)
  884.                     {
  885.                         if (this.CharacterAnimation["f02_shovelBury_00"].time >= 4.66666651f)
  886.                         {
  887.                             this.audio.volume = (float)1;
  888.                             this.audio.Play();
  889.                             this.DigPhase = this.DigPhase + 1;
  890.                         }
  891.                     }
  892.                     else if (this.CharacterAnimation["f02_shovelBury_00"].time >= this.CharacterAnimation["f02_shovelBury_00"].length)
  893.                     {
  894.                         this.Weapon[this.Equipped].gameObject.active = true;
  895.                         this.FloatingShovel.active = false;
  896.                         this.RPGCamera.enabled = true;
  897.                         this.Burying = false;
  898.                         this.CanMove = true;
  899.                     }
  900.                 }
  901.             }
  902.             else
  903.             {
  904.                 this.MyController.Move(Physics.gravity * 0.1f);
  905.                 this.v = Input.GetAxis("Vertical");
  906.                 this.h = Input.GetAxis("Horizontal");
  907.                 this.FlapSpeed = Mathf.Abs(this.v) + Mathf.Abs(this.h);
  908.                 if (this.Aiming)
  909.                 {
  910.                     if (this.v == (float)0 && this.h == (float)0)
  911.                     {
  912.                         if (this.Crawling)
  913.                         {
  914.                             this.CharacterAnimation.CrossFade("f02_crawlIdle_00");
  915.                         }
  916.                         else if (!this.Crouching)
  917.                         {
  918.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  919.                         }
  920.                         else
  921.                         {
  922.                             this.CharacterAnimation.CrossFade("f02_crouchIdle_00");
  923.                         }
  924.                     }
  925.                     else if (this.Crawling)
  926.                     {
  927.                         this.CharacterAnimation.CrossFade("f02_crawl_10");
  928.                         this.MyController.Move(((this.transform.forward * this.CrawlSpeed) * Time.deltaTime) * this.v);
  929.                         this.MyController.Move(((this.transform.right * this.CrawlSpeed) * Time.deltaTime) * this.h);
  930.                     }
  931.                     else if (!this.Crouching)
  932.                     {
  933.                         this.CharacterAnimation.CrossFade(this.WalkAnim);
  934.                         this.MyController.Move(((this.transform.forward * this.WalkSpeed) * Time.deltaTime) * this.v);
  935.                         this.MyController.Move(((this.transform.right * this.WalkSpeed) * Time.deltaTime) * this.h);
  936.                     }
  937.                     else
  938.                     {
  939.                         this.CharacterAnimation.CrossFade("f02_crouchWalk_00");
  940.                         this.MyController.Move(((this.transform.forward * this.CrouchSpeed) * Time.deltaTime) * this.v);
  941.                         this.MyController.Move(((this.transform.right * this.CrouchSpeed) * Time.deltaTime) * this.h);
  942.                     }
  943.                     this.Bend = this.Bend + Input.GetAxis("Mouse Y") * (float)8;
  944.                     if (this.Crawling)
  945.                     {
  946.                         if (this.Bend < (float)0)
  947.                         {
  948.                             this.Bend = (float)0;
  949.                         }
  950.                     }
  951.                     else if (this.Crouching)
  952.                     {
  953.                         if (this.Bend < (float)-45)
  954.                         {
  955.                             this.Bend = (float)-45;
  956.                         }
  957.                     }
  958.                     else if (this.Bend < (float)-85)
  959.                     {
  960.                         this.Bend = (float)-85;
  961.                     }
  962.                     if (this.Bend > (float)85)
  963.                     {
  964.                         this.Bend = (float)85;
  965.                     }
  966.                     Vector3 vector328 = this.transform.localEulerAngles;
  967.                     float axis2 = vector328.y + Input.GetAxis("Mouse X") * (float)8;
  968.                     float single23 = axis2;
  969.                     Vector3 vector329 = this.transform.localEulerAngles;
  970.                     Vector3 vector330 = vector329;
  971.                     float single24 = single23;
  972.                     float single25 = single24;
  973.                     vector330.y = single24;
  974.                     Vector3 vector331 = vector330;
  975.                     Vector3 vector332 = vector331;
  976.                     this.transform.localEulerAngles = vector331;
  977.                 }
  978.                 else
  979.                 {
  980.                     Vector3 vector333 = this.MainCamera.transform.TransformDirection(Vector3.forward);
  981.                     vector333.y = (float)0;
  982.                     vector333 = vector333.normalized;
  983.                     Vector3 vector334 = new Vector3(vector333.z, (float)0, -vector333.x);
  984.                     this.targetDirection = (this.h * vector334) + (this.v * vector333);
  985.                     if (this.targetDirection == Vector3.zero)
  986.                     {
  987.                         this.targetRotation = new Quaternion((float)0, (float)0, (float)0, (float)0);
  988.                     }
  989.                     else
  990.                     {
  991.                         this.targetRotation = Quaternion.LookRotation(this.targetDirection);
  992.                         this.transform.rotation = Quaternion.Lerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
  993.                     }
  994.                     if (this.v == (float)0 && this.h == (float)0)
  995.                     {
  996.                         if (this.Dragging)
  997.                         {
  998.                             this.CharacterAnimation.CrossFade("f02_dragIdle_00");
  999.                         }
  1000.                         else if (this.Crawling)
  1001.                         {
  1002.                             this.CharacterAnimation.CrossFade("f02_crawlIdle_00");
  1003.                         }
  1004.                         else if (!this.Crouching)
  1005.                         {
  1006.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  1007.                         }
  1008.                         else
  1009.                         {
  1010.                             this.CharacterAnimation.CrossFade("f02_crouchIdle_00");
  1011.                         }
  1012.                     }
  1013.                     else if (Input.GetButton("LB") && Vector3.Distance(this.transform.position, this.Senpai.position) > (float)2)
  1014.                     {
  1015.                         if (this.Crouching)
  1016.                         {
  1017.                             this.CharacterAnimation["f02_crouchWalk_00"].speed = (float)2;
  1018.                             this.CharacterAnimation.CrossFade("f02_crouchWalk_00");
  1019.                             this.MyController.Move((this.transform.forward * ((float)2 + (float)(PlayerPrefs.GetInt("PhysicalGrade") + PlayerPrefs.GetInt("SpeedBonus")) * 0.25f)) * Time.deltaTime);
  1020.                         }
  1021.                         else if (this.Dragging || this.Mopping)
  1022.                         {
  1023.                             this.CharacterAnimation.CrossFade("f02_dragWalk_00");
  1024.                             this.MyController.Move((this.transform.forward * this.WalkSpeed) * Time.deltaTime);
  1025.                         }
  1026.                         else
  1027.                         {
  1028.                             this.CharacterAnimation.CrossFade(this.RunAnim);
  1029.                             this.MyController.Move((this.transform.forward * (this.RunSpeed + (float)(PlayerPrefs.GetInt("PhysicalGrade") + PlayerPrefs.GetInt("SpeedBonus")) * 0.25f)) * Time.deltaTime);
  1030.                         }
  1031.                         !this.Crouching;
  1032.                         if (this.Crawling)
  1033.                         {
  1034.                             this.Crawling = false;
  1035.                             this.Crouching = true;
  1036.                             this.Crouch();
  1037.                         }
  1038.                     }
  1039.                     else if (this.Dragging)
  1040.                     {
  1041.                         this.CharacterAnimation.CrossFade("f02_dragWalk_00");
  1042.                         this.MyController.Move((this.transform.forward * this.WalkSpeed) * Time.deltaTime);
  1043.                     }
  1044.                     else if (this.Crawling)
  1045.                     {
  1046.                         this.CharacterAnimation.CrossFade("f02_crawl_10");
  1047.                         this.MyController.Move((this.transform.forward * this.CrawlSpeed) * Time.deltaTime);
  1048.                     }
  1049.                     else if (!this.Crouching)
  1050.                     {
  1051.                         this.CharacterAnimation.CrossFade(this.WalkAnim);
  1052.                         this.MyController.Move((this.transform.forward * this.WalkSpeed) * Time.deltaTime);
  1053.                     }
  1054.                     else
  1055.                     {
  1056.                         this.CharacterAnimation["f02_crouchWalk_00"].speed = (float)1;
  1057.                         this.CharacterAnimation.CrossFade("f02_crouchWalk_00");
  1058.                         this.MyController.Move((this.transform.forward * this.CrouchSpeed) * Time.deltaTime);
  1059.                     }
  1060.                 }
  1061.                 if (!this.NearSenpai)
  1062.                 {
  1063.                     if (!Input.GetButton("A") && !Input.GetButton("B") && !Input.GetButton("X") && !Input.GetButton("Y") && (Input.GetAxis("LT") > 0.5f || Input.GetMouseButton(1)))
  1064.                     {
  1065.                         if (this.Inventory.RivalPhone && Input.GetButtonDown("LB"))
  1066.                         {
  1067.                             this.CharacterAnimation["f02_cameraPose_00"].weight = (float)0;
  1068.                             if (this.RivalPhone)
  1069.                             {
  1070.                                 this.SmartphoneRenderer.material.mainTexture = this.YanderePhoneTexture;
  1071.                                 this.RivalPhone = false;
  1072.                             }
  1073.                             else
  1074.                             {
  1075.                                 this.SmartphoneRenderer.material.mainTexture = this.KokonaPhoneTexture;
  1076.                                 this.RivalPhone = true;
  1077.                             }
  1078.                         }
  1079.                         if (Input.GetAxis("LT") > 0.5f)
  1080.                         {
  1081.                             this.UsingController = true;
  1082.                         }
  1083.                         if (!this.Aiming)
  1084.                         {
  1085.                             if (this.CameraEffects.OneCamera)
  1086.                             {
  1087.                                 this.MainCamera.clearFlags = CameraClearFlags.Color;
  1088.                                 this.MainCamera.farClipPlane = 0.02f;
  1089.                             }
  1090.                             float mainCamera = this.MainCamera.transform.eulerAngles.y;
  1091.                             float single26 = mainCamera;
  1092.                             Vector3 vector335 = this.transform.eulerAngles;
  1093.                             Vector3 vector336 = vector335;
  1094.                             float single27 = single26;
  1095.                             float single28 = single27;
  1096.                             vector336.y = single27;
  1097.                             Vector3 vector337 = vector336;
  1098.                             Vector3 vector338 = vector337;
  1099.                             this.transform.eulerAngles = vector337;
  1100.                             this.CharacterAnimation.Play(this.IdleAnim);
  1101.                             this.Smartphone.transform.parent.active = true;
  1102.                             this.ShoulderCamera.AimingCamera = true;
  1103.                             this.Obscurance.enabled = false;
  1104.                             this.HandCamera.active = true;
  1105.                             this.YandereVision = false;
  1106.                             this.Blur.enabled = true;
  1107.                             this.Mopping = false;
  1108.                             this.Aiming = true;
  1109.                             this.EmptyHands();
  1110.                             if (this.Inventory.RivalPhone)
  1111.                             {
  1112.                                 this.PhonePromptBar.Show = true;
  1113.                             }
  1114.                             Time.timeScale = (float)1;
  1115.                         }
  1116.                     }
  1117.                     if (!this.Aiming && !this.Crouching && !this.Crawling && !this.Accessories[9].active && !this.Accessories[16].active)
  1118.                     {
  1119.                         if (Input.GetButton("RB"))
  1120.                         {
  1121.                             this.YandereTimer = this.YandereTimer + Time.deltaTime;
  1122.                             if (this.YandereTimer > 0.5f)
  1123.                             {
  1124.                                 if (this.Sans)
  1125.                                 {
  1126.                                     this.SansEyes[0].active = true;
  1127.                                     this.SansEyes[1].active = true;
  1128.                                     this.GlowEffect.Play();
  1129.                                     this.SummonBones = true;
  1130.                                     this.YandereTimer = (float)0;
  1131.                                     this.CanMove = false;
  1132.                                 }
  1133.                                 else
  1134.                                 {
  1135.                                     this.YandereVision = true;
  1136.                                 }
  1137.                             }
  1138.                         }
  1139.                         else if (this.YandereVision)
  1140.                         {
  1141.                             this.Obscurance.enabled = false;
  1142.                             this.YandereVision = false;
  1143.                         }
  1144.                         if (Input.GetButtonUp("RB"))
  1145.                         {
  1146.                             if (this.YandereTimer < 0.5f && !this.Dragging && !this.Carrying && !this.Laughing)
  1147.                             {
  1148.                                 if (this.Sans)
  1149.                                 {
  1150.                                     this.BlasterStage = this.BlasterStage + 1;
  1151.                                     if (this.BlasterStage > 5)
  1152.                                     {
  1153.                                         this.BlasterStage = 1;
  1154.                                     }
  1155.                                     GameObject gameObject2 = (GameObject)Object.Instantiate(this.BlasterSet[this.BlasterStage], this.transform.position, Quaternion.identity);
  1156.                                     gameObject2.transform.position = this.transform.position;
  1157.                                     gameObject2.transform.rotation = this.transform.rotation;
  1158.                                     AudioSource.PlayClipAtPoint(this.BlasterClip, this.transform.position + Vector3.up);
  1159.                                     this.CharacterAnimation["f02_sansBlaster_00"].time = (float)0;
  1160.                                     this.CharacterAnimation.Play("f02_sansBlaster_00");
  1161.                                     this.SansEyes[0].active = true;
  1162.                                     this.SansEyes[1].active = true;
  1163.                                     this.GlowEffect.Play();
  1164.                                     this.Blasting = true;
  1165.                                     this.CanMove = false;
  1166.                                 }
  1167.                                 else if (this.FalconHelmet.active || !this.Barcode.active)
  1168.                                 {
  1169.                                     if (!this.Punching)
  1170.                                     {
  1171.                                         if (!this.FalconHelmet.active)
  1172.                                         {
  1173.                                             AudioSource.PlayClipAtPoint(this.OnePunchVoice, this.transform.position + Vector3.up);
  1174.                                             this.CharacterAnimation["f02_punch_21"].time = (float)0;
  1175.                                             this.CharacterAnimation.CrossFade("f02_punch_21", 0.15f);
  1176.                                         }
  1177.                                         else
  1178.                                         {
  1179.                                             GameObject itemParent = (GameObject)Object.Instantiate(this.FalconWindUp);
  1180.                                             itemParent.transform.parent = this.ItemParent;
  1181.                                             itemParent.transform.localPosition = new Vector3((float)0, (float)0, (float)0);
  1182.                                             AudioSource.PlayClipAtPoint(this.FalconPunchVoice, this.transform.position + Vector3.up);
  1183.                                             this.CharacterAnimation["f02_falconPunch_00"].time = (float)0;
  1184.                                             this.CharacterAnimation.Play("f02_falconPunch_00");
  1185.                                             this.FalconSpeed = (float)0;
  1186.                                         }
  1187.                                         this.Punching = true;
  1188.                                         this.CanMove = false;
  1189.                                     }
  1190.                                 }
  1191.                                 else if (!this.Xtan)
  1192.                                 {
  1193.                                     if (!this.CirnoHair.active)
  1194.                                     {
  1195.                                         this.LaughAnim = "f02_laugh_01";
  1196.                                         this.LaughClip = this.Laugh1;
  1197.                                         this.LaughIntensity = this.LaughIntensity + (float)1;
  1198.                                         this.audio.clip = this.LaughClip;
  1199.                                         this.audio.time = (float)0;
  1200.                                         this.audio.Play();
  1201.                                     }
  1202.                                     Object.Instantiate(this.GiggleDisc, this.transform.position + Vector3.up, Quaternion.identity);
  1203.                                     this.audio.volume = (float)1;
  1204.                                     this.LaughTimer = 0.5f;
  1205.                                     this.Laughing = true;
  1206.                                     this.CanMove = false;
  1207.                                 }
  1208.                                 else if (!this.LongHair[0].gameObject.active)
  1209.                                 {
  1210.                                     this.LongHair[0].gameObject.active = true;
  1211.                                     this.SlenderHair[0].active = false;
  1212.                                     this.SlenderHair[1].active = false;
  1213.                                     this.BlackEyePatch.active = true;
  1214.                                 }
  1215.                                 else
  1216.                                 {
  1217.                                     this.LongHair[0].gameObject.active = false;
  1218.                                     this.SlenderHair[0].active = true;
  1219.                                     this.SlenderHair[1].active = true;
  1220.                                     this.BlackEyePatch.active = false;
  1221.                                 }
  1222.                             }
  1223.                             this.YandereTimer = (float)0;
  1224.                         }
  1225.                     }
  1226.                     if (!Input.GetButton("LB"))
  1227.                     {
  1228.                         if (this.Crouching || this.Crawling)
  1229.                         {
  1230.                             if (this.Crouching)
  1231.                             {
  1232.                                 if (Input.GetButton("RS") && !this.CameFromCrouch)
  1233.                                 {
  1234.                                     this.CrawlTimer = this.CrawlTimer + Time.deltaTime;
  1235.                                 }
  1236.                                 if (this.CrawlTimer > 0.5f)
  1237.                                 {
  1238.                                     this.EmptyHands();
  1239.                                     this.Obscurance.enabled = false;
  1240.                                     this.YandereVision = false;
  1241.                                     this.Crouching = false;
  1242.                                     this.Crawling = true;
  1243.                                     this.CrawlTimer = (float)0;
  1244.                                     this.Uncrouch();
  1245.                                 }
  1246.                                 else if (Input.GetButtonUp("RS") && !this.CrouchButtonDown && !this.CameFromCrouch)
  1247.                                 {
  1248.                                     this.Crouching = false;
  1249.                                     this.CrawlTimer = (float)0;
  1250.                                     this.Uncrouch();
  1251.                                 }
  1252.                             }
  1253.                             else if (Input.GetButtonDown("RS"))
  1254.                             {
  1255.                                 this.CameFromCrouch = true;
  1256.                                 this.Crouching = true;
  1257.                                 this.Crawling = false;
  1258.                                 this.Crouch();
  1259.                             }
  1260.                             if (Input.GetButtonUp("RS"))
  1261.                             {
  1262.                                 this.CrouchButtonDown = false;
  1263.                                 this.CameFromCrouch = false;
  1264.                                 this.CrawlTimer = (float)0;
  1265.                             }
  1266.                         }
  1267.                         else if (Input.GetButtonDown("RS"))
  1268.                         {
  1269.                             this.Obscurance.enabled = false;
  1270.                             this.CrouchButtonDown = true;
  1271.                             this.YandereVision = false;
  1272.                             this.Crouching = true;
  1273.                             this.Crouch();
  1274.                             this.EmptyHands();
  1275.                         }
  1276.                     }
  1277.                 }
  1278.                 if (this.Aiming)
  1279.                 {
  1280.                     this.CharacterAnimation["f02_cameraPose_00"].weight = Mathf.Lerp(this.CharacterAnimation["f02_cameraPose_00"].weight, (float)1, Time.deltaTime * (float)10);
  1281.                     if (this.ClubAccessories[7].active && (Input.GetAxis("DpadY") != (float)0 || Input.GetAxis("Mouse ScrollWheel") != (float)0))
  1282.                     {
  1283.                         this.Smartphone.fieldOfView = this.Smartphone.fieldOfView - Input.GetAxis("DpadY");
  1284.                         this.Smartphone.fieldOfView = this.Smartphone.fieldOfView - Input.GetAxis("Mouse ScrollWheel") * (float)10;
  1285.                         if (this.Smartphone.fieldOfView > (float)60)
  1286.                         {
  1287.                             this.Smartphone.fieldOfView = (float)60;
  1288.                         }
  1289.                         if (this.Smartphone.fieldOfView < (float)30)
  1290.                         {
  1291.                             this.Smartphone.fieldOfView = (float)30;
  1292.                         }
  1293.                     }
  1294.                     if (Input.GetAxis("RT") != (float)0 || Input.GetMouseButtonDown(0) || Input.GetButtonDown("RB"))
  1295.                     {
  1296.                         this.FixCamera();
  1297.                         this.PauseScreen.CorrectingTime = false;
  1298.                         Time.timeScale = (float)0;
  1299.                         this.CanMove = false;
  1300.                         this.Shutter.Snap();
  1301.                     }
  1302.                     if (Time.timeScale > (float)0 && (this.UsingController && Input.GetAxis("LT") < 0.5f || !this.UsingController && !Input.GetMouseButton(1)))
  1303.                     {
  1304.                         this.StopAiming();
  1305.                     }
  1306.                     if (!Input.GetKey("left alt"))
  1307.                     {
  1308.                         this.CinematicTimer = (float)0;
  1309.                     }
  1310.                     else if (!this.CinematicCamera.active)
  1311.                     {
  1312.                         if (this.CinematicTimer > (float)0)
  1313.                         {
  1314.                             this.CinematicCamera.transform.eulerAngles = this.Smartphone.transform.eulerAngles;
  1315.                             this.CinematicCamera.transform.position = this.Smartphone.transform.position;
  1316.                             this.CinematicCamera.active = true;
  1317.                             this.CinematicTimer = (float)0;
  1318.                             this.StopAiming();
  1319.                         }
  1320.                         this.CinematicTimer = this.CinematicTimer + (float)1;
  1321.                     }
  1322.                 }
  1323.                 if (this.Gloved)
  1324.                 {
  1325.                     if (this.InputDevice.Type == 1)
  1326.                     {
  1327.                         if (Input.GetAxis("DpadY") >= -0.5f)
  1328.                         {
  1329.                             this.GloveTimer = (float)0;
  1330.                         }
  1331.                         else
  1332.                         {
  1333.                             this.GloveTimer = this.GloveTimer + Time.deltaTime;
  1334.                             if (this.GloveTimer > 0.5f)
  1335.                             {
  1336.                                 this.CharacterAnimation.CrossFade("f02_removeGloves_00");
  1337.                                 this.Degloving = true;
  1338.                                 this.CanMove = false;
  1339.                             }
  1340.                         }
  1341.                     }
  1342.                     else if (!Input.GetKey("1"))
  1343.                     {
  1344.                         this.GloveTimer = (float)0;
  1345.                     }
  1346.                     else
  1347.                     {
  1348.                         this.GloveTimer = this.GloveTimer + Time.deltaTime;
  1349.                         if (this.GloveTimer > 0.1f)
  1350.                         {
  1351.                             this.CharacterAnimation.CrossFade("f02_removeGloves_00");
  1352.                             this.Degloving = true;
  1353.                             this.CanMove = false;
  1354.                         }
  1355.                     }
  1356.                 }
  1357.                 if (this.Weapon[1] != null && this.DropTimer[2] == (float)0)
  1358.                 {
  1359.                     if (this.InputDevice.Type == 1)
  1360.                     {
  1361.                         if (Input.GetAxis("DpadX") >= -0.5f)
  1362.                         {
  1363.                             this.DropTimer[1] = (float)0;
  1364.                         }
  1365.                         else
  1366.                         {
  1367.                             this.DropWeapon(1);
  1368.                         }
  1369.                     }
  1370.                     else if (!Input.GetKey("2"))
  1371.                     {
  1372.                         this.DropTimer[1] = (float)0;
  1373.                     }
  1374.                     else
  1375.                     {
  1376.                         this.DropWeapon(1);
  1377.                     }
  1378.                 }
  1379.                 if (this.Weapon[2] != null && this.DropTimer[1] == (float)0)
  1380.                 {
  1381.                     if (this.InputDevice.Type == 1)
  1382.                     {
  1383.                         if (Input.GetAxis("DpadX") <= 0.5f)
  1384.                         {
  1385.                             this.DropTimer[2] = (float)0;
  1386.                         }
  1387.                         else
  1388.                         {
  1389.                             this.DropWeapon(2);
  1390.                         }
  1391.                     }
  1392.                     else if (!Input.GetKey("3"))
  1393.                     {
  1394.                         this.DropTimer[2] = (float)0;
  1395.                     }
  1396.                     else
  1397.                     {
  1398.                         this.DropWeapon(2);
  1399.                     }
  1400.                 }
  1401.                 if (Input.GetButtonDown("LS") || Input.GetKeyDown("t"))
  1402.                 {
  1403.                     if (this.NewTrail != null)
  1404.                     {
  1405.                         Object.Destroy(this.NewTrail);
  1406.                     }
  1407.                     this.NewTrail = (GameObject)Object.Instantiate(this.Trail, (this.transform.position + (this.transform.forward * 0.5f)) + (Vector3.up * 0.1f), Quaternion.identity);
  1408.                     ((AIPath)this.NewTrail.GetComponent(typeof(AIPath))).target = this.Homeroom;
  1409.                 }
  1410.                 if (!this.Armed)
  1411.                 {
  1412.                     this.ID = 0;
  1413.                     while (this.ID < Extensions[this.ArmedAnims])
  1414.                     {
  1415.                         this.CharacterAnimation[this.ArmedAnims[this.ID]].weight = Mathf.Lerp(this.CharacterAnimation[this.ArmedAnims[this.ID]].weight, (float)0, Time.deltaTime * (float)10);
  1416.                         this.ID = this.ID + 1;
  1417.                     }
  1418.                 }
  1419.                 else
  1420.                 {
  1421.                     this.ID = 0;
  1422.                     while (this.ID < Extensions[this.ArmedAnims])
  1423.                     {
  1424.                         if (this.Weapon[this.Equipped].AnimID != this.ID)
  1425.                         {
  1426.                             this.CharacterAnimation[this.ArmedAnims[this.ID]].weight = Mathf.Lerp(this.CharacterAnimation[this.ArmedAnims[this.ID]].weight, (float)0, Time.deltaTime * (float)10);
  1427.                         }
  1428.                         else
  1429.                         {
  1430.                             this.CharacterAnimation[this.ArmedAnims[this.ID]].weight = Mathf.Lerp(this.CharacterAnimation[this.ArmedAnims[this.ID]].weight, (float)1, Time.deltaTime * (float)10);
  1431.                         }
  1432.                         this.ID = this.ID + 1;
  1433.                     }
  1434.                 }
  1435.             }
  1436.             if (!this.Laughing)
  1437.             {
  1438.                 this.audio.volume = this.audio.volume - Time.deltaTime * (float)2;
  1439.             }
  1440.             if (this.Mopping)
  1441.             {
  1442.                 this.CharacterAnimation["f02_mopping_00"].weight = Mathf.Lerp(this.CharacterAnimation["f02_mopping_00"].weight, (float)1, Time.deltaTime * (float)10);
  1443.                 if (Input.GetButtonUp("A") || Input.GetKeyDown("escape"))
  1444.                 {
  1445.                     this.Mopping = false;
  1446.                 }
  1447.             }
  1448.             else
  1449.             {
  1450.                 this.CharacterAnimation["f02_mopping_00"].weight = Mathf.Lerp(this.CharacterAnimation["f02_mopping_00"].weight, (float)0, Time.deltaTime * (float)10);
  1451.             }
  1452.             if (this.LaughIntensity < (float)10)
  1453.             {
  1454.                 this.ID = 0;
  1455.                 while (this.ID < Extensions[this.CarryAnims])
  1456.                 {
  1457.                     if (!(this.PickUp != null) || this.CarryAnimID != this.ID || this.Mopping || this.Dipping || this.Pouring || this.BucketDropping || this.Digging || this.Burying)
  1458.                     {
  1459.                         this.CharacterAnimation[this.CarryAnims[this.ID]].weight = Mathf.Lerp(this.CharacterAnimation[this.CarryAnims[this.ID]].weight, (float)0, Time.deltaTime * (float)10);
  1460.                     }
  1461.                     else
  1462.                     {
  1463.                         this.CharacterAnimation[this.CarryAnims[this.ID]].weight = Mathf.Lerp(this.CharacterAnimation[this.CarryAnims[this.ID]].weight, (float)1, Time.deltaTime * (float)10);
  1464.                     }
  1465.                     this.ID = this.ID + 1;
  1466.                 }
  1467.             }
  1468.             else if (this.Armed)
  1469.             {
  1470.                 this.CharacterAnimation["f02_mopCarry_00"].weight = Mathf.Lerp(this.CharacterAnimation["f02_mopCarry_00"].weight, (float)1, Time.deltaTime * (float)10);
  1471.             }
  1472.             if (this.Noticed && !this.Attacking)
  1473.             {
  1474.                 if (!this.Collapse)
  1475.                 {
  1476.                     this.CharacterAnimation.CrossFade("f02_scaredIdle_00");
  1477.                     this.targetRotation = Quaternion.LookRotation(this.Senpai.position - this.transform.position);
  1478.                     this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
  1479.                     int num4 = 0;
  1480.                     int num5 = num4;
  1481.                     Vector3 vector339 = this.transform.localEulerAngles;
  1482.                     Vector3 vector340 = vector339;
  1483.                     float single29 = (float)num5;
  1484.                     float single30 = single29;
  1485.                     vector340.x = single29;
  1486.                     Vector3 vector341 = vector340;
  1487.                     Vector3 vector342 = vector341;
  1488.                     this.transform.localEulerAngles = vector341;
  1489.                 }
  1490.                 else if (this.CharacterAnimation["f02_down_22"].time >= this.CharacterAnimation["f02_down_22"].length)
  1491.                 {
  1492.                     this.CharacterAnimation.CrossFade("f02_down_23");
  1493.                 }
  1494.             }
  1495.             if (!this.Attacking && !this.Lost && this.CanMove)
  1496.             {
  1497.                 if (Vector3.Distance(this.transform.position, this.Senpai.position) >= (float)2)
  1498.                 {
  1499.                     this.NearSenpai = false;
  1500.                 }
  1501.                 else if (!this.Talking)
  1502.                 {
  1503.                     if (!this.NearSenpai)
  1504.                     {
  1505.                         this.DepthOfField.focalSize = (float)150;
  1506.                         this.NearSenpai = true;
  1507.                     }
  1508.                     if (this.Laughing)
  1509.                     {
  1510.                         this.StopLaughing();
  1511.                     }
  1512.                     this.Obscurance.enabled = false;
  1513.                     this.YandereVision = false;
  1514.                     this.Crouching = false;
  1515.                     this.Crawling = false;
  1516.                     this.Mopping = false;
  1517.                     this.Uncrouch();
  1518.                     this.YandereTimer = (float)0;
  1519.                     this.EmptyHands();
  1520.                     if (this.Aiming)
  1521.                     {
  1522.                         this.StopAiming();
  1523.                     }
  1524.                 }
  1525.             }
  1526.             if (this.NearSenpai && !this.Noticed)
  1527.             {
  1528.                 this.DepthOfField.enabled = true;
  1529.                 this.DepthOfField.focalSize = Mathf.Lerp(this.DepthOfField.focalSize, (float)0, Time.deltaTime * (float)10);
  1530.                 this.DepthOfField.focalZStartCurve = Mathf.Lerp(this.DepthOfField.focalZStartCurve, (float)20, Time.deltaTime * (float)10);
  1531.                 this.DepthOfField.focalZEndCurve = Mathf.Lerp(this.DepthOfField.focalZEndCurve, (float)20, Time.deltaTime * (float)10);
  1532.                 this.DepthOfField.objectFocus = this.Senpai.transform;
  1533.                 this.ColorCorrection.enabled = true;
  1534.                 this.SenpaiFade = Mathf.Lerp(this.SenpaiFade, (float)0, Time.deltaTime * (float)10);
  1535.                 this.SenpaiTint = (float)1 - this.SenpaiFade / (float)100;
  1536.                 this.ColorCorrection.redChannel.MoveKey(1, new Keyframe(0.5f, 0.5f + this.SenpaiTint * 0.5f));
  1537.                 this.ColorCorrection.greenChannel.MoveKey(1, new Keyframe(0.5f, 0.5f - this.SenpaiTint * 0.5f));
  1538.                 this.ColorCorrection.blueChannel.MoveKey(1, new Keyframe(0.5f, 0.5f + this.SenpaiTint * 0.5f));
  1539.                 this.ColorCorrection.redChannel.SmoothTangents(1, (float)0);
  1540.                 this.ColorCorrection.greenChannel.SmoothTangents(1, (float)0);
  1541.                 this.ColorCorrection.blueChannel.SmoothTangents(1, (float)0);
  1542.                 this.ColorCorrection.UpdateTextures();
  1543.                 if (!this.Attacking)
  1544.                 {
  1545.                     this.CharacterAnimation["f02_shy_00"].weight = this.SenpaiTint;
  1546.                 }
  1547.                 this.HeartBeat.volume = this.SenpaiTint;
  1548.                 this.Sanity = this.Sanity + Time.deltaTime * (float)10;
  1549.                 this.UpdateSanity();
  1550.             }
  1551.             else if (this.SenpaiFade < (float)99)
  1552.             {
  1553.                 this.DepthOfField.focalSize = Mathf.Lerp(this.DepthOfField.focalSize, (float)150, Time.deltaTime * (float)10);
  1554.                 this.DepthOfField.focalZStartCurve = Mathf.Lerp(this.DepthOfField.focalZStartCurve, (float)0, Time.deltaTime * (float)10);
  1555.                 this.DepthOfField.focalZEndCurve = Mathf.Lerp(this.DepthOfField.focalZEndCurve, (float)0, Time.deltaTime * (float)10);
  1556.                 this.SenpaiFade = Mathf.Lerp(this.SenpaiFade, (float)100, Time.deltaTime * (float)10);
  1557.                 this.SenpaiTint = this.SenpaiFade / (float)100;
  1558.                 this.ColorCorrection.redChannel.MoveKey(1, new Keyframe(0.5f, (float)1 - this.SenpaiTint * 0.5f));
  1559.                 this.ColorCorrection.greenChannel.MoveKey(1, new Keyframe(0.5f, this.SenpaiTint * 0.5f));
  1560.                 this.ColorCorrection.blueChannel.MoveKey(1, new Keyframe(0.5f, (float)1 - this.SenpaiTint * 0.5f));
  1561.                 this.ColorCorrection.redChannel.SmoothTangents(1, (float)0);
  1562.                 this.ColorCorrection.greenChannel.SmoothTangents(1, (float)0);
  1563.                 this.ColorCorrection.blueChannel.SmoothTangents(1, (float)0);
  1564.                 this.ColorCorrection.UpdateTextures();
  1565.                 this.CharacterAnimation["f02_shy_00"].weight = (float)1 - this.SenpaiTint;
  1566.                 this.HeartBeat.volume = (float)1 - this.SenpaiTint;
  1567.             }
  1568.             else if (this.SenpaiFade < (float)100)
  1569.             {
  1570.                 this.ResetSenpaiEffects();
  1571.             }
  1572.             if (!this.YandereVision)
  1573.             {
  1574.                 if (this.HighlightingR.enabled)
  1575.                 {
  1576.                     this.HighlightingR.enabled = false;
  1577.                     this.HighlightingB.enabled = false;
  1578.                 }
  1579.                 if (this.YandereFade < (float)99)
  1580.                 {
  1581.                     if (!this.Aiming)
  1582.                     {
  1583.                         Time.timeScale = Mathf.Lerp(Time.timeScale, (float)1, 0.166666672f);
  1584.                     }
  1585.                     this.YandereFade = Mathf.Lerp(this.YandereFade, (float)100, Time.deltaTime * (float)10);
  1586.                     this.YandereTint = this.YandereFade / (float)100;
  1587.                     this.YandereColorCorrection.redChannel.MoveKey(1, new Keyframe(0.5f, this.YandereTint * 0.5f));
  1588.                     this.YandereColorCorrection.greenChannel.MoveKey(1, new Keyframe(0.5f, this.YandereTint * 0.5f));
  1589.                     this.YandereColorCorrection.blueChannel.MoveKey(1, new Keyframe(0.5f, (float)1 - this.YandereTint * 0.5f));
  1590.                     this.YandereColorCorrection.redChannel.SmoothTangents(1, (float)0);
  1591.                     this.YandereColorCorrection.greenChannel.SmoothTangents(1, (float)0);
  1592.                     this.YandereColorCorrection.blueChannel.SmoothTangents(1, (float)0);
  1593.                     this.YandereColorCorrection.UpdateTextures();
  1594.                     this.Vignette.intensity = Mathf.Lerp(this.Vignette.intensity, (float)0, Time.deltaTime * (float)10);
  1595.                     this.Vignette.blur = Mathf.Lerp(this.Vignette.blur, (float)0, Time.deltaTime * (float)10);
  1596.                     this.Vignette.chromaticAberration = Mathf.Lerp(this.Vignette.chromaticAberration, (float)0, Time.deltaTime * (float)10);
  1597.                 }
  1598.                 else if (this.YandereFade < (float)100)
  1599.                 {
  1600.                     this.ResetYandereEffects();
  1601.                 }
  1602.             }
  1603.             else
  1604.             {
  1605.                 if (!this.HighlightingR.enabled)
  1606.                 {
  1607.                     this.YandereColorCorrection.enabled = true;
  1608.                     this.HighlightingR.enabled = true;
  1609.                     this.HighlightingB.enabled = true;
  1610.                     this.Obscurance.enabled = true;
  1611.                     this.Vignette.enabled = true;
  1612.                 }
  1613.                 Time.timeScale = Mathf.Lerp(Time.timeScale, 0.5f, 0.166666672f);
  1614.                 this.YandereFade = Mathf.Lerp(this.YandereFade, (float)0, Time.deltaTime * (float)10);
  1615.                 this.YandereTint = (float)1 - this.YandereFade / (float)100;
  1616.                 this.YandereColorCorrection.redChannel.MoveKey(1, new Keyframe(0.5f, 0.5f - this.YandereTint * 0.25f));
  1617.                 this.YandereColorCorrection.greenChannel.MoveKey(1, new Keyframe(0.5f, 0.5f - this.YandereTint * 0.25f));
  1618.                 this.YandereColorCorrection.blueChannel.MoveKey(1, new Keyframe(0.5f, 0.5f + this.YandereTint * 0.25f));
  1619.                 this.YandereColorCorrection.redChannel.SmoothTangents(1, (float)0);
  1620.                 this.YandereColorCorrection.greenChannel.SmoothTangents(1, (float)0);
  1621.                 this.YandereColorCorrection.blueChannel.SmoothTangents(1, (float)0);
  1622.                 this.YandereColorCorrection.UpdateTextures();
  1623.                 this.Vignette.intensity = Mathf.Lerp(this.Vignette.intensity, this.YandereTint * (float)5, Time.deltaTime * (float)10);
  1624.                 this.Vignette.blur = Mathf.Lerp(this.Vignette.blur, this.YandereTint, Time.deltaTime * (float)10);
  1625.                 this.Vignette.chromaticAberration = Mathf.Lerp(this.Vignette.chromaticAberration, this.YandereTint * (float)5, Time.deltaTime * (float)10);
  1626.             }
  1627.             float yandereFade = (float)1 - this.YandereFade / (float)100;
  1628.             float single31 = yandereFade;
  1629.             Color rightRedEye = this.RightRedEye.material.color;
  1630.             Color color = rightRedEye;
  1631.             float single32 = single31;
  1632.             float single33 = single32;
  1633.             color.a = single32;
  1634.             Color color1 = color;
  1635.             Color color2 = color1;
  1636.             this.RightRedEye.material.color = color1;
  1637.             float yandereFade1 = (float)1 - this.YandereFade / (float)100;
  1638.             float single34 = yandereFade1;
  1639.             Color leftRedEye = this.LeftRedEye.material.color;
  1640.             Color color3 = leftRedEye;
  1641.             float single35 = single34;
  1642.             float single36 = single35;
  1643.             color3.a = single35;
  1644.             Color color4 = color3;
  1645.             Color color5 = color4;
  1646.             this.LeftRedEye.material.color = color4;
  1647.             float yandereFade2 = this.YandereFade / (float)100;
  1648.             float single37 = yandereFade2;
  1649.             Color rightYandereEye = this.RightYandereEye.material.color;
  1650.             Color color6 = rightYandereEye;
  1651.             float single38 = single37;
  1652.             float single39 = single38;
  1653.             color6.g = single38;
  1654.             Color color7 = color6;
  1655.             Color color8 = color7;
  1656.             this.RightYandereEye.material.color = color7;
  1657.             float yandereFade3 = this.YandereFade / (float)100;
  1658.             float single40 = yandereFade3;
  1659.             Color rightYandereEye1 = this.RightYandereEye.material.color;
  1660.             Color color9 = rightYandereEye1;
  1661.             float single41 = single40;
  1662.             float single42 = single41;
  1663.             color9.b = single41;
  1664.             Color color10 = color9;
  1665.             Color color11 = color10;
  1666.             this.RightYandereEye.material.color = color10;
  1667.             float yandereFade4 = this.YandereFade / (float)100;
  1668.             float single43 = yandereFade4;
  1669.             Color leftYandereEye = this.LeftYandereEye.material.color;
  1670.             Color color12 = leftYandereEye;
  1671.             float single44 = single43;
  1672.             float single45 = single44;
  1673.             color12.g = single44;
  1674.             Color color13 = color12;
  1675.             Color color14 = color13;
  1676.             this.LeftYandereEye.material.color = color13;
  1677.             float yandereFade5 = this.YandereFade / (float)100;
  1678.             float single46 = yandereFade5;
  1679.             Color leftYandereEye1 = this.LeftYandereEye.material.color;
  1680.             Color color15 = leftYandereEye1;
  1681.             float single47 = single46;
  1682.             float single48 = single47;
  1683.             color15.b = single47;
  1684.             Color color16 = color15;
  1685.             Color color17 = color16;
  1686.             this.LeftYandereEye.material.color = color16;
  1687.             if (this.Talking)
  1688.             {
  1689.                 if (this.TargetStudent != null)
  1690.                 {
  1691.                     float targetStudent = this.TargetStudent.transform.position.x;
  1692.                     float single49 = this.transform.position.y;
  1693.                     Vector3 targetStudent1 = this.TargetStudent.transform.position;
  1694.                     this.targetRotation = Quaternion.LookRotation(new Vector3(targetStudent, single49, targetStudent1.z) - this.transform.position);
  1695.                     this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
  1696.                 }
  1697.                 if (this.Interaction == 0)
  1698.                 {
  1699.                     this.CharacterAnimation.CrossFade(this.IdleAnim);
  1700.                 }
  1701.                 else if (this.Interaction == 1)
  1702.                 {
  1703.                     if (this.TalkTimer != (float)3)
  1704.                     {
  1705.                         if (Input.GetButtonDown("A"))
  1706.                         {
  1707.                             this.TalkTimer = (float)0;
  1708.                         }
  1709.                         if (this.CharacterAnimation["f02_greet_00"].time >= this.CharacterAnimation["f02_greet_00"].length)
  1710.                         {
  1711.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  1712.                         }
  1713.                         if (this.TalkTimer <= (float)0)
  1714.                         {
  1715.                             this.TargetStudent.Interaction = 1;
  1716.                             this.TargetStudent.TalkTimer = (float)3;
  1717.                             this.Interaction = 0;
  1718.                         }
  1719.                     }
  1720.                     else
  1721.                     {
  1722.                         this.CharacterAnimation.CrossFade("f02_greet_00");
  1723.                         if (this.TargetStudent.Witnessed == "Insanity" || this.TargetStudent.Witnessed == "Weapon and Blood and Insanity" || this.TargetStudent.Witnessed == "Weapon and Insanity" || this.TargetStudent.Witnessed == "Blood and Insanity")
  1724.                         {
  1725.                             this.Subtitle.UpdateLabel("Insanity Apology", 0, (float)3);
  1726.                         }
  1727.                         else if (this.TargetStudent.Witnessed == "Weapon and Blood")
  1728.                         {
  1729.                             this.Subtitle.UpdateLabel("Weapon and Blood Apology", 0, (float)3);
  1730.                         }
  1731.                         else if (this.TargetStudent.Witnessed == "Weapon")
  1732.                         {
  1733.                             this.Subtitle.UpdateLabel("Weapon Apology", 0, (float)3);
  1734.                         }
  1735.                         else if (this.TargetStudent.Witnessed == "Blood")
  1736.                         {
  1737.                             this.Subtitle.UpdateLabel("Blood Apology", 0, (float)3);
  1738.                         }
  1739.                         else if (this.TargetStudent.Witnessed == "Lewd")
  1740.                         {
  1741.                             this.Subtitle.UpdateLabel("Lewd Apology", 0, (float)3);
  1742.                         }
  1743.                         else if (this.TargetStudent.Witnessed == "Accident")
  1744.                         {
  1745.                             this.Subtitle.UpdateLabel("Accident Apology", 0, (float)3);
  1746.                         }
  1747.                     }
  1748.                     this.TalkTimer = this.TalkTimer - Time.deltaTime;
  1749.                 }
  1750.                 else if (this.Interaction == 2)
  1751.                 {
  1752.                     if (this.TalkTimer != (float)3)
  1753.                     {
  1754.                         if (Input.GetButtonDown("A"))
  1755.                         {
  1756.                             this.TalkTimer = (float)0;
  1757.                         }
  1758.                         if (this.CharacterAnimation["f02_greet_01"].time >= this.CharacterAnimation["f02_greet_01"].length)
  1759.                         {
  1760.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  1761.                         }
  1762.                         if (this.TalkTimer <= (float)0)
  1763.                         {
  1764.                             this.TargetStudent.Interaction = 2;
  1765.                             this.TargetStudent.TalkTimer = (float)3;
  1766.                             this.Interaction = 0;
  1767.                         }
  1768.                     }
  1769.                     else
  1770.                     {
  1771.                         this.CharacterAnimation.CrossFade("f02_greet_01");
  1772.                         this.Subtitle.UpdateLabel("Player Compliment", 0, (float)3);
  1773.                     }
  1774.                     this.TalkTimer = this.TalkTimer - Time.deltaTime;
  1775.                 }
  1776.                 else if (this.Interaction == 3)
  1777.                 {
  1778.                     if (this.TalkTimer != (float)3)
  1779.                     {
  1780.                         if (Input.GetButtonDown("A"))
  1781.                         {
  1782.                             this.TalkTimer = (float)0;
  1783.                         }
  1784.                         if (this.CharacterAnimation["f02_lookdown_00"].time >= this.CharacterAnimation["f02_lookdown_00"].length)
  1785.                         {
  1786.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  1787.                         }
  1788.                         if (this.TalkTimer <= (float)0)
  1789.                         {
  1790.                             this.TargetStudent.Interaction = 3;
  1791.                             this.TargetStudent.TalkTimer = (float)3;
  1792.                             this.Interaction = 0;
  1793.                         }
  1794.                     }
  1795.                     else
  1796.                     {
  1797.                         this.CharacterAnimation.CrossFade("f02_lookdown_00");
  1798.                         this.Subtitle.UpdateLabel("Player Gossip", 0, (float)3);
  1799.                     }
  1800.                     this.TalkTimer = this.TalkTimer - Time.deltaTime;
  1801.                 }
  1802.                 else if (this.Interaction == 4)
  1803.                 {
  1804.                     if (this.TalkTimer != (float)2)
  1805.                     {
  1806.                         if (Input.GetButtonDown("A"))
  1807.                         {
  1808.                             this.TalkTimer = (float)0;
  1809.                         }
  1810.                         if (this.CharacterAnimation["f02_greet_00"].time >= this.CharacterAnimation["f02_greet_00"].length)
  1811.                         {
  1812.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  1813.                         }
  1814.                         if (this.TalkTimer <= (float)0)
  1815.                         {
  1816.                             this.TargetStudent.Interaction = 4;
  1817.                             this.TargetStudent.TalkTimer = (float)2;
  1818.                             this.Interaction = 0;
  1819.                         }
  1820.                     }
  1821.                     else
  1822.                     {
  1823.                         this.CharacterAnimation.CrossFade("f02_greet_00");
  1824.                         this.Subtitle.UpdateLabel("Player Farewell", 0, (float)2);
  1825.                     }
  1826.                     this.TalkTimer = this.TalkTimer - Time.deltaTime;
  1827.                 }
  1828.                 else if (this.Interaction == 6)
  1829.                 {
  1830.                     if (this.TalkTimer != (float)3)
  1831.                     {
  1832.                         if (Input.GetButtonDown("A"))
  1833.                         {
  1834.                             this.TalkTimer = (float)0;
  1835.                         }
  1836.                         if (this.CharacterAnimation["f02_greet_01"].time >= this.CharacterAnimation["f02_greet_01"].length)
  1837.                         {
  1838.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  1839.                         }
  1840.                         if (this.TalkTimer <= (float)0)
  1841.                         {
  1842.                             this.TargetStudent.Interaction = 6;
  1843.                             this.TargetStudent.TalkTimer = (float)2;
  1844.                             this.Interaction = 0;
  1845.                         }
  1846.                     }
  1847.                     else
  1848.                     {
  1849.                         this.CharacterAnimation.CrossFade("f02_greet_01");
  1850.                         this.Subtitle.UpdateLabel("Player Follow", 0, (float)3);
  1851.                     }
  1852.                     this.TalkTimer = this.TalkTimer - Time.deltaTime;
  1853.                 }
  1854.                 else if (this.Interaction == 7)
  1855.                 {
  1856.                     if (this.TalkTimer != (float)3)
  1857.                     {
  1858.                         if (Input.GetButtonDown("A"))
  1859.                         {
  1860.                             this.TalkTimer = (float)0;
  1861.                         }
  1862.                         if (this.CharacterAnimation["f02_lookdown_00"].time >= this.CharacterAnimation["f02_lookdown_00"].length)
  1863.                         {
  1864.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  1865.                         }
  1866.                         if (this.TalkTimer <= (float)0)
  1867.                         {
  1868.                             this.TargetStudent.Interaction = 7;
  1869.                             this.TargetStudent.TalkTimer = (float)3;
  1870.                             this.Interaction = 0;
  1871.                         }
  1872.                     }
  1873.                     else
  1874.                     {
  1875.                         this.CharacterAnimation.CrossFade("f02_lookdown_00");
  1876.                         this.Subtitle.UpdateLabel("Player Leave", 0, (float)3);
  1877.                     }
  1878.                     this.TalkTimer = this.TalkTimer - Time.deltaTime;
  1879.                 }
  1880.                 else if (this.Interaction == 8)
  1881.                 {
  1882.                     if (this.TalkTimer != (float)3)
  1883.                     {
  1884.                         if (Input.GetButtonDown("A"))
  1885.                         {
  1886.                             this.TalkTimer = (float)0;
  1887.                         }
  1888.                         if (this.CharacterAnimation["f02_lookdown_00"].time >= this.CharacterAnimation["f02_lookdown_00"].length)
  1889.                         {
  1890.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  1891.                         }
  1892.                         if (this.TalkTimer <= (float)0)
  1893.                         {
  1894.                             this.TargetStudent.Interaction = 8;
  1895.                             this.TargetStudent.TalkTimer = (float)3;
  1896.                             this.Interaction = 0;
  1897.                         }
  1898.                     }
  1899.                     else
  1900.                     {
  1901.                         this.CharacterAnimation.CrossFade("f02_lookdown_00");
  1902.                         this.Subtitle.UpdateLabel("Player Distract", 0, (float)3);
  1903.                     }
  1904.                     this.TalkTimer = this.TalkTimer - Time.deltaTime;
  1905.                 }
  1906.                 else if (this.Interaction == 17)
  1907.                 {
  1908.                     if (this.TalkTimer != (float)3)
  1909.                     {
  1910.                         if (Input.GetButtonDown("A"))
  1911.                         {
  1912.                             this.TalkTimer = (float)0;
  1913.                         }
  1914.                         if (this.CharacterAnimation["f02_greet_01"].time >= this.CharacterAnimation["f02_greet_01"].length)
  1915.                         {
  1916.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  1917.                         }
  1918.                         if (this.TalkTimer <= (float)0)
  1919.                         {
  1920.                             this.TargetStudent.Interaction = 17;
  1921.                             this.TargetStudent.TalkTimer = (float)3;
  1922.                             this.Interaction = 0;
  1923.                         }
  1924.                     }
  1925.                     else
  1926.                     {
  1927.                         this.CharacterAnimation.CrossFade("f02_greet_01");
  1928.                         this.Subtitle.UpdateLabel("Player Love", 0, (float)3);
  1929.                     }
  1930.                     this.TalkTimer = this.TalkTimer - Time.deltaTime;
  1931.                 }
  1932.                 else if (this.Interaction == 18)
  1933.                 {
  1934.                     if (this.TalkTimer != (float)3)
  1935.                     {
  1936.                         if (Input.GetButtonDown("A"))
  1937.                         {
  1938.                             this.TalkTimer = (float)0;
  1939.                         }
  1940.                         if (this.CharacterAnimation["f02_greet_01"].time >= this.CharacterAnimation["f02_greet_01"].length)
  1941.                         {
  1942.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  1943.                         }
  1944.                         if (this.TalkTimer <= (float)0)
  1945.                         {
  1946.                             this.TargetStudent.Interaction = 18;
  1947.                             this.TargetStudent.TalkTimer = (float)3;
  1948.                             this.Interaction = 0;
  1949.                         }
  1950.                     }
  1951.                     else
  1952.                     {
  1953.                         this.CharacterAnimation.CrossFade("f02_greet_01");
  1954.                         this.Subtitle.UpdateLabel("Player Love", 2, (float)3);
  1955.                     }
  1956.                     this.TalkTimer = this.TalkTimer - Time.deltaTime;
  1957.                 }
  1958.                 else if (this.Interaction == 19)
  1959.                 {
  1960.                     if (this.TalkTimer != (float)5)
  1961.                     {
  1962.                         if (Input.GetButtonDown("A"))
  1963.                         {
  1964.                             this.TalkTimer = (float)0;
  1965.                         }
  1966.                         if (this.CharacterAnimation["f02_greet_01"].time >= this.CharacterAnimation["f02_greet_01"].length)
  1967.                         {
  1968.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  1969.                         }
  1970.                         if (this.TalkTimer <= (float)0)
  1971.                         {
  1972.                             this.TargetStudent.Interaction = 19;
  1973.                             this.TargetStudent.TalkTimer = (float)3;
  1974.                             this.Interaction = 0;
  1975.                         }
  1976.                     }
  1977.                     else
  1978.                     {
  1979.                         this.CharacterAnimation.CrossFade("f02_greet_01");
  1980.                         if (this.TargetStudent.Male)
  1981.                         {
  1982.                             this.Subtitle.UpdateLabel("Player Love", 4, (float)5);
  1983.                         }
  1984.                         else
  1985.                         {
  1986.                             this.Subtitle.UpdateLabel("Player Love", 3, (float)5);
  1987.                         }
  1988.                     }
  1989.                     this.TalkTimer = this.TalkTimer - Time.deltaTime;
  1990.                 }
  1991.                 else if (this.Interaction == 20)
  1992.                 {
  1993.                     if (this.TalkTimer != (float)5)
  1994.                     {
  1995.                         if (Input.GetButtonDown("A"))
  1996.                         {
  1997.                             this.TalkTimer = (float)0;
  1998.                         }
  1999.                         if (this.CharacterAnimation["f02_greet_01"].time >= this.CharacterAnimation["f02_greet_01"].length)
  2000.                         {
  2001.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  2002.                         }
  2003.                         if (this.TalkTimer <= (float)0)
  2004.                         {
  2005.                             this.TargetStudent.Interaction = 20;
  2006.                             this.TargetStudent.TalkTimer = (float)5;
  2007.                             this.Interaction = 0;
  2008.                         }
  2009.                     }
  2010.                     else
  2011.                     {
  2012.                         this.CharacterAnimation.CrossFade("f02_greet_01");
  2013.                         this.Subtitle.UpdateLabel("Player Love", 5, (float)5);
  2014.                     }
  2015.                     this.TalkTimer = this.TalkTimer - Time.deltaTime;
  2016.                 }
  2017.             }
  2018.             if (this.Attacking)
  2019.             {
  2020.                 if (this.TargetStudent != null)
  2021.                 {
  2022.                     float targetStudent2 = this.TargetStudent.transform.position.x;
  2023.                     float single50 = this.transform.position.y;
  2024.                     Vector3 targetStudent3 = this.TargetStudent.transform.position;
  2025.                     this.targetRotation = Quaternion.LookRotation(new Vector3(targetStudent2, single50, targetStudent3.z) - this.transform.position);
  2026.                     this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
  2027.                 }
  2028.                 if (this.Drown)
  2029.                 {
  2030.                     this.MoveTowardsTarget(this.TargetStudent.transform.position + (this.TargetStudent.transform.forward * -0.0001f));
  2031.                     this.CharacterAnimation.CrossFade(this.DrownAnim);
  2032.                     if (this.CharacterAnimation[this.DrownAnim].time > this.CharacterAnimation[this.DrownAnim].length)
  2033.                     {
  2034.                         this.TargetStudent.Dead = true;
  2035.                         this.Attacking = false;
  2036.                         this.CanMove = true;
  2037.                         this.Drown = false;
  2038.                         if (PlayerPrefs.GetInt("PantiesEquipped") != 10)
  2039.                         {
  2040.                             this.Sanity = this.Sanity - (float)20 * this.Numbness;
  2041.                         }
  2042.                         else
  2043.                         {
  2044.                             this.Sanity = this.Sanity - (float)10 * this.Numbness;
  2045.                         }
  2046.                     }
  2047.                 }
  2048.                 else if (this.RoofPush)
  2049.                 {
  2050.                     Transform transforms1 = this.CameraTarget;
  2051.                     Vector3 cameraTarget3 = this.CameraTarget.position;
  2052.                     float hips6 = this.Hips.position.x;
  2053.                     float single51 = this.transform.position.y + (float)1;
  2054.                     Vector3 hips7 = this.Hips.position;
  2055.                     transforms1.position = Vector3.MoveTowards(cameraTarget3, new Vector3(hips6, single51, hips7.z), Time.deltaTime * (float)10);
  2056.                     this.MoveTowardsTarget(this.TargetStudent.transform.position + (this.TargetStudent.transform.forward * (float)-1));
  2057.                     this.CharacterAnimation.CrossFade("f02_roofPushA_00");
  2058.                     if (this.CharacterAnimation["f02_roofPushA_00"].time > 4.33333349f)
  2059.                     {
  2060.                         if (this.Shoes[0].active)
  2061.                         {
  2062.                             GameObject gameObject3 = (GameObject)Object.Instantiate(this.ShoePair, this.transform.position + new Vector3(-1.6f, 0.045f, (float)0), Quaternion.identity);
  2063.                             int num6 = -90;
  2064.                             int num7 = num6;
  2065.                             Vector3 vector343 = gameObject3.transform.eulerAngles;
  2066.                             Vector3 vector344 = vector343;
  2067.                             float single52 = (float)num7;
  2068.                             float single53 = single52;
  2069.                             vector344.y = single52;
  2070.                             Vector3 vector345 = vector344;
  2071.                             Vector3 vector346 = vector345;
  2072.                             gameObject3.transform.eulerAngles = vector345;
  2073.                             this.Shoes[0].active = false;
  2074.                             this.Shoes[1].active = false;
  2075.                         }
  2076.                     }
  2077.                     else if (this.CharacterAnimation["f02_roofPushA_00"].time > 2.16666675f && !this.Shoes[0].active)
  2078.                     {
  2079.                         this.TargetStudent.RemoveShoes();
  2080.                         this.Shoes[0].active = true;
  2081.                         this.Shoes[1].active = true;
  2082.                     }
  2083.                     if (this.CharacterAnimation["f02_roofPushA_00"].time > this.CharacterAnimation["f02_roofPushA_00"].length)
  2084.                     {
  2085.                         this.CameraTarget.localPosition = new Vector3((float)0, (float)1, (float)0);
  2086.                         this.TargetStudent.Dead = true;
  2087.                         this.Attacking = false;
  2088.                         this.RoofPush = false;
  2089.                         this.CanMove = true;
  2090.                         this.Sanity = this.Sanity - (float)20 * this.Numbness;
  2091.                     }
  2092.                     if (Input.GetButtonDown("B"))
  2093.                     {
  2094.                         this.SplashCamera.Show = true;
  2095.                         this.SplashCamera.MyCamera.enabled = true;
  2096.                         this.SplashCamera.transform.position = new Vector3((float)-33, 1.35f, (float)30);
  2097.                         this.SplashCamera.transform.eulerAngles = new Vector3((float)0, (float)135, (float)0);
  2098.                     }
  2099.                 }
  2100.                 else if (this.TargetStudent.Teacher)
  2101.                 {
  2102.                     this.CharacterAnimation.CrossFade("f02_counterA_00");
  2103.                     float targetStudent4 = this.TargetStudent.transform.position.y;
  2104.                     float single54 = targetStudent4;
  2105.                     Vector3 character = this.Character.transform.position;
  2106.                     Vector3 vector347 = character;
  2107.                     float single55 = single54;
  2108.                     float single56 = single55;
  2109.                     vector347.y = single55;
  2110.                     Vector3 vector348 = vector347;
  2111.                     Vector3 vector349 = vector348;
  2112.                     this.Character.transform.position = vector348;
  2113.                 }
  2114.                 else if (!this.SanityBased)
  2115.                 {
  2116.                     if (this.Weapon[this.Equipped].WeaponID == 11)
  2117.                     {
  2118.                         this.CharacterAnimation.CrossFade("CyborgNinja_Slash");
  2119.                         if (this.CharacterAnimation["CyborgNinja_Slash"].time == (float)0)
  2120.                         {
  2121.                             this.TargetStudent.CharacterAnimation[this.TargetStudent.PhoneAnim].weight = (float)0;
  2122.                             this.Weapon[this.Equipped].gameObject.audio.Play();
  2123.                         }
  2124.                         if (this.CharacterAnimation["CyborgNinja_Slash"].time >= this.CharacterAnimation["CyborgNinja_Slash"].length)
  2125.                         {
  2126.                             this.Bloodiness = this.Bloodiness + (float)20;
  2127.                             this.UpdateBlood();
  2128.                             this.StainWeapon();
  2129.                             this.CharacterAnimation["CyborgNinja_Slash"].time = (float)0;
  2130.                             this.CharacterAnimation.Stop("CyborgNinja_Slash");
  2131.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  2132.                             this.Attacking = false;
  2133.                             if (this.Noticed)
  2134.                             {
  2135.                                 this.Weapon[this.Equipped].Drop();
  2136.                             }
  2137.                             else
  2138.                             {
  2139.                                 this.CanMove = true;
  2140.                             }
  2141.                         }
  2142.                     }
  2143.                     else if (this.Weapon[this.Equipped].WeaponID == 7)
  2144.                     {
  2145.                         this.CharacterAnimation.CrossFade("f02_buzzSawKill_A_00");
  2146.                         if (this.CharacterAnimation["f02_buzzSawKill_A_00"].time == (float)0)
  2147.                         {
  2148.                             this.TargetStudent.CharacterAnimation[this.TargetStudent.PhoneAnim].weight = (float)0;
  2149.                             this.Weapon[this.Equipped].gameObject.audio.Play();
  2150.                         }
  2151.                         if (this.AttackPhase == 1)
  2152.                         {
  2153.                             if (this.CharacterAnimation["f02_buzzSawKill_A_00"].time > 0.33333f)
  2154.                             {
  2155.                                 this.TargetStudent.LiquidProjector.enabled = true;
  2156.                                 this.Weapon[this.Equipped].Effect();
  2157.                                 this.StainWeapon();
  2158.                                 this.TargetStudent.LiquidProjector.material.mainTexture = this.BloodTextures[1];
  2159.                                 this.Bloodiness = this.Bloodiness + (float)20;
  2160.                                 this.UpdateBlood();
  2161.                                 this.AttackPhase = this.AttackPhase + 1;
  2162.                             }
  2163.                         }
  2164.                         else if (this.AttackPhase < 6 && this.CharacterAnimation["f02_buzzSawKill_A_00"].time > 0.33333f * (float)this.AttackPhase)
  2165.                         {
  2166.                             this.TargetStudent.LiquidProjector.material.mainTexture = this.BloodTextures[this.AttackPhase];
  2167.                             this.Bloodiness = this.Bloodiness + (float)20;
  2168.                             this.UpdateBlood();
  2169.                             this.AttackPhase = this.AttackPhase + 1;
  2170.                         }
  2171.                         if (this.CharacterAnimation["f02_buzzSawKill_A_00"].time > this.CharacterAnimation["f02_buzzSawKill_A_00"].length)
  2172.                         {
  2173.                             if (this.TargetStudent == this.StudentManager.Reporter)
  2174.                             {
  2175.                                 this.StudentManager.Reporter = null;
  2176.                             }
  2177.                             this.CharacterAnimation["f02_buzzSawKill_A_00"].time = (float)0;
  2178.                             this.CharacterAnimation.Stop("f02_buzzSawKill_A_00");
  2179.                             this.CharacterAnimation.CrossFade(this.IdleAnim);
  2180.                             this.MyController.radius = 0.2f;
  2181.                             this.Attacking = false;
  2182.                             this.AttackPhase = 1;
  2183.                             this.Sanity = this.Sanity - (float)20 * this.Numbness;
  2184.                             this.UpdateSanity();
  2185.                             this.TargetStudent.Dead = true;
  2186.                             this.TargetStudent.BecomeRagdoll();
  2187.                             if (this.Noticed)
  2188.                             {
  2189.                                 this.Weapon[this.Equipped].Drop();
  2190.                             }
  2191.                             else
  2192.                             {
  2193.                                 this.CanMove = true;
  2194.                             }
  2195.                         }
  2196.                     }
  2197.                     else if (this.Weapon[this.Equipped].Concealable)
  2198.                     {
  2199.                         if (this.AttackPhase != 1)
  2200.                         {
  2201.                             this.AttackTimer = this.AttackTimer + Time.deltaTime;
  2202.                             if (this.AttackTimer > 0.3f)
  2203.                             {
  2204.                                 if (!this.CanTranq)
  2205.                                 {
  2206.                                     this.StainWeapon();
  2207.                                 }
  2208.                                 this.MyController.radius = 0.2f;
  2209.                                 this.Attacking = false;
  2210.                                 this.AttackPhase = 1;
  2211.                                 this.AttackTimer = (float)0;
  2212.                                 if (this.Noticed)
  2213.                                 {
  2214.                                     this.Weapon[this.Equipped].Drop();
  2215.                                 }
  2216.                                 else
  2217.                                 {
  2218.                                     this.CanMove = true;
  2219.                                 }
  2220.                             }
  2221.                         }
  2222.                         else
  2223.                         {
  2224.                             this.CharacterAnimation.CrossFade("f02_stab_00");
  2225.                             if (this.CharacterAnimation["f02_stab_00"].time > this.CharacterAnimation["f02_stab_00"].length * 0.35f)
  2226.                             {
  2227.                                 this.CharacterAnimation.CrossFade(this.IdleAnim);
  2228.                                 if (!this.CanTranq)
  2229.                                 {
  2230.                                     this.TargetStudent.BloodSpray.active = true;
  2231.                                     this.TargetStudent.Dead = true;
  2232.                                     this.Bloodiness = this.Bloodiness + (float)20;
  2233.                                     this.UpdateBlood();
  2234.                                 }
  2235.                                 else
  2236.                                 {
  2237.                                     this.TargetStudent.Tranquil = true;
  2238.                                     this.CanTranq = false;
  2239.                                     this.Followers = this.Followers - 1;
  2240.                                 }
  2241.                                 if (this.TargetStudent == this.StudentManager.Reporter)
  2242.                                 {
  2243.                                     this.StudentManager.Reporter = null;
  2244.                                 }
  2245.                                 AudioSource.PlayClipAtPoint(this.Stabs[Random.Range(0, Extensions[this.Stabs])], this.transform.position + Vector3.up);
  2246.                                 Object.Destroy(this.TargetStudent.DeathScream);
  2247.                                 this.AttackPhase = 2;
  2248.                                 this.Sanity = this.Sanity - (float)20 * this.Numbness;
  2249.                                 this.UpdateSanity();
  2250.                                 if (this.Weapon[this.Equipped].WeaponID == 8)
  2251.                                 {
  2252.                                     this.TargetStudent.Ragdoll.Sacrifice = true;
  2253.                                     if (PlayerPrefs.GetInt("Paranormal") == 1)
  2254.                                     {
  2255.                                         this.Weapon[this.Equipped].Effect();
  2256.                                     }
  2257.                                 }
  2258.                             }
  2259.                         }
  2260.                     }
  2261.                     else if (this.AttackPhase == 1)
  2262.                     {
  2263.                         this.CharacterAnimation.CrossFade("f02_swingA_00");
  2264.                         if (this.CharacterAnimation["f02_swingA_00"].time > this.CharacterAnimation["f02_swingA_00"].length * 0.3f)
  2265.                         {
  2266.                             if (this.TargetStudent == this.StudentManager.Reporter)
  2267.                             {
  2268.                                 this.StudentManager.Reporter = null;
  2269.                             }
  2270.                             Object.Destroy(this.TargetStudent.DeathScream);
  2271.                             this.Weapon[this.Equipped].Effect();
  2272.                             this.AttackPhase = 2;
  2273.                             this.Bloodiness = this.Bloodiness + (float)20;
  2274.                             this.UpdateBlood();
  2275.                             this.StainWeapon();
  2276.                             this.Sanity = this.Sanity - (float)20 * this.Numbness;
  2277.                             this.UpdateSanity();
  2278.                         }
  2279.                     }
  2280.                     else if (this.CharacterAnimation["f02_swingA_00"].time >= this.CharacterAnimation["f02_swingA_00"].length * 0.9f)
  2281.                     {
  2282.                         this.CharacterAnimation.CrossFade(this.IdleAnim);
  2283.                         this.TargetStudent.Dead = true;
  2284.                         this.TargetStudent.BecomeRagdoll();
  2285.                         this.MyController.radius = 0.2f;
  2286.                         this.Attacking = false;
  2287.                         this.AttackPhase = 1;
  2288.                         this.AttackTimer = (float)0;
  2289.                         if (this.Noticed)
  2290.                         {
  2291.                             this.Weapon[this.Equipped].Drop();
  2292.                         }
  2293.                         else
  2294.                         {
  2295.                             this.CanMove = true;
  2296.                         }
  2297.                     }
  2298.                 }
  2299.             }
  2300.             if (!this.CanMove || this.Attacking || this.Dragging || !(this.PickUp == null) || this.Aiming || this.Crawling || this.Possessed || this.Carrying || this.CirnoWings.active || this.LaughIntensity >= (float)16)
  2301.             {
  2302.                 this.CharacterAnimation["f02_yanderePose_00"].weight = Mathf.Lerp(this.CharacterAnimation["f02_yanderePose_00"].weight, (float)0, Time.deltaTime * (float)10);
  2303.                 this.Slouch = Mathf.Lerp(this.Slouch, (float)0, Time.deltaTime * (float)10);
  2304.             }
  2305.             else
  2306.             {
  2307.                 this.CharacterAnimation["f02_yanderePose_00"].weight = Mathf.Lerp(this.CharacterAnimation["f02_yanderePose_00"].weight, (float)1 - this.Sanity / (float)100, Time.deltaTime * (float)10);
  2308.                 if (this.Hairstyle != 2 || !this.Crouching)
  2309.                 {
  2310.                     this.Slouch = Mathf.Lerp(this.Slouch, (float)5 * ((float)1 - this.Sanity / (float)100), Time.deltaTime * (float)10);
  2311.                 }
  2312.                 else
  2313.                 {
  2314.                     this.Slouch = Mathf.Lerp(this.Slouch, (float)0, Time.deltaTime * (float)20);
  2315.                 }
  2316.             }
  2317.             if (!this.Noticed)
  2318.             {
  2319.                 float sanity = (float)1 - this.Sanity / (float)100;
  2320.                 float single57 = sanity;
  2321.                 Color rightYandereEye2 = this.RightYandereEye.material.color;
  2322.                 Color color18 = rightYandereEye2;
  2323.                 float single58 = single57;
  2324.                 float single59 = single58;
  2325.                 color18.a = single58;
  2326.                 Color color19 = color18;
  2327.                 Color color20 = color19;
  2328.                 this.RightYandereEye.material.color = color19;
  2329.                 float sanity1 = (float)1 - this.Sanity / (float)100;
  2330.                 float single60 = sanity1;
  2331.                 Color leftYandereEye2 = this.LeftYandereEye.material.color;
  2332.                 Color color21 = leftYandereEye2;
  2333.                 float single61 = single60;
  2334.                 float single62 = single61;
  2335.                 color21.a = single61;
  2336.                 Color color22 = color21;
  2337.                 Color color23 = color22;
  2338.                 this.LeftYandereEye.material.color = color22;
  2339.                 this.EyeShrink = Mathf.Lerp(this.EyeShrink, 0.5f * ((float)1 - this.Sanity / (float)100), Time.deltaTime * (float)10);
  2340.             }
  2341.             if (this.Sanity < (float)100)
  2342.             {
  2343.                 this.TwitchTimer = this.TwitchTimer + Time.deltaTime;
  2344.                 if (this.TwitchTimer > this.NextTwitch)
  2345.                 {
  2346.                     this.Twitch.x = ((float)1 - this.Sanity / (float)100) * Random.Range(-10f, 10f);
  2347.                     this.Twitch.y = ((float)1 - this.Sanity / (float)100) * Random.Range(-10f, 10f);
  2348.                     this.Twitch.z = ((float)1 - this.Sanity / (float)100) * Random.Range(-10f, 10f);
  2349.                     this.NextTwitch = Random.Range((float)0, 1f);
  2350.                     this.TwitchTimer = (float)0;
  2351.                 }
  2352.                 this.Twitch = Vector3.Lerp(this.Twitch, new Vector3((float)0, (float)0, (float)0), Time.deltaTime * (float)10);
  2353.             }
  2354.             if (this.NearBodies > 0)
  2355.             {
  2356.                 if (!this.CorpseWarning)
  2357.                 {
  2358.                     this.NotificationManager.DisplayNotification("Body");
  2359.                     this.StudentManager.UpdateStudents();
  2360.                     this.CorpseWarning = true;
  2361.                 }
  2362.             }
  2363.             else if (this.CorpseWarning)
  2364.             {
  2365.                 this.StudentManager.UpdateStudents();
  2366.                 this.CorpseWarning = false;
  2367.             }
  2368.             if (!this.Aiming && Time.timeScale > (float)0 && Input.GetKeyDown("escape"))
  2369.             {
  2370.                 this.PauseScreen.JumpToQuit();
  2371.             }
  2372.             if (Input.GetKeyDown("p"))
  2373.             {
  2374.                 this.CyborgParts[1].active = false;
  2375.                 this.KONGlasses.active = false;
  2376.                 this.EyepatchR.active = false;
  2377.                 this.EyepatchL.active = false;
  2378.                 this.EyewearID = this.EyewearID + 1;
  2379.                 if (this.EyewearID == 1)
  2380.                 {
  2381.                     this.EyepatchR.active = true;
  2382.                 }
  2383.                 else if (this.EyewearID == 2)
  2384.                 {
  2385.                     this.EyepatchL.active = true;
  2386.                 }
  2387.                 else if (this.EyewearID == 3)
  2388.                 {
  2389.                     this.EyepatchR.active = true;
  2390.                     this.EyepatchL.active = true;
  2391.                 }
  2392.                 else if (this.EyewearID == 4)
  2393.                 {
  2394.                     this.KONGlasses.active = true;
  2395.                 }
  2396.                 else if (this.EyewearID != 5)
  2397.                 {
  2398.                     this.EyewearID = 0;
  2399.                 }
  2400.                 else if (!this.CyborgParts[2].active)
  2401.                 {
  2402.                     this.EyewearID = 0;
  2403.                 }
  2404.                 else
  2405.                 {
  2406.                     this.CyborgParts[1].active = true;
  2407.                 }
  2408.             }
  2409.             if (Input.GetKeyDown("h"))
  2410.             {
  2411.                 this.Hairstyle = this.Hairstyle + 1;
  2412.                 this.UpdateHair();
  2413.             }
  2414.             if (Input.GetKeyDown("o") && !this.EasterEggMenu.active)
  2415.             {
  2416.                 if (this.AccessoryGroup != null)
  2417.                 {
  2418.                     this.AccessoryGroup.DeactivateParts();
  2419.                 }
  2420.                 if (this.AccessoryID > 0)
  2421.                 {
  2422.                     this.Accessories[this.AccessoryID].active = false;
  2423.                 }
  2424.                 this.AccessoryID = this.AccessoryID + 1;
  2425.                 if (this.AccessoryID > this.Accessories.Length - 1)
  2426.                 {
  2427.                     this.AccessoryID = 0;
  2428.                 }
  2429.                 if (this.AccessoryID > 0)
  2430.                 {
  2431.                     this.Accessories[this.AccessoryID].active = true;
  2432.                     this.AccessoryGroup = (AccessoryGroupScript)this.Accessories[this.AccessoryID].GetComponent(typeof(AccessoryGroupScript));
  2433.                     if (this.AccessoryGroup != null)
  2434.                     {
  2435.                         this.AccessoryGroup.ActivateParts();
  2436.                     }
  2437.                 }
  2438.             }
  2439.             if (!this.DebugMenu.active)
  2440.             {
  2441.                 if (Input.GetKeyDown("-"))
  2442.                 {
  2443.                     if (Time.timeScale >= (float)6)
  2444.                     {
  2445.                         Time.timeScale = Time.timeScale - (float)5;
  2446.                     }
  2447.                     else
  2448.                     {
  2449.                         Time.timeScale = (float)1;
  2450.                     }
  2451.                 }
  2452.                 if (Input.GetKeyDown("="))
  2453.                 {
  2454.                     if (Time.timeScale >= (float)5)
  2455.                     {
  2456.                         Time.timeScale = Time.timeScale + (float)5;
  2457.                         if (Time.timeScale > (float)25)
  2458.                         {
  2459.                             Time.timeScale = (float)25;
  2460.                         }
  2461.                     }
  2462.                     else
  2463.                     {
  2464.                         Time.timeScale = (float)5;
  2465.                     }
  2466.                 }
  2467.             }
  2468.             if (Input.GetKey("."))
  2469.             {
  2470.                 this.BreastSize = this.BreastSize + Time.deltaTime;
  2471.                 if (this.BreastSize > (float)2)
  2472.                 {
  2473.                     this.BreastSize = (float)2;
  2474.                 }
  2475.                 this.RightBreast.localScale = new Vector3(this.BreastSize, this.BreastSize, this.BreastSize);
  2476.                 this.LeftBreast.localScale = new Vector3(this.BreastSize, this.BreastSize, this.BreastSize);
  2477.             }
  2478.             if (Input.GetKey(","))
  2479.             {
  2480.                 this.BreastSize = this.BreastSize - Time.deltaTime;
  2481.                 if (this.BreastSize < 0.5f)
  2482.                 {
  2483.                     this.BreastSize = 0.5f;
  2484.                 }
  2485.                 this.RightBreast.localScale = new Vector3(this.BreastSize, this.BreastSize, this.BreastSize);
  2486.                 this.LeftBreast.localScale = new Vector3(this.BreastSize, this.BreastSize, this.BreastSize);
  2487.             }
  2488.             if (this.CanMove && !this.Egg && this.transform.position.y < (float)1000)
  2489.             {
  2490.                 if (Input.GetKeyDown("/"))
  2491.                 {
  2492.                     this.DebugMenu.active = false;
  2493.                     if (this.EasterEggMenu.active)
  2494.                     {
  2495.                         this.EasterEggMenu.active = false;
  2496.                     }
  2497.                     else
  2498.                     {
  2499.                         this.EasterEggMenu.active = true;
  2500.                     }
  2501.                 }
  2502.                 if (this.EasterEggMenu.active && !this.Egg)
  2503.                 {
  2504.                     if (Input.GetKeyDown("p"))
  2505.                     {
  2506.                         this.Punish();
  2507.                     }
  2508.                     else if (Input.GetKeyDown("z"))
  2509.                     {
  2510.                         this.Slend();
  2511.                     }
  2512.                     else if (Input.GetKeyDown("b"))
  2513.                     {
  2514.                         this.Sukeban();
  2515.                     }
  2516.                     else if (Input.GetKeyDown("c"))
  2517.                     {
  2518.                         this.Cirno();
  2519.                     }
  2520.                     else if (Input.GetKeyDown("h"))
  2521.                     {
  2522.                         this.EmptyHands();
  2523.                         this.Hate();
  2524.                     }
  2525.                     else if (Input.GetKeyDown("t"))
  2526.                     {
  2527.                         this.StudentManager.AttackOnTitan();
  2528.                         this.AttackOnTitan();
  2529.                     }
  2530.                     else if (Input.GetKeyDown("g"))
  2531.                     {
  2532.                         this.GaloSengen();
  2533.                     }
  2534.                     else if (Input.GetKeyDown("j"))
  2535.                     {
  2536.                         this.Jojo();
  2537.                     }
  2538.                     else if (Input.GetKeyDown("k"))
  2539.                     {
  2540.                         this.EasterEggMenu.active = false;
  2541.                         this.StudentManager.Kong();
  2542.                         this.DK = true;
  2543.                     }
  2544.                     else if (Input.GetKeyDown("l"))
  2545.                     {
  2546.                         this.Agent();
  2547.                     }
  2548.                     else if (Input.GetKeyDown("n"))
  2549.                     {
  2550.                         this.Nude();
  2551.                     }
  2552.                     else if (Input.GetKeyDown("s"))
  2553.                     {
  2554.                         this.EasterEggMenu.active = false;
  2555.                         this.Egg = true;
  2556.                         this.StudentManager.Spook();
  2557.                     }
  2558.                     else if (Input.GetKeyDown("f"))
  2559.                     {
  2560.                         this.EasterEggMenu.active = false;
  2561.                         this.Falcon();
  2562.                     }
  2563.                     else if (Input.GetKeyDown("x"))
  2564.                     {
  2565.                         this.EasterEggMenu.active = false;
  2566.                         this.X();
  2567.                     }
  2568.                     else if (Input.GetKeyDown("o"))
  2569.                     {
  2570.                         this.EasterEggMenu.active = false;
  2571.                         this.Punch();
  2572.                     }
  2573.                     else if (Input.GetKeyDown("v"))
  2574.                     {
  2575.                         this.EasterEggMenu.active = false;
  2576.                         this.Long();
  2577.                     }
  2578.                     else if (Input.GetKeyDown("u"))
  2579.                     {
  2580.                         this.EasterEggMenu.active = false;
  2581.                         this.BadTime();
  2582.                     }
  2583.                     else if (Input.GetKeyDown("y"))
  2584.                     {
  2585.                         this.EasterEggMenu.active = false;
  2586.                         this.CyborgNinja();
  2587.                     }
  2588.                     else if (Input.GetKeyDown("e"))
  2589.                     {
  2590.                         this.EasterEggMenu.active = false;
  2591.                         this.Ebola();
  2592.                     }
  2593.                     else if (Input.GetKeyDown("q"))
  2594.                     {
  2595.                         this.EasterEggMenu.active = false;
  2596.                         this.Samus();
  2597.                     }
  2598.                     else if (Input.GetKeyDown("w"))
  2599.                     {
  2600.                         this.EasterEggMenu.active = false;
  2601.                         this.Witch();
  2602.                     }
  2603.                     else if (Input.GetKeyDown("r"))
  2604.                     {
  2605.                         this.EasterEggMenu.active = false;
  2606.                         this.Pose();
  2607.                     }
  2608.                     if (Input.GetKeyDown("d"))
  2609.                     {
  2610.                         if (!this.Copyrights.active)
  2611.                         {
  2612.                             this.Jukebox.MuteCopyrights = false;
  2613.                             this.Copyrights.active = true;
  2614.                         }
  2615.                         else
  2616.                         {
  2617.                             this.Jukebox.MuteCopyrights = true;
  2618.                             this.Copyrights.active = false;
  2619.                         }
  2620.                     }
  2621.                 }
  2622.             }
  2623.             if (this.transform.position.y < (float)0)
  2624.             {
  2625.                 int num8 = 0;
  2626.                 int num9 = num8;
  2627.                 Vector3 vector350 = this.transform.position;
  2628.                 Vector3 vector351 = vector350;
  2629.                 float single63 = (float)num9;
  2630.                 float single64 = single63;
  2631.                 vector351.y = single63;
  2632.                 Vector3 vector352 = vector351;
  2633.                 Vector3 vector353 = vector352;
  2634.                 this.transform.position = vector352;
  2635.             }
  2636.             if (this.transform.position.z < -99.5f)
  2637.             {
  2638.                 float single65 = -99.5f;
  2639.                 float single66 = single65;
  2640.                 Vector3 vector354 = this.transform.position;
  2641.                 Vector3 vector355 = vector354;
  2642.                 float single67 = single66;
  2643.                 float single68 = single67;
  2644.                 vector355.z = single67;
  2645.                 Vector3 vector356 = vector355;
  2646.                 Vector3 vector357 = vector356;
  2647.                 this.transform.position = vector356;
  2648.             }
  2649.             int num10 = 0;
  2650.             int num11 = num10;
  2651.             Vector3 vector358 = this.transform.eulerAngles;
  2652.             Vector3 vector359 = vector358;
  2653.             float single69 = (float)num11;
  2654.             float single70 = single69;
  2655.             vector359.x = single69;
  2656.             Vector3 vector360 = vector359;
  2657.             Vector3 vector361 = vector360;
  2658.             this.transform.eulerAngles = vector360;
  2659.             int num12 = 0;
  2660.             int num13 = num12;
  2661.             Vector3 vector362 = this.transform.eulerAngles;
  2662.             Vector3 vector363 = vector362;
  2663.             float single71 = (float)num13;
  2664.             float single72 = single71;
  2665.             vector363.z = single71;
  2666.             Vector3 vector364 = vector363;
  2667.             Vector3 vector365 = vector364;
  2668.             this.transform.eulerAngles = vector364;
  2669.         }
  2670.         if (Input.GetKeyDown(KeyCode.Keypad5))
  2671.         {
  2672.             this.CharacterAnimation.CrossFade("f02_bucketTrip_00");
  2673.             this.Tripping = true;
  2674.             this.CanMove = false;
  2675.         }
  2676.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement