예제 #1
0
        public virtual void MoveInput()
        {
            // gets input
            cc.input.x = horizontalInput.GetAxisRaw();
            cc.input.z = verticallInput.GetAxisRaw();

            cc.ControlKeepDirection();
        }
예제 #2
0
        public virtual void MoveInput()
        {
            if (!lockMoveInput)
            {
                // gets input
                cc.input.x = horizontalInput.GetAxisRaw();
                //cc.input.x = 1;

                cc.input.z = verticallInput.GetAxisRaw();
            }

            if (true)
            {
                _toogleWalk = !_toogleWalk;
                SetWalkByDefault(false);
            }

            cc.ControlKeepDirection();
        }