Skip to content

Instantly share code, notes, and snippets.

@tsraveling
Created December 13, 2018 20:43
Show Gist options
  • Save tsraveling/77f8731c6f09388078eaf974cc196282 to your computer and use it in GitHub Desktop.
Save tsraveling/77f8731c6f09388078eaf974cc196282 to your computer and use it in GitHub Desktop.
GameObject Manager Pattern #unity
{
...
public static ExampleManager getManager()
{
GameObject ret = GameObject.Find("ExampleManager");
return ret.GetComponent<ExampleManager>();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment