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; }
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(); } } }
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); } }
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); } } } }
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); } } }
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); } }
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); }
public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag) { if (GUICollider.IsAllColliderDisable()) { return; } if (!base.activeCollider) { return; } base.OnTouchEnded(touch, pos, flag); }
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; }
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; }
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; }
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; }
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); } }
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; } }
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) { } } }
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); } } }
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); } } }
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(); } } }
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); } }