Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created April 24, 2018 09:44
Show Gist options
  • Save todorok1/9e178eb721839820465986481abd611f to your computer and use it in GitHub Desktop.
Save todorok1/9e178eb721839820465986481abd611f to your computer and use it in GitHub Desktop.
Unityチュートリアル・角度に合わせて矢印を動かすスクリプト。
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