Exemplo n.º 1
0
 // Token: 0x06000C0F RID: 3087 RVA: 0x00068AE4 File Offset: 0x00066CE4
 public virtual void StartDragging()
 {
     if (!this.interactable)
     {
         return;
     }
     if (!this.mDragging)
     {
         if (this.cloneOnDrag)
         {
             this.mPressed = false;
             GameObject gameObject;
             if (this.cloneObject != null)
             {
                 gameObject = base.transform.parent.gameObject.BFCKNMFEBDM(this.cloneObject);
                 gameObject.transform.position = EMENMKHBPQE.DKIMLEKEFCB.point;
             }
             else
             {
                 gameObject = base.transform.parent.gameObject.BFCKNMFEBDM(base.gameObject);
                 gameObject.transform.localPosition = base.transform.localPosition;
             }
             gameObject.transform.localRotation = base.transform.localRotation;
             gameObject.transform.localScale    = base.transform.localScale;
             PBJKDKBOLHO component = gameObject.GetComponent <PBJKDKBOLHO>();
             if (component != null)
             {
                 component.IDEOONDHNEL = base.GetComponent <PBJKDKBOLHO>().IDEOONDHNEL;
             }
             if (this.mTouch != null && this.mTouch.KCICOJFDCPQ == base.gameObject)
             {
                 this.mTouch.OMQCQCBLQGJ = gameObject;
                 this.mTouch.KCICOJFDCPQ = gameObject;
                 this.mTouch.HKGQKLHJKMB = gameObject;
                 this.mTouch.CIDFMGENPFQ = gameObject;
             }
             UIDragDropItem component2 = gameObject.GetComponent <UIDragDropItem>();
             component2.mTouch    = this.mTouch;
             component2.mPressed  = true;
             component2.mDragging = true;
             component2.Start();
             component2.OnClone(base.gameObject);
             component2.GetClone(gameObject, base.gameObject);
             component2.OnDragDropStart();
             if (EMENMKHBPQE.JHEDGGMDIEE == null)
             {
                 EMENMKHBPQE.JHEDGGMDIEE = this.mTouch;
             }
             this.mTouch = null;
             EMENMKHBPQE.EHDBBNFQIBL(base.gameObject, "OnPress", false);
             EMENMKHBPQE.EHDBBNFQIBL(base.gameObject, "OnHover", false);
         }
         else
         {
             this.mDragging = true;
             this.OnDragDropStart();
         }
     }
 }