Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Unityチュートリアル・打ち出す力のメーターを上下させるスクリプト。
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
You can’t perform that action at this time.