Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created April 24, 2018 09:40
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/fb80e7d2a66563697e96b77524fe97f5 to your computer and use it in GitHub Desktop.
Save todorok1/fb80e7d2a66563697e96b77524fe97f5 to your computer and use it in GitHub Desktop.
Unityチュートリアル・角度に合わせて矢印を動かすスクリプト。
void Update(){
// キーボードからの入力を監視
CheckInput();
// forceAngleの変更を反映する
CalcForceDirection();
// powerMeterを動かす
MovePowerMeter();
// 角度を変更する
ChangeForceAngle();
ChangeArrowAngle();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment