public void SetUp(UIDragableItem pOwner, Camera pCamera) { renderCamera = pCamera; owner = pOwner; dragController = GetComponentInParent <UIDragController>(); initialzied = true; }
public UIDragableItem GetDragableItem() { if (owner.dragOriginal) { return(owner); } else { if (clone == null) { clone = Instantiate(owner, dragController.dragContainer); clone.GetComponent <RectTransform>().sizeDelta = owner.GetComponent <RectTransform>().sizeDelta; clone.Cloned(); } return(clone); } }