Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region SINGLETON
- private static ScriptName _singleton;
- public static ScriptName Singleton
- {
- get
- {
- if (_singleton == null)
- {
- _singleton = GameObject.FindObjectOfType<ScriptName>();
- }
- return _singleton;
- }
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement