protected virtual void CheckPlayerActions()
 {
     if (Input.GetKeyUp(KeyCode.A))
     {
         if (bombManager == null)
         {
             return;
         }
         if (bombManager.bombs.Count < player.playerBombNumber)
         {
             bombManager.DropNewBomb(transform.position, player.explosionRadius);
         }
     }
 }
Exemplo n.º 2
0
 protected virtual void CheckPlayerActions()
 {
     if (Input.GetKeyUp(KeyCode.A))
     {
         if (bombManager == null)
         {
             return;
         }
         if (bombManager.bombs.Count < player.bombNumber)
         {
             animator.SetTrigger("DropBomb");
             bombManager.DropNewBomb(transform.position, player.explosionRadius);
         }
     }
     else if (Input.GetKeyUp(KeyCode.B) && player.abilities.Contains(PowerUp.Detonator))
     {
         bombManager.ExplodeAllBombs();
     }
 }