Exemplo n.º 1
0
        // CHECK PLAYER INPUT & PERFORM APPROPRIATE ACTIONS
        public void UpdatePlayerInputValues()
        {
            // AXES
            inputValuesScript.vertMovement = RoundAxisVal(inputPlayer.GetAxis("Move Vertical"));
            inputValuesScript.horMovement  = RoundAxisVal(inputPlayer.GetAxis("Move Horizontal"));
            inputValuesScript.vertAim      = RoundAxisVal(inputPlayer.GetAxis("Aim Vertical"));
            inputValuesScript.horAim       = RoundAxisVal(inputPlayer.GetAxis("Aim Horizontal"));

            // BUTTONS
            inputValuesScript.leftToolOrPageLeft    = inputPlayer.GetButton("Left Tool / Page Left");
            inputValuesScript.rightToolOrPageRight  = inputPlayer.GetButton("Right Tool / Page Right");
            inputValuesScript.quickselectOrMoreInfo = inputPlayer.GetButton("Quickselect / More Info");
            inputValuesScript.runOrCursorSpeed      = inputPlayer.GetButton("Run / Menu Speed");
            inputValuesScript.heal = inputPlayer.GetButton("Heal");
        }