Created
April 21, 2018 05:44
-
-
Save todorok1/b23af26b55a44fd2f1aae832ef4b687e 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 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