예제 #1
0
 public override void OnTouchMoved(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     if (!this.touch_begin)
     {
         return;
     }
     base.OnTouchMoved(touch, pos);
     if (Mathf.Abs(this.startLoc.x - pos.x) > Mathf.Abs(this.scrollSpeed))
     {
     }
     if (this.EnableScroll)
     {
         this.scrollSpeed = (pos.x - this.startLoc.x) / 4f;
     }
     else
     {
         this.scrollSpeed = 0f;
     }
     this.selectLoc -= this.scrollSpeed * 0.7f;
     this.StopAtEndFunc();
     this.startLoc = pos;
 }
 public override void OnTouchMoved(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     if (!this.touch_begin)
     {
         return;
     }
     base.OnTouchMoved(touch, pos);
     if (Mathf.Abs(this.startLoc.x - pos.x) > Mathf.Abs(this.scrollSpeed))
     {
     }
     if (this.EnableScroll && this.partObjs.Count > 1)
     {
         this.scrollSpeed = this.startLoc.x - pos.x;
     }
     else
     {
         this.scrollSpeed = 0f;
     }
     this.selectLoc -= this.scrollSpeed;
     if (!this.enableEternalScroll)
     {
         this.selectLoc = Mathf.Max(Mathf.Min(this.selectLoc, this.borderMaxLocate), this.borderMinLocate);
     }
     this.startLoc = pos;
 }
예제 #3
0
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     this.isTouching_mi = false;
     if (this.isLongTouched)
     {
         this.isLongTouched = false;
         return;
     }
     base.OnTouchEnded(touch, pos, flag);
     if (flag)
     {
         float magnitude = (this.beganPosition - pos).magnitude;
         if (magnitude < 40f && this.actTouchShort != null)
         {
             base.PlaySelectSE();
             this.actTouchShort();
         }
     }
 }
예제 #4
0
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     if (flag && !this.animationMoving)
     {
         base.OnTouchEnded(touch, pos, flag);
         float magnitude = (this.beganPostion - pos).magnitude;
         if (magnitude < 40f && !this.isTouchEndFromChild)
         {
             if (this.worldStageData.wdi.isOpen != 1)
             {
                 this.OpenConfirmForceOpen();
             }
             else
             {
                 this.ExecuteTouch(false);
             }
         }
     }
 }
 public override void OnTouchMoved(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     if (!this.touch_begin)
     {
         return;
     }
     base.OnTouchMoved(touch, pos);
     if (Mathf.Abs(this.startLoc.y - pos.y) > Mathf.Abs(this.scrollSpeed))
     {
     }
     if (this.EnableScroll)
     {
         this.scrollSpeed = this.startLoc.y - pos.y;
     }
     else
     {
         this.scrollSpeed = 0f;
     }
     this.selectLoc -= this.scrollSpeed;
     this.selectLoc  = Mathf.Max(Mathf.Min(this.selectLoc, this.borderMaxLocate), this.borderMinLocate);
     this.startLoc   = pos;
     if (this.parent != null)
     {
         this.parent.OnTouchMoved(touch, pos);
     }
 }
예제 #6
0
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     if (flag && !this.selectPanelA.animationMoving)
     {
         Transform transform = this.selectPanelA.transform;
         float     z         = transform.localPosition.z;
         base.OnTouchEnded(touch, pos, flag);
         Vector3 localPosition = new Vector3(transform.localPosition.x, transform.localPosition.y, z);
         transform.localPosition = localPosition;
         if (0 < this.totalSeconds)
         {
             float magnitude = (this.beganPostion - pos).magnitude;
             if (40f > magnitude && !this.isTouchEndFromChild && this.pushedAction != null)
             {
                 this.pushedAction(base.IDX);
             }
         }
     }
 }
예제 #7
0
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable() && !base.AvoidDisableAllCollider)
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     this.isTouching_mi = false;
     if (this.isLongTouched)
     {
         this.isLongTouched = false;
         return;
     }
     if (flag)
     {
         base.OnTouchEnded(touch, pos, flag);
         float magnitude = (this.beganPostion - pos).magnitude;
         if (magnitude < 40f)
         {
             CMD_AlMightySelect cmd_AlMightySelect = (CMD_AlMightySelect)base.GetInstanceCMD();
             cmd_AlMightySelect.SetSelected(this.Data.soulM.soulId);
         }
     }
 }
예제 #8
0
 private void UpdateBackKeyAndroid()
 {
     if (!GUICollider.IsAllColliderDisable() && Input.GetKeyDown(KeyCode.Escape) && this._isShowed && this.mainParts.IsShow())
     {
         this.ForceHide(true);
         SoundMng.Instance().PlaySE("SEInternal/Common/se_106", 0f, false, true, null, -1, 1f);
     }
 }
예제 #9
0
 public override void OnTouchBegan(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable() || !base.activeCollider)
     {
         return;
     }
     base.OnTouchBegan(touch, pos);
     this.ReadyLongTouchParam();
 }
 public override void OnTouchMoved(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable() && !base.AvoidDisableAllCollider)
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     base.OnTouchMoved(touch, pos);
 }
예제 #11
0
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     base.OnTouchEnded(touch, pos, flag);
 }
예제 #12
0
 public override void OnTouchBegan(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     base.OnTouchBegan(touch, pos);
 }
 public override void OnTouchBegan(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable() && !base.AvoidDisableAllCollider)
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     base.OnTouchBegan(touch, pos);
     this.isTouchEndFromChild = false;
 }
예제 #14
0
 public override void OnTouchMoved(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     base.OnTouchMoved(touch, pos);
     this.selectPanelGasha.timeCoun = this.selectPanelGasha.limitOrigin;
 }
 public override void OnTouchBegan(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     this.startPostion = pos;
     base.OnTouchBegan(touch, pos);
     this.isTouchEndFromChild = false;
 }
 public override void OnTouchBegan(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     this.touch_begin = true;
     base.OnTouchBegan(touch, pos);
     this.startLoc = pos;
 }
예제 #17
0
 public override void OnTouchBegan(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     this.beganPosition = pos;
     base.OnTouchBegan(touch, pos);
     this.isTouching_mi  = true;
     this.isLongTouched  = false;
     this.touchBeganTime = Time.realtimeSinceStartup;
 }
예제 #18
0
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable() || !base.activeCollider)
     {
         return;
     }
     this.isPressing = false;
     if (!this.isLongTouched)
     {
         base.OnTouchEnded(touch, pos, flag);
     }
     else
     {
         base.isTouching = false;
     }
     this.isLongTouched = false;
 }
예제 #19
0
 public override void OnTouchBegan(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     base.OnTouchBegan(touch, pos);
     GUICollider.TouchBehavior touchBehavior = this.touchBehavior;
     if (touchBehavior == GUICollider.TouchBehavior.ChangeColor)
     {
         this.backgroundImg.color = this.changeColor;
     }
 }
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     base.OnTouchEnded(touch, pos, flag);
     this.touch_begin = false;
     if (this.parent != null)
     {
         this.parent.OnTouchEnded(touch, pos, flag);
     }
 }
예제 #21
0
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     base.OnTouchEnded(touch, pos, flag);
     GUICollider.TouchBehavior touchBehavior = this.touchBehavior;
     if (touchBehavior == GUICollider.TouchBehavior.ChangeColor)
     {
         this.backgroundImg.color = this.defaultColor;
     }
 }
예제 #22
0
    public override void OnTouchMoved(Touch touch, Vector2 pos)
    {
        if (GUICollider.IsAllColliderDisable())
        {
            return;
        }
        if (!base.activeCollider)
        {
            return;
        }
        base.OnTouchMoved(touch, pos);
        float magnitude = (this.beganPosition - pos).magnitude;

        if (magnitude > 40f)
        {
            this.isTouching_mi = false;
        }
    }
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     if (flag)
     {
         base.OnTouchEnded(touch, pos, flag);
         float magnitude = (this.beganPostion - pos).magnitude;
         if (magnitude < 40f)
         {
         }
     }
 }
예제 #24
0
 public override void OnTouchMoved(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable() && !base.AvoidDisableAllCollider)
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     if (this.panelEnable)
     {
         if (this.parent != null)
         {
             this.parent.OnTouchMoved(touch, pos);
         }
         base.OnTouchMoved(touch, pos);
     }
 }
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     base.OnTouchEnded(touch, pos, flag);
     if (flag)
     {
         float magnitude = (this.beganPostion - pos).magnitude;
         if (magnitude < 40f && !this.isTouchEndFromChild)
         {
             this.OnTouchEndedProcess();
         }
     }
 }
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     base.OnTouchEnded(touch, pos, flag);
     if (flag)
     {
         float magnitude = (this.startPostion - pos).magnitude;
         if (magnitude < 40f && !this.isTouchEndFromChild)
         {
             CMD_QuestTOP.ChangeSelectA_StageL_S(base.IDX, false);
         }
     }
 }
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable() && !base.AvoidDisableAllCollider)
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     if (flag && !this.selectPanelA.animationMoving)
     {
         base.OnTouchEnded(touch, pos, flag);
         float magnitude = (this.beganPostion - pos).magnitude;
         if (magnitude < 40f && !this.isTouchEndFromChild)
         {
             CMD_QuestTOP.ChangeSelectA_StageL_S(base.IDX, false);
         }
     }
 }
예제 #28
0
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     base.OnTouchEnded(touch, pos, flag);
     if (flag)
     {
         float magnitude = (this._beganPosition - pos).magnitude;
         if (magnitude < 40f && this._actTouchShort != null)
         {
             this._actTouchShort(this._monsterData);
         }
     }
 }
예제 #29
0
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     base.OnTouchEnded(touch, pos, flag);
     if (flag)
     {
         float magnitude = (this.beganPostion - pos).magnitude;
         if (magnitude < 40f && this.data.actCallBack != null)
         {
             this.data.actCallBack();
         }
     }
 }
예제 #30
0
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable() && !base.AvoidDisableAllCollider)
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     flag = (this.TouchDistance(pos) && flag);
     if (this.panelEnable)
     {
         if (this.parent != null)
         {
             this.parent.OnTouchEnded(touch, pos, flag);
         }
         base.OnTouchEnded(touch, pos, flag);
     }
 }