コード例 #1
0
 protected internal override void ProcessTouchReleased()
 {
     if (!isTouchClick)
     {
         return;
     }
     if (!input.IsMoving())
     {
         int dx = this.input.GetTouchX() - this.GetScreenX();
         int dy = this.input.GetTouchY() - this.GetScreenY();
         dragActor = GetSynchronizedObject(dx, dy);
         if (dragActor != null)
         {
             if (dragActor.IsClick())
             {
                 dragActor.UpClick(dx, dy);
                 if (dragActor.actorListener != null)
                 {
                     dragActor.actorListener.UpClick(dx, dy);
                 }
             }
         }
         this.UpClick(dx, dy);
         this.dragActor = null;
     }
 }
コード例 #2
0
ファイル: LLayer.cs プロジェクト: keppelcao/LGame
 protected internal override void ProcessTouchReleased()
 {
     if (!isTouchClick)
     {
         return;
     }
     if (!input.IsMoving())
     {
         int dx = this.input.GetTouchX() - this.GetScreenX();
         int dy = this.input.GetTouchY() - this.GetScreenY();
         dragActor = GetSynchronizedObject(dx, dy);
         if (dragActor != null)
         {
             if (dragActor.IsClick())
             {
                 dragActor.UpClick(dx, dy);
                 if (dragActor.actorListener != null)
                 {
                     dragActor.actorListener.UpClick(dx, dy);
                 }
             }
         }
         this.UpClick(dx, dy);
         this.dragActor = null;
     }
 }