Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Unityチュートリアル・角度に合わせて矢印を動かすスクリプト。
void ChangeArrowAngle(){
// 角度の矢印をボールの位置に移動
arrowRt.position = RectTransformUtility.WorldToScreenPoint(Camera.main, transform.position);
// Z軸を中心に、forceAngleの値の回転を作って角度の矢印にセット
arrowRt.rotation = Quaternion.AngleAxis(forceAngle, Vector3.forward);
// GuideManagerのSetGuidePositions()を呼んでガイドを移動させる
if (!isFlying){
guideManager.SetGuidePositions();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.