Skip to content

Instantly share code, notes, and snippets.

@tanakaedu
Last active April 2, 2018 07:40
Show Gist options
  • Save tanakaedu/91ddd54bc131b94658102f4b5b65eb4d to your computer and use it in GitHub Desktop.
Save tanakaedu/91ddd54bc131b94658102f4b5b65eb4d to your computer and use it in GitHub Desktop.
int action = Random.Range(0, 2);
if (action == 1)
{
// ジャンプ
m_MonoBehaviour.SetVerticalMovement(m_MonoBehaviour.jumpPower);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment