void Awake() { grayout = GameObject.FindGameObjectWithTag("Grayout").GetComponent <Grayout>(); originalParent = transform.parent; canvas = GameObject.FindGameObjectWithTag("Canvas").transform; rect = transform as RectTransform; canvasGroup = GetComponent <CanvasGroup>(); }
private void Awake() { grayout = GameObject.FindGameObjectWithTag("Grayout").GetComponent <Grayout>(); droppable = GetComponent <Droppable>(); droppable.dropDelegate += OnDrop; rectUtil = GetComponent <RectUtil>(); boxSprite = box.sprite; }
void Awake() { grayout = GameObject.FindGameObjectWithTag("Grayout").GetComponent <Grayout>(); rectUtil = GetComponent <RectUtil>(); }