void Start()
 {
     AddToGroup(groupName, this);
     target                = GetComponent <TouchColliderSensitive>();
     target.onDragBegin   += ExcludeOthers;
     target.onDragRelease += ReactivateAll;
 }
示例#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;
 }