public static bool IsCameraMoveFlag(CameraControl_Ver2 _ctrl) { if (Object.op_Equality((Object)_ctrl, (Object)null)) { return(false); } BaseCameraControl_Ver2.NoCtrlFunc noCtrlCondition = _ctrl.NoCtrlCondition; bool flag = true; if (noCtrlCondition != null) { flag = noCtrlCondition(); } return(!flag); }
protected new void LateUpdate() { if (!Singleton <Scene> .IsInstance() || !Singleton <Scene> .Instance.IsNowLoading & !Singleton <Scene> .Instance.IsNowLoadingFade) { this.isControlNow = false; this.SetCtrlSpeed(); if (!this.isControlNow) { BaseCameraControl_Ver2.NoCtrlFunc zoomCondition = this.ZoomCondition; bool flag = true; if (zoomCondition != null) { flag = zoomCondition(); } CameraControl cameraControl = this; cameraControl.isControlNow = ((cameraControl.isControlNow ? 1 : 0) | (!flag ? 0 : (this.InputMouseWheelZoomProc() ? 1 : 0))) != 0; } if (!this.isControlNow) { BaseCameraControl_Ver2.NoCtrlFunc noCtrlCondition = this.NoCtrlCondition; bool flag = false; if (noCtrlCondition != null) { flag = noCtrlCondition(); } if (!flag) { if (this.InputTouchProc()) { this.isControlNow = true; } else if (this.InputMouseProc()) { this.isControlNow = true; } } } if (!this.isControlNow) { BaseCameraControl_Ver2.NoCtrlFunc keyCondition = this.KeyCondition; bool flag = true; if (keyCondition != null) { flag = keyCondition(); } CameraControl cameraControl = this; cameraControl.isControlNow = ((cameraControl.isControlNow ? 1 : 0) | (!flag ? 0 : (this.InputKeyProc() ? 1 : 0))) != 0; } this.CameraUpdate(); } if (!Object.op_Implicit((Object)this.targetTex)) { return; } if (Object.op_Inequality((Object)this.transBase, (Object)null)) { this.targetTex.set_position(this.transBase.TransformPoint(this.CamDat.Pos)); } else { this.targetTex.set_position(this.CamDat.Pos); } Vector3 position = ((Component)this).get_transform().get_position(); position.y = this.targetTex.get_position().y; ((Component)this.targetTex).get_transform().LookAt(position); this.targetTex.Rotate(new Vector3(90f, 0.0f, 0.0f)); if (Object.op_Implicit((Object)this.targetRender)) { this.targetRender.set_enabled(this.isControlNow & this.isOutsideTargetTex); } if (!Singleton <GameCursor> .IsInstance() || !this.isCursorLock) { return; } Singleton <GameCursor> .Instance.SetCursorLock(this.isControlNow& this.isOutsideTargetTex); }