void OnTouchCollectable(GameObject collectable) { // If we're in the air and touch a bolt, we're allowed to use 1 more special move. if (!onGround) { canUseMidairAbility = true; } // Increment the combo and reset the combo loss timer. currentCombo++; lastTakeCollectable = Time.time; // Let the HUD know. if (gameHUD) { gameHUD.OnTouchCollectable(collectable); } }