Exemplo n.º 1
0
    private void Awake()
    {
        content             = transform.Find("ViewPort").Find("Content");
        uI_ShopItemTemplate = content.Find("UI_ShopItem");
        uI_ShopItemTemplate.gameObject.SetActive(false);

        uI_SelectionFrame = transform.Find("UI_SelectionFrame").GetComponent <UI_SelectionFrame>();
        uI_SelectionFrame.gameObject.SetActive(false);
    }
Exemplo n.º 2
0
    private void Awake()
    {
        uI_InventorySlotTemplate = transform.Find("UI_InventorySlot");
        uI_InventorySlotTemplate.gameObject.SetActive(false);

        uI_ItemTemplate = transform.Find("UI_Item");
        uI_ItemTemplate.gameObject.SetActive(false);

        uI_GoldAmountText = transform.Find("UI_GoldAmount").GetComponentInChildren <TMPro.TextMeshProUGUI>();
        uI_DraggingItem   = transform.Find("UI_DraggingItem").GetComponent <UI_DraggingItem>();
        uI_DraggingItem.gameObject.SetActive(false);

        uI_SelectionFrame = transform.Find("UI_SelectionFrame").GetComponent <UI_SelectionFrame>();
        uI_SelectionFrame.gameObject.SetActive(false);


        inventory.OnItemChanged += Inventory_OnItemChanged;
    }
Exemplo n.º 3
0
 private void Awake()
 {
     uI_Inventory = GetComponentInParent<UI_Inventory>();
     uI_SelectionMark = uI_Inventory.GetUISelectionFrame();
 }