Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created April 21, 2018 05:44
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/b23af26b55a44fd2f1aae832ef4b687e to your computer and use it in GitHub Desktop.
Save todorok1/b23af26b55a44fd2f1aae832ef4b687e to your computer and use it in GitHub Desktop.
Unityチュートリアル・打ち出す力のメーターを上下させるスクリプト。
void Update(){
// Input.GetKeyUpはキーが一度押された後、それが離された時にTrueを返す
if (Input.GetKeyUp(KeyCode.B)){
isBoostPressed = true;
}
// forceAngleの変更を反映する
CalcForceDirection();
// powerMeterを動かす
MovePowerMeter();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment