Example #1
0
 void Awake()
 {
     if (instance == null)
     {
         instance      = this;
         imiManagerImp = ImiManagerImp.GetInstance();
         DontDestroyOnLoad(this.gameObject);
         init();
     }
 }
Example #2
0
 public static ImiManagerImp GetInstance()
 {
     if (instance == null)
     {
         lock (_lock)
         {
             if (instance == null)
             {
                 instance = new ImiManagerImp();
             }
         }
     }
     return(instance);
 }