Skip to content

Instantly share code, notes, and snippets.

@kirillrybin
Created September 18, 2015 08:55
Show Gist options
  • Save kirillrybin/34f8d926c79eec73ed7d to your computer and use it in GitHub Desktop.
Save kirillrybin/34f8d926c79eec73ed7d to your computer and use it in GitHub Desktop.
Unity3d key combo sample
void Update()
{
if ((Input.GetKey(KeyCode.RightControl) || Input.GetKey(KeyCode.LeftControl)) && Input.GetKeyDown(KeyCode.Z))
{
// CTRL + Z
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment