Esempio n. 1
0
        protected override void Awake()
        {
            m_Item = new vp_ItemPickup.ItemSection();

            var equippable = GetComponent<EquippableUFPSInventoryItem>();
            if (equippable != null)
                m_Item.Type = equippable.itemType;
            else
            {
                var unitType = GetComponent<UnitTypeUFPSInventoryItem>();
                if (unitType != null)
                    m_Item.Type = unitType.unitType;
            }
        }
        //protected bool itemInInventory { get; set; }

        protected override void Awake()
        {
            objectTriggerer = GetComponent<ObjectTriggererItem>();
            objectTriggerer.OnPickup += ObjectTriggererOnPickup;

            m_Item = new vp_ItemPickup.ItemSection();

            var equippable = GetComponent<EquippableUFPSInventoryItem>();
            if (equippable != null)
                m_Item.Type = equippable.itemType;
            else
            {
                var unitType = GetComponent<UnitTypeUFPSInventoryItem>();
                if (unitType != null)
                    m_Item.Type = unitType.unitType;
            }

        }