Created
October 4, 2014 14:41
-
-
Save takashiski/14b145ccd9667a77f866 to your computer and use it in GitHub Desktop.
Update内の処理を一度しか行わない方法
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
private bool nantokaFlag = true; | |
void Update() | |
{ | |
if(nantokaFlag && ゲームオーバー条件) | |
{ | |
nantokaFlag = false; | |
GameOver(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment