Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Last active September 17, 2017 08:51
Show Gist options
  • Select an option

  • Save unitycoder/63348c8eaecebc9c918fcd786db05366 to your computer and use it in GitHub Desktop.

Select an option

Save unitycoder/63348c8eaecebc9c918fcd786db05366 to your computer and use it in GitHub Desktop.
Super Singleton Unity
//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