Created
October 16, 2019 03:44
-
-
Save Yecats/971eeedd076a164ea1e84fdf570f8244 to your computer and use it in GitHub Desktop.
Part 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Rotation variables | |
| private bool _rightMouseDown = false; | |
| /// <summary> | |
| /// Sets whether the player has the right mouse button down | |
| /// </summary> | |
| /// <param name="context"></param> | |
| public void OnRightMouseButtonPushed(InputAction.CallbackContext context) | |
| { | |
| _rightMouseDown = context.ReadValue<float>() == 1; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment