예제 #1
0
        //CONSTRUCTOR
        /// <summary>Struct Constructor. Passes all properties to the struct and initializes them.</summary>
        public MovementInput(Vector3 _position, Quaternion _rotation, MovementProfile _data)// float _verticalInput, float _horizontalInput, bool _running, bool _sneaking, bool _strafeLeft, bool _strafeRight)
        {
            //ORIENTATION
            position = _position;
            rotation = _rotation;

            //MOVE
            verticalInput   = _data.verticalMovement;
            horizontalInput = _data.horizontalMovement;

            //STRAFE
            strafeLeft  = _data.strafeLeft;
            strafeRight = _data.strafeRight;

            //RUN
            running = _data.running;

            //SNEAK
            sneaking = _data.sneaking;
        }