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