Пример #1
0
        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;
            }
        }
Пример #2
0
 private void OnEnable()
 {
     pickupItem = FindObjectOfType <PickupItem>();
     inventory  = FindObjectOfType <DTInventory>();
 }