Skip to content

Instantly share code, notes, and snippets.

@todorok1
Last active April 12, 2018 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/836f81efeab576b56a57ab897ea17460 to your computer and use it in GitHub Desktop.
Save todorok1/836f81efeab576b56a57ab897ea17460 to your computer and use it in GitHub Desktop.
Unityチュートリアル・ボールの飛距離を計算するスクリプト。
void FixedUpdate(){
Debug.Log("transform x : " + gameObject.transform.position.x.ToString());
Debug.Log("IsSleeping : " + rb.IsSleeping());
if (!isBoostPressed){
// キーまたはボタンが押されていなければ
// 処理の切り替えをせず抜ける
return;
}
// イカ省略
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment