void Start() { AddToGroup(groupName, this); target = GetComponent <TouchColliderSensitive>(); target.onDragBegin += ExcludeOthers; target.onDragRelease += ReactivateAll; }
private void Deactivate() { if (touch.phase != TouchPhase.Ended) { return; } gameObject.SetActive(false); touch.phase = TouchPhase.Canceled; if (touched != null) { touched.Release(this); } touched = null; }