Eonirr

Untitled

Mar 14th, 2025
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. public static Singleton Instance;
  2.  
  3. private void Awake()
  4. {
  5. if (Instance != null && Instance != this)
  6. {
  7. Destroy(this);
  8. }
  9. else
  10. {
  11. Instance = this;
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment