Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SingleInstance : MonoBehaviour
- {
- public static SingleInstance Instance
- {
- get
- {
- return _instance != null ? _instance : (_instance = FindObjectOfType<SingleInstance>())
- }
- }
- private static SingleInstance _instance;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement