Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created May 1, 2018 13:10
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/7b778195bc31cad872093b0440fd66e2 to your computer and use it in GitHub Desktop.
Save todorok1/7b778195bc31cad872093b0440fd66e2 to your computer and use it in GitHub Desktop.
Unityチュートリアル・ゴルフゲームの進行を制御するスクリプト
void ReadyToBoost(){
// 飛行中フラグをFalseにセット
isFlying = false;
// 距離測定中フラグをFalseにセット
isCheckingDistance = false;
// 現在の距離をリセット
SetDistanceText(0f);
// 角度矢印を表示する
angleArrowObject.SetActive(true);
// ボタンを押せるようにする
SetAngleButtonState(true);
// ガイドを表示する
guideManager.SetGuidesState(true);
// ボールの運動状態を確認
canButtonPress = true;
boostButton.interactable = canButtonPress;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment