Skip to content

Instantly share code, notes, and snippets.

@teach310
Last active July 1, 2016 03:37
Show Gist options
  • Save teach310/2858975d90b7295a03de503a84131076 to your computer and use it in GitHub Desktop.
Save teach310/2858975d90b7295a03de503a84131076 to your computer and use it in GitHub Desktop.
// state : Angry
if (currentState == 0) {
Debug.Log ("Angry!");
//Smileになる条件
if (Input.GetKeyDown (KeyCode.S)) {
currentState = 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment