public void UpgradeSlap()
 {
     if (HasSlapUpgrade() && GameManager.instance.Wood >= GetSlapUpgradeCost())
     {
         GameManager.instance.SpendWood(GetSlapUpgradeCost());
         slapUpgradeNum++;
         SlapCostChangedEvent?.Invoke(GetSlapUpgradeCost());
         UISounds.instance.PlayUpgradeSound();
         
         GameManager.instance.Beaver.SetTail(slapUpgradeNum);
         bounceUpgradeIcon.UpgradeIcon(slapUpgradeNum);
     }
     else
     {
         UISounds.instance.PlayOKSound();
     }
 }
    public void OpenUpgradePanel()
    {
        upgradePanel.SetActive(true);

        if (HasCannonUpgrade())
        {
            CannonCostChangedEvent?.Invoke(GetCannonUpgradeCost());
        }

        if (HasGliderUpgrade())
        {
            GliderCostChangedEvent?.Invoke(GetGliderUpgradeCost());
        }

        if (HasSlapUpgrade())
        {
            SlapCostChangedEvent?.Invoke(GetSlapUpgradeCost());
        }
    }