private void Start() { clickManager = new WeiClickManager(); itemObjRectTransform = GetComponent <RectTransform>(); canvasGroup = GetComponent <CanvasGroup>(); //used to modify the state of children elements Alpha, Raycasting, Enabled.... dragSlotRectTransform = GameObject.FindGameObjectWithTag("DraggingItem").GetComponent <RectTransform>(); inventory = transform.parent.parent.parent.GetComponent <InventoryUISetting>(); draggedItemBox = GameObject.FindGameObjectWithTag("DraggingItem").transform; }
public void Start() { clickManager = new WeiClickManager(); }