Skip to content

Instantly share code, notes, and snippets.

@maco1028
Last active May 5, 2017 05:01
Show Gist options
  • Save maco1028/980a98185254bc5663a4 to your computer and use it in GitHub Desktop.
Save maco1028/980a98185254bc5663a4 to your computer and use it in GitHub Desktop.
Random_Switch #unity
public int anime_num = 0; anime_num = Random.Range (1,5); switch(anime_num) { case 1: print("Atack1"); break; case 2: print("Run"); break; case3: print("walk"); break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment