コード例 #1
0
    public static bool IsCameraMoveFlag(VirtualCameraController _ctrl)
    {
        if (Object.op_Equality((Object)_ctrl, (Object)null))
        {
            return(false);
        }
        VirtualCameraController.NoCtrlFunc noCtrlCondition = _ctrl.NoCtrlCondition;
        bool flag = true;

        if (noCtrlCondition != null)
        {
            flag = noCtrlCondition();
        }
        return(!flag);
    }
コード例 #2
0
        protected virtual void LateUpdate()
        {
            this.isControlNow = false;
            if (!this.craft && Singleton <HSceneFlagCtrl> .Instance.BeforeHWait)
            {
                return;
            }
            if (!this.isControlNow)
            {
                VirtualCameraController.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)
            {
                return;
            }
            VirtualCameraController.NoCtrlFunc keyCondition = this.KeyCondition;
            bool flag1 = true;

            if (keyCondition != null)
            {
                flag1 = keyCondition();
            }
            VirtualCameraController cameraController = this;

            cameraController.isControlNow = ((cameraController.isControlNow ? 1 : 0) | (!flag1 ? 0 : (this.InputKeyProc() ? 1 : 0))) != 0;
        }
コード例 #3
0
 protected override void LateUpdate()
 {
     if (this.bLock)
     {
         return;
     }
     this.isControlNow = false;
     if (!this.isControlNow)
     {
         VirtualCameraController.NoCtrlFunc noCtrlCondition = this.NoCtrlCondition;
         bool flag = false;
         if (noCtrlCondition != null)
         {
             foreach (VirtualCameraController.NoCtrlFunc invocation in noCtrlCondition.GetInvocationList())
             {
                 flag |= invocation();
             }
         }
         if (!flag)
         {
             if (this.InputTouchProc())
             {
                 this.isControlNow = true;
             }
             else if (this.InputMouseProc())
             {
                 this.isControlNow = true;
             }
         }
     }
     if (!this.isControlNow)
     {
         VirtualCameraController.NoCtrlFunc keyCondition = this.KeyCondition;
         bool flag = true;
         if (keyCondition != null)
         {
             foreach (VirtualCameraController.NoCtrlFunc invocation in keyCondition.GetInvocationList())
             {
                 flag &= invocation();
             }
         }
         CraftCamera craftCamera = this;
         craftCamera.isControlNow = ((craftCamera.isControlNow ? 1 : 0) | (!flag ? 0 : (this.InputKeyProc() ? 1 : 0))) != 0;
     }
     if (!this.isControlNow)
     {
         VirtualCameraController.NoCtrlFunc zoomCondition = this.ZoomCondition;
         bool flag1 = true;
         if (zoomCondition != null)
         {
             foreach (VirtualCameraController.NoCtrlFunc invocation in zoomCondition.GetInvocationList())
             {
                 flag1 &= invocation();
             }
         }
         bool        flag2       = Object.op_Implicit((Object)EventSystem.get_current()) && EventSystem.get_current().IsPointerOverGameObject();
         CraftCamera craftCamera = this;
         craftCamera.isControlNow = ((craftCamera.isControlNow ? 1 : 0) | (flag2 || !flag1 ? 0 : (this.InputMouseWheelZoomProc() ? 1 : 0))) != 0;
     }
     if (Object.op_Inequality((Object)EventSystem.get_current(), (Object)null) && !EventSystem.get_current().IsPointerOverGameObject())
     {
         return;
     }
     this.isControlNow = false;
 }