예제 #1
0
        protected void ProcessKeyControls()
        {
            if (debugConsole.IsOpen())
            {
                return;
            }

            if (!enableDirectionalButtonsPanning)
            {
                return;
            }

            float dx = Input.GetAxis("Horizontal") * xSpeed * 0.02f;
            float dz = Input.GetAxis("Vertical") * ySpeed * 0.02f;

            var dVector = new Vector3(dx, 0, dz);

            if (dVector.magnitude < 0.005f)
            {
                return;
            }

            Vector3 position = transform.position + dVector;

            SmoothMoveCamera(position);
        }
예제 #2
0
        public void Update()
        {
            if (debugConsole.IsOpen())
            {
                return;
            }

            if (Input.GetButtonDown("Generate Card"))
            {
                GenerateCard(0, new Vector3());
            }
        }