Last active
September 17, 2017 08:51
-
-
Save unitycoder/63348c8eaecebc9c918fcd786db05366 to your computer and use it in GitHub Desktop.
Super Singleton Unity
This file contains hidden or 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
| //Reminder if you want a global singleton gameobject in Unity | |
| // create it via with | |
| [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] | |
| public static void MyFirstMethodToRun() | |
| { | |
| // | |
| } | |
| // https://twitter.com/Naxum/status/867837810610458625 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment