// Use this for initialization
    void Start()
    {
        tooltip         = GetComponentInChildren <UI_ToolTip>();
        capsuleCollider = GetComponent <CapsuleCollider>();
        meshCollider    = GetComponent <MeshCollider>();

        consumable   = GetComponent <Item_Consumable>();
        isConsumable = consumable != null;
        equipable    = GetComponent <Item_Equipment>();
        isEquipable  = equipable != null;
    }
Exemple #2
0
 protected virtual void OnEnable()
 {
     Target = (UI_ToolTip)target;
 }