public void Update() { //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: Unknown result type (might be due to invalid IL or missing references) bool flag = !enableMultiTouch && MonoBehaviourSingleton <InputManager> .I.GetActiveInfoCount() >= 2; if (link_info != null && (link_info.id == -1 || flag)) { punicon.Reset(); link_info = null; } if (link_info == null && !flag) { InputManager.TouchInfo activeInfo = MonoBehaviourSingleton <InputManager> .I.GetActiveInfo(true); if (activeInfo != null) { link_info = activeInfo; punicon.SetStartPosition(Vector2.op_Implicit(link_info.beginPosition)); if (link_info.activeAxis) { punicon.SetEndPosition(Vector2.op_Implicit(link_info.position)); } } } }
private void OnTouchOn(InputManager.TouchInfo info) { if (enableInput) { Stop(); } }
private void OnDrag(InputManager.TouchInfo info) { if (enableInput) { railAnim.rate += GetMove(info); } }
private void OnDrag(InputManager.TouchInfo info) { if (!MonoBehaviourSingleton <UIManager> .I.IsDisable() && IsEnableControl() && (dragTouchInfo == null || !dragTouchInfo.enable)) { dragTouchInfo = info; } }
protected override void OnPinch(InputManager.TouchInfo touch_info0, InputManager.TouchInfo touch_info1, float pinch_length) { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) if (IsInteractive() && touch_info0 != null && touch_info1 != null) { Plane hitPlane = this.hitPlane; cameraMove = Vector3.get_zero(); Vector2 vector = (touch_info0.position + touch_info1.position) * 0.5f; Ray val = _camera.ScreenPointToRay(vector.ToVector3XY()); float num = default(float); if (hitPlane.Raycast(val, ref num)) { GlobalSettingsManager.WorldMapParam worldMapParam = MonoBehaviourSingleton <GlobalSettingsManager> .I.worldMapParam; fov -= pinch_length * worldMapParam.cameraPinchSpeed; fov = Mathf.Clamp(fov, worldMapParam.cameraFovMin, worldMapParam.cameraFovMax); _camera.set_fieldOfView(fov); UpdateCameraTransform(); } } }
private void OnTouchOff(InputManager.TouchInfo touch_info) { if (!IsEnableControll()) { return; } }
private void OnLongTouch(InputManager.TouchInfo touch_info) { if (IsEnableControll() && character == null) { return; } }
protected Vector3 GetCameraMove(InputManager.TouchInfo touch_info0, InputManager.TouchInfo touch_info1) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Unknown result type (might be due to invalid IL or missing references) Vector2 val = touch_info0.position - touch_info0.move; Vector2 position = touch_info0.position; Vector2 val2 = touch_info1.position - touch_info1.move; Vector2 position2 = touch_info1.position; return(GetCameraMove((val + val2) * 0.5f, (position + position2) * 0.5f)); }
private void OnTouchOff(InputManager.TouchInfo info) { if (enableInput) { moveRate = GetMove(info); } }
public void OnTouchOff(InputManager.TouchInfo touch_info) { if (touch_info == link_info) { punicon.Reset(); link_info = null; } }
protected virtual void OnTouchOn(InputManager.TouchInfo info) { //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) if (IsInteractive()) { cameraMove = Vector3.get_zero(); } }
protected virtual void OnTouchOff(InputManager.TouchInfo info) { //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Unknown result type (might be due to invalid IL or missing references) if (IsInteractive()) { cameraMove = GetCameraMove(info); } }
private void OnEnable() { if (CTRL) { InputManager.OnDrag = (InputManager.OnTouchDelegate)Delegate.Combine(InputManager.OnDrag, new InputManager.OnTouchDelegate(OnDrag)); InputManager.OnTap = (InputManager.OnTouchDelegate)Delegate.Combine(InputManager.OnTap, new InputManager.OnTouchDelegate(OnTap)); dragTouchInfo = null; } }
private void OnDrag(InputManager.TouchInfo touch_info) { //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) if (!(loader == null) && !MonoBehaviourSingleton <UIManager> .I.IsDisable() && MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSectionName() == nowSectionName) { loader.get_transform().Rotate(GameDefine.GetCharaRotateVector(touch_info)); } }
public void OnDrag(InputManager.TouchInfo touch_info) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) if (touch_info == link_info && (enableMultiTouch || MonoBehaviourSingleton <InputManager> .I.GetActiveInfoCount() < 2)) { punicon.SetEndPosition(Vector2.op_Implicit(touch_info.position)); } }
private void OnTouchOn(InputManager.TouchInfo touch_info) { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) if (!MonoBehaviourSingleton <PuniConManager> .IsValid() || !touch_info.enable) { PopTouchEffect(MonoBehaviourSingleton <UIManager> .I.uiCamera.ScreenToWorldPoint(touch_info.position.ToVector3XY())); } }
public void OnTouchOn(InputManager.TouchInfo touch_info) { //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) if (link_info == null && enableMultiTouch) { punicon.SetStartPosition(Vector2.op_Implicit(touch_info.position)); link_info = touch_info; } }
private void OnTouchOn(InputManager.TouchInfo touch_info) { if (IsEnableControll() && !(character == null) && !character.isLoading && touchInfo == null) { touchInfo = touch_info; initTouch = false; enableTouch = false; isInputtedTouch = false; checkTouch = false; } }
protected virtual void OnDoubleDrag(InputManager.TouchInfo touch_info0, InputManager.TouchInfo touch_info1) { //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Unknown result type (might be due to invalid IL or missing references) if (IsInteractive()) { cameraMove = Vector3.get_zero(); targetPos += GetCameraMove(touch_info0, touch_info1); } }
private void OnPinch(InputManager.TouchInfo touch_info0, InputManager.TouchInfo touch_info1, float pinch_length) { if (touch_info0 != null && touch_info1 != null && !MonoBehaviourSingleton <UIManager> .I.IsDisable() && GetSelfCharacter().IsEnableControl() && viewMode == VIEW_MODE.NORMAL) { if (MonoBehaviourSingleton <HomeManager> .IsValid()) { homeSceneParam.selfCameraZoomRate = Mathf.Clamp01(homeSceneParam.selfCameraZoomRate + pinch_length * homeSceneParam.selfCameraZoomCoef); } else { loungeSceneParam.selfCameraZoomRate = Mathf.Clamp01(loungeSceneParam.selfCameraZoomRate + pinch_length * loungeSceneParam.selfCameraZoomCoef); } } }
private void OnDrag(InputManager.TouchInfo touch_info) { //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) if (!(playerLoader == null) && !MonoBehaviourSingleton <UIManager> .I.IsDisable()) { string currentSectionName = MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSectionName(); if (!(currentSectionName != "StatusTop") || !(currentSectionName != "StatusAvatar")) { playerLoader.get_transform().Rotate(GameDefine.GetCharaRotateVector(touch_info)); } } }
protected Vector3 GetCameraMove(InputManager.TouchInfo info) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) Vector2 old_screen_pos = info.position - info.move; Vector2 position = info.position; return(GetCameraMove(old_screen_pos, position)); }
protected override void Awake() { //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Unknown result type (might be due to invalid IL or missing references) base.Awake(); Camera val = (!MonoBehaviourSingleton <UIManager> .IsValid()) ? MonoBehaviourSingleton <AppMain> .I.mainCamera : MonoBehaviourSingleton <UIManager> .I.uiCamera; punicon.get_transform().set_position(val.get_transform().get_position()); punicon.uiCamera = val; link_info = null; InputManager.OnTouchOn = (InputManager.OnTouchDelegate)Delegate.Combine(InputManager.OnTouchOn, new InputManager.OnTouchDelegate(OnTouchOn)); InputManager.OnTouchOff = (InputManager.OnTouchDelegate)Delegate.Combine(InputManager.OnTouchOff, new InputManager.OnTouchDelegate(OnTouchOff)); InputManager.OnDrag = (InputManager.OnTouchDelegate)Delegate.Combine(InputManager.OnDrag, new InputManager.OnTouchDelegate(OnDrag)); InputManager.OnLongTouch = (InputManager.OnTouchDelegate)Delegate.Combine(InputManager.OnLongTouch, new InputManager.OnTouchDelegate(OnLongTouch)); InputManager.OnDoubleDrag = (InputManager.OnDoubleTouchDelegate)Delegate.Combine(InputManager.OnDoubleDrag, new InputManager.OnDoubleTouchDelegate(OnDoubleDrag)); }
public void OnDoubleDrag(InputManager.TouchInfo touch_info0, InputManager.TouchInfo touch_info1) { //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) if (enableMultiTouch) { if (touch_info0 == link_info && touch_info0.enable) { punicon.SetEndPosition(Vector2.op_Implicit(touch_info0.position)); } else if (touch_info1 == link_info && touch_info1.enable) { punicon.SetEndPosition(Vector2.op_Implicit(touch_info1.position)); } } }
protected virtual float GetMove(InputManager.TouchInfo info) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_006b: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Unknown result type (might be due to invalid IL or missing references) Vector2 vector = info.position - info.move; Vector2 position = info.position; vector.y = 0f; position.y = 0f; Vector3 position2 = targetCameraTransform.get_position(); float y = position2.y; Vector3 val = targetCamera.ScreenToWorldPoint(vector.ToVector3XY(y)); Vector3 val2 = targetCamera.ScreenToWorldPoint(position.ToVector3XY(y)); Vector3 val3 = val2 - val; val3.y = 0f; float num = val3.get_magnitude(); if (info.move.x < 0f) { num = 0f - num; } return(num * moveCoef); }
public override void OnChangeEnableControll(bool enable) { if (!(self == null)) { CancelInput(); if (touchInfo != null && initTouch) { touchInfo = null; enableTouch = false; isInputtedTouch = false; self.SetEnableTap(false); } if (self.isGuardWalk || self.actionID == (Character.ACTION_ID) 18) { self.ActIdle(true, -1f); } moveStickInfo = null; lastActCommandType = COMMAND_TYPE.NONE; lastActCommandTime = -1f; base.OnChangeEnableControll(enable); } }
private void OnTap(InputManager.TouchInfo info) { //IL_00a7: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Unknown result type (might be due to invalid IL or missing references) //IL_00d7: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) if (IsEnableControl()) { HomeCamera homeCamera = null; if (MonoBehaviourSingleton <HomeManager> .IsValid()) { homeCamera = MonoBehaviourSingleton <HomeManager> .I.HomeCamera; } else if (MonoBehaviourSingleton <LoungeManager> .IsValid()) { homeCamera = MonoBehaviourSingleton <LoungeManager> .I.HomeCamera; } else if (MonoBehaviourSingleton <GuildStageManager> .IsValid()) { homeCamera = MonoBehaviourSingleton <GuildStageManager> .I.HomeCamera; } if (homeCamera.viewMode == HomeCamera.VIEW_MODE.NORMAL) { HomeCharacterBase homeCharacterBase = null; HomeStageTouchEvent homeStageTouchEvent = null; if (targetEvent != null) { targetEvent.DispatchEvent(); } else if (targetChara != null) { homeCharacterBase = targetChara; } else { Ray val = default(Ray); if (MonoBehaviourSingleton <HomeManager> .IsValid() || MonoBehaviourSingleton <LoungeManager> .IsValid() || MonoBehaviourSingleton <GuildStageManager> .IsValid()) { val = homeCamera.targetCamera.ScreenPointToRay(Vector2.op_Implicit(info.position)); } RaycastHit val2 = default(RaycastHit); if (Physics.Raycast(val, ref val2, 100f, 259)) { homeCharacterBase = val2.get_transform().GetComponent <HomeCharacterBase>(); homeStageTouchEvent = val2.get_transform().GetComponent <HomeStageTouchEvent>(); } } if (homeCharacterBase != null) { if (MonoBehaviourSingleton <GameSceneManager> .I.IsEventExecutionPossible()) { if (homeCharacterBase is HomeNPCCharacter) { lastTargetNPCID = ((HomeNPCCharacter)homeCharacterBase).npcInfo.npcID; } else { lastTargetNPCID = 0; } if (homeCharacterBase.DispatchEvent()) { homeCharacterBase.StopMoving(); } } } else if (homeStageTouchEvent != null) { homeStageTouchEvent.DispatchEvent(); } } } }
private bool IsTouchedInAutoMode() { InputManager.TouchInfo stickInfo = MonoBehaviourSingleton <InputManager> .I.GetStickInfo(); return(touchInfo != null || stickInfo != null); }
protected virtual void OnPinch(InputManager.TouchInfo touch_info0, InputManager.TouchInfo touch_info1, float pinch_length) { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00be: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00c8: Unknown result type (might be due to invalid IL or missing references) //IL_00d1: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_00e6: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_00f9: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_0100: Unknown result type (might be due to invalid IL or missing references) //IL_0105: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_0139: Unknown result type (might be due to invalid IL or missing references) //IL_014e: Unknown result type (might be due to invalid IL or missing references) if (IsInteractive() && touch_info0 != null && touch_info1 != null) { Plane hitPlane = this.hitPlane; cameraMove = Vector3.get_zero(); Vector2 val = (touch_info0.position + touch_info1.position) * 0.5f; Ray val2 = _camera.ScreenPointToRay(val.ToVector3XY()); float num = default(float); if (hitPlane.Raycast(val2, ref num)) { Vector3 point = val2.GetPoint(num); distance -= pinch_length * 0.01f; distance = Mathf.Clamp(distance, cameraManualDistanceMin, cameraManualDistanceMax); distanceManual = distance; UpdateCameraTransform(); Vector2 val3 = Utility.ToVector2XY(_camera.WorldToScreenPoint(point)); Vector2 val4 = Utility.ToVector2XY(_camera.WorldToScreenPoint(targetPos)); Vector2 vector = val4 + (val3 - val); val2 = _camera.ScreenPointToRay(vector.ToVector3XY()); if (hitPlane.Raycast(val2, ref num)) { Vector3 point2 = val2.GetPoint(num); point2.y = 0f; Vector3 val5 = point2 - targetPos; if (!(val5.get_magnitude() < 1.401298E-45f)) { targetPos = point2; } } } } }
public static Vector3 GetCharaRotateVector(InputManager.TouchInfo touch_info) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) return(GetCharaRotateVector(touch_info.move)); }