Advertisement
Guest User

Untitled

a guest
May 4th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.21 KB | None | 0 0
  1.     private static EventManager instance = null;
  2.     public static EventManager Instance
  3.     {
  4.         get
  5.         {
  6.             if(instance == null){
  7.                 instance = FindObjectOfType<EventManager>();
  8.             }
  9.             return instance;
  10.         }
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement