Beispiel #1
0
 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;
 }
Beispiel #2
0
 public void Start()
 {
     clickManager = new WeiClickManager();
 }