Пример #1
0
 public override void FireHold(bool holding)
 {
     if (holding)
     {
         indicatorController.SelectLocation(channelingFirePoint, 3f, 18f);
         tmpLaser.SetActive(true);
     }
     else
     {
         indicatorController.DestroyIndicator();
         tmpLaser.SetActive(false);
     }
 }
 public override void FireHold(bool holding)
 {
     if (!tmpStorm.activeInHierarchy)
     {
         if (holding)
         {
             indicatorController.SelectLocation(20f, 15f);
             pickedSpot = false;
         }
         else
         {
             if (indicatorController != null)
             {
                 spawningLocation = indicatorController.LockLocation()[0];
                 pickedSpot       = true;
                 Invoke(nameof(CancelSpell), 5f);
             }
         }
     }
 }