Пример #1
0
    public void TryPickUp()
    {
        if (null != _InteractableItem)
        {
            int        count;
            GameObject prefab;
            EItemType  item = _InteractableItem.PickUp(out count, out prefab);

            if (!_Inventory.ContainsKey(item))
            {
                _Inventory.Add(item, true);

                if (item == EItemType.Beer)
                {
                    UIManager.Instance.DisplayBeerCount(true);
                    UIManager.Instance.ObjectiveText.text = DialogueData.Objective_4;
                    UIManager.Instance.DisplayPopup(true);
                }
            }

            ThrowComponent.Reload(count, prefab);
        }
    }