Created
April 24, 2018 09:44
-
-
Save todorok1/9e178eb721839820465986481abd611f 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 BoostSphere(){ | |
// 向きと力の計算 | |
Vector3 force = forceMagnitude * forceDirection; | |
// 力を加えるメソッド | |
rb.AddForce(force, ForceMode.Impulse); | |
// 距離測定中フラグをTrueにセット | |
isCheckingDistance = true; | |
// 角度矢印を非表示にする | |
angleArrowObject.SetActive(false); | |
// ボタンを押せないようにする | |
SetAngleButtonState(false); | |
// ガイドを非表示にする | |
guideManager.SetGuidesState(false); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment