Skip to content

Instantly share code, notes, and snippets.

@Gillissie
Created July 12, 2011 01:22
Show Gist options
  • Save Gillissie/1077196 to your computer and use it in GitHub Desktop.
Save Gillissie/1077196 to your computer and use it in GitHub Desktop.
// Check for arrow keys to set the orientation of the brush.
if (Input.GetKeyDown(KeyCode.LeftArrow))
{
brush.rotate(-1);
}
if (Input.GetKeyDown(KeyCode.RightArrow))
{
brush.rotate(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment