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