Exemplo n.º 1
0
 protected override void ValidateValues()
 {
     if (_uiManager == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_uiManager), this.gameObject.name));
     }
     _inventoryDraggableItemComponnent = GameObject.FindObjectOfType <InventoryDraggableItemComponent>();
 }
Exemplo n.º 2
0
        protected override void SetInitialValues()
        {
            _txtAmount.enabled = false;
            _inputManager      = GameObject.FindObjectOfType <InputManager>();
            if (_inventoryItemInformationComponent is null)
            {
                _inventoryItemInformationComponent = GameObject.FindObjectOfType <InventoryItemInformationComponent>();
            }

            _draggableItem = GameObject.FindObjectOfType <InventoryDraggableItemComponent>();
        }