Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created September 3, 2020 08:08
Show Gist options
  • Save todorok1/ed6e6471509aa6381cf64dfcc3f7f880 to your computer and use it in GitHub Desktop.
Save todorok1/ed6e6471509aa6381cf64dfcc3f7f880 to your computer and use it in GitHub Desktop.
Destroyメソッドの引数でスクリプトを渡しちゃうケース。
// このスクリプトがアタッチされているGameObjectを破棄したい……
Destroy(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment