public void StartInventory(FurnitureInventory inventory) { if (!InventoryUI.activeInHierarchy) { activeInventory = inventory; playerController.LockMoves(); activeInventory.loadInventory(InventoryUI); ShowInventory(); } else { EndInventory(); } }
public override void GetReferenceObject(Interactable interactable) { base.GetReferenceObject(interactable); inventory = interactable.gameObject.GetComponent <FurnitureInventory>(); }