diff --git a/Scripts/Human/HERO.cs b/Scripts/Human/HERO.cs index 6aef0e2..d77e66c 100644 --- a/Scripts/Human/HERO.cs +++ b/Scripts/Human/HERO.cs @@ -1923,6 +1923,10 @@ private void FixedUpdate() { this.speedFXPS.enableEmission = false; } + if (this.state == HERO_STATE.Attack && this.useGun) + { + this.baseTransform.rotation = Quaternion.Lerp(this.baseTransform.rotation, this.gunDummy.transform.rotation, Time.deltaTime * 30f); + } } } this.setHookedPplDirection(); @@ -5137,7 +5141,6 @@ public void update2() } else { - this.baseTransform.rotation = Quaternion.Lerp(this.baseTransform.rotation, this.gunDummy.transform.rotation, Time.deltaTime * 30f); if (!this.attackReleased && (this.baseAnimation[this.attackAnimation].normalizedTime > 0.167f)) { GameObject obj4;