Created
December 13, 2018 20:43
-
-
Save tsraveling/77f8731c6f09388078eaf974cc196282 to your computer and use it in GitHub Desktop.
GameObject Manager Pattern #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
| { | |
| ... | |
| 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