Skip to content

Instantly share code, notes, and snippets.

@takashiski
Created October 4, 2014 14:41
Show Gist options
  • Save takashiski/14b145ccd9667a77f866 to your computer and use it in GitHub Desktop.
Save takashiski/14b145ccd9667a77f866 to your computer and use it in GitHub Desktop.
Update内の処理を一度しか行わない方法
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