예제 #1
0
 /// <summary>
 /// Handles igniting the Flamethrower.
 /// </summary>
 protected override void LateUpdate()
 {
     if (setIgniteFlag)
     {
         if (!fc.timeOut || StatMaster.GodTools.InfiniteAmmoMode)
         {
             if (holdToFire.IsActive)
             {
                 fc.FlameOn();
             }
             else
             {
                 fc.Flame();
             }
         }
         setIgniteFlag  = false;
         lastIgniteFlag = true;
     }
     else if (lastIgniteFlag)
     {
         keyHeld.SetValue(fc, true);
         lastIgniteFlag = false;
     }
 }
예제 #2
0
 /// <summary>
 ///     Handles igniting the Flamethrower.
 /// </summary>
 protected override void LateUpdate()
 {
     if (_setIgniteFlag)
     {
         if (!_fc.timeOut || StatMaster.GodTools.InfiniteAmmoMode)
         {
             if (_holdToFire.IsActive)
             {
                 _fc.FlameOn();
             }
             else
             {
                 _fc.Flame();
             }
         }
         _setIgniteFlag  = false;
         _lastIgniteFlag = true;
     }
     else if (_lastIgniteFlag)
     {
         KeyHeld.SetValue(_fc, true);
         _lastIgniteFlag = false;
     }
 }