Created
April 21, 2018 05:53
-
-
Save todorok1/563619c3fbdcf27ba9d1f6fcd7449279 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 WaitAtBoundaryValue(){ | |
// 前のフレームが呼ばれて、処理が完了するまでにかかった時間を加算 | |
waitTime += Time.deltaTime; | |
// waitTimeがdelayTimeを超えたら増加フラグの反転 | |
if (waitTime >= delayTime){ | |
isMeterIncreasing = !isMeterIncreasing; | |
waitTime = 0f; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment