Пример #1
0
 public override void FireHold(bool holding)
 {
     if (!currentFireWall.activeInHierarchy)
     {
         if (holding)
         {
             indicatorController.SelectLocation(20f, 24f, 4f);
             pickedSpot = false;
         }
         else
         {
             if (indicatorController != null)
             {
                 spawningLocation = indicatorController.LockLocation()[0];
                 spellRotation    = indicatorController.LockLocation()[1];
                 pickedSpot       = true;
                 Invoke(nameof(CancelSpell), 5f);
             }
         }
     }
 }
Пример #2
0
 public override void FireHold(bool holding)
 {
     if (!firing)
     {
         if (holding)
         {
             indicatorController.SelectLocation(20f, 20f);
             pickedSpot = false;
         }
         else
         {
             if (indicatorController != null)
             {
                 spawningLocation = indicatorController.LockLocation()[0];
                 pickedSpot       = true;
                 Invoke(nameof(CancelSpell), 5f);
             }
         }
     }
 }