Skip to content

Instantly share code, notes, and snippets.

@Yecats
Created October 16, 2019 03:44
Show Gist options
  • Select an option

  • Save Yecats/971eeedd076a164ea1e84fdf570f8244 to your computer and use it in GitHub Desktop.

Select an option

Save Yecats/971eeedd076a164ea1e84fdf570f8244 to your computer and use it in GitHub Desktop.
Part 5
//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