private void Collect()
 {
     if (inArea && !collected)
     {
         petUnlockerComponent.CollectPet(id);
         collectInput.UnsubscribeFromPressed(Collect);
     }
 }
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.T))
        {
            if (isTabActive)
            {
                petTab.HideTab();
            }
            else
            {
                petTab.ShowTab();
            }

            isTabActive = !isTabActive;
        }
        if (Input.GetKeyDown(KeyCode.U))
        {
            petUnlockerComponent.CollectPet(unlockId);
        }
        if (Input.GetKeyDown(KeyCode.S))
        {
            petInitializerComponent.SummonPet();
        }

        if (Input.GetKeyDown(KeyCode.Q))
        {
            attackable.Switch();
        }
        if (Input.GetKeyDown(KeyCode.W))
        {
            healable.Switch();
        }
        if (Input.GetKeyDown(KeyCode.E))
        {
            resetable.Switch();
        }
        if (Input.GetKeyDown(KeyCode.C))
        {
            resetable.CastWhatever();
        }
    }