Created
May 1, 2018 13:10
-
-
Save todorok1/7b778195bc31cad872093b0440fd66e2 to your computer and use it in GitHub Desktop.
Unityチュートリアル・ゴルフゲームの進行を制御するスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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