Example #1
0
 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;
 }
Example #3
0
 void Awake()
 {
     grayout  = GameObject.FindGameObjectWithTag("Grayout").GetComponent <Grayout>();
     rectUtil = GetComponent <RectUtil>();
 }