コード例 #1
0
ファイル: Zuko.cs プロジェクト: cozzarin787/Zuko-RoR2-Mod
 // Token: 0x06003934 RID: 14644 RVA: 0x000E9B68 File Offset: 0x000E7D68
 public override void OnEnter()
 {
     base.OnEnter();
     this.duration = this.baseDuration / this.attackSpeedStat;
     Util.PlayScaledSound(this.attackSoundString, base.gameObject, this.attackSoundPitch);
     base.characterBody.SetAimTimer(2f);
     this.animator = base.GetModelAnimator();
     if (this.animator)
     {
         this.childLocator = this.animator.GetComponent <ChildLocator>();
     }
     FireFirePunch.Gauntlet gauntlet = this.gauntlet;
     if (gauntlet != FireFirePunch.Gauntlet.Left)
     {
         if (gauntlet != FireFirePunch.Gauntlet.Right)
         {
             return;
         }
         this.muzzleString = "Hand.R";
         //if (this.attackSpeedStat < FireFirePunch.attackSpeedAltAnimationThreshold)
         //{
         //    base.PlayCrossfade("Gesture, Additive", "Cast1Right", "FireGauntlet.playbackRate", this.duration, 0.1f);
         //    base.PlayAnimation("Gesture Left, Additive", "Empty");
         //    base.PlayAnimation("Gesture Right, Additive", "Empty");
         //    return;
         //}
         base.PlayAnimation("Gesture, Override", "FirePunchRight", "FireArrow.playbackRate", this.duration);
         this.FireGauntlet();
         return;
     }
     else
     {
         this.muzzleString = "Hand.L";
         //if (this.attackSpeedStat < FireFirePunch.attackSpeedAltAnimationThreshold)
         //{
         //    base.PlayCrossfade("Gesture, Additive", "Cast1Left", "FireGauntlet.playbackRate", this.duration, 0.1f);
         //    base.PlayAnimation("Gesture Left, Additive", "Empty");
         //    base.PlayAnimation("Gesture Right, Additive", "Empty");
         //    return;
         //}
         base.PlayAnimation("Gesture, Override", "FirePunchLeft", "FireArrow.playbackRate", this.duration);
         this.FireGauntlet();
         return;
     }
 }
コード例 #2
0
ファイル: Zuko.cs プロジェクト: cozzarin787/Zuko-RoR2-Mod
 public override void OnDeserialize(NetworkReader reader)
 {
     base.OnDeserialize(reader);
     this.gauntlet = (FireFirePunch.Gauntlet)reader.ReadByte();
 }
コード例 #3
0
ファイル: Zuko.cs プロジェクト: cozzarin787/Zuko-RoR2-Mod
 // Token: 0x06003933 RID: 14643 RVA: 0x000E9B5F File Offset: 0x000E7D5F
 public void SetStep(int i)
 {
     this.gauntlet = (FireFirePunch.Gauntlet)i;
 }