private void Start() { pickupItem = FindObjectOfType <PickupItem>(); showInventory = false; isOpen = false; InventoryClose(); canvas.enabled = false; if (pickupItem.interactionType != InteractionType.clickToPickup) { Cursor.visible = false; Cursor.lockState = CursorLockMode.Confined; } }
private void OnEnable() { pickupItem = FindObjectOfType <PickupItem>(); inventory = FindObjectOfType <DTInventory>(); }