Ejemplo n.º 1
0
    public void CloseContainerView()
    {
        //Debug.Log("close cauld");
        transform.GetChild(0).localScale = new Vector3(0, 0, 0);
        GameObject.Find("PanelInventory").GetComponent <RectTransform>().anchorMin = new Vector2(0.5f, 1);
        GameObject.Find("PanelInventory").GetComponent <RectTransform>().anchorMax = new Vector2(0.5f, 1);
        GameObject.Find("PanelInventory").GetComponent <RectTransform>().pivot     = new Vector2(0.5f, 0.5f);
        LeanTween.moveX(GameObject.Find("PanelInventory").GetComponent <RectTransform>(), 35, 0);
        inventoryUIBehaviour.isLocked = false;
        inventoryUIBehaviour.CloseInventory();
        inventoryUIBehaviour.ShowButton();
        GameObject.Find("PanelTransferAmount").transform.localScale = new Vector3(0, 0, 0);

        InventoryItemHandler.ResetAutoTransferTargetParent();
    }
Ejemplo n.º 2
0
 void Start()
 {
     InventoryItemHandler.ResetAutoTransferTargetParent();
 }