private void Awake() { inDrop = false; swap = false; _rectTransform = GetComponent <RectTransform>(); _image = GetComponent <Image>(); _defaultPos = _rectTransform.anchoredPosition; UpdateCurrentPosition(); _L4A237_managerDrag = FindObjectOfType <L4A237_managerDrag>(); _L4A237_managerDrag._drags.Add(this); }
public void Start() { _managerDragDrop = FindObjectOfType <L4A237_managerDrag>(); _managerDragDrop._groups.Add(this); }
private void Awake() { _L4A237_managerDrag = FindObjectOfType <L4A237_managerDrag>(); _L4A237_managerDrag._drops.Add(this); }