Exemplo n.º 1
0
    public override void Interact()
    {
        // If toolbox is already enabled there is no reason the replay the sound
        if (!toolboxHUD.isActiveAndEnabled)
        {
            PlaySound(interactSound);
        }

        toolboxHUD.gameObject.SetActive(true);
        inventoryHUD.ToggleButtons(true);
        toolboxHUD.ToggleButtons(true);
    }
Exemplo n.º 2
0
 public Toolbox(Sprite sprite, Vector2 position, InventoryHUD playerInventory, InventoryHUD toolboxInventory)
     : base(sprite, position)
 {
     _playerInventory  = playerInventory;
     _toolboxInventory = toolboxInventory;
     _playerInventory.ToggleButtons(false);
     _toolboxInventory.SetActive(false);
 }
Exemplo n.º 3
0
 public override void Cancel()
 {
     _toolboxInventory.SetActive(false);
     _playerInventory.ToggleButtons(false);
 }