Skip to content

Instantly share code, notes, and snippets.

@kazuooooo
Created December 31, 2014 07:49
Show Gist options
  • Save kazuooooo/d9d4dec8ee2fddff10d6 to your computer and use it in GitHub Desktop.
Save kazuooooo/d9d4dec8ee2fddff10d6 to your computer and use it in GitHub Desktop.
//動く
void OnBecameInvisible() {
Destroy (this.gameObject);
}
//動かない
// void OnBecomeInvisible() {
// Destroy(this.gameObject);
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment