Esempio n. 1
0
 private static ObjectIds Instance()
 {
     if (instance == null)
     {
         instance = PersistentSingleton.Get <ObjectIds>();
         if (instance != null)
         {
             instance.Setup(0);
         }
     }
     return(instance);
 }
Esempio n. 2
0
 public static Editors Instance()
 {
     if (instance == null)
     {
         instance = PersistentSingleton.Get <Editors>();
         if (instance != null)
         {
             instance.Setup(0);
         }
                         #if DEV_MODE
         else if (!ApplicationUtility.IsQuitting)
         {
             Debug.LogWarning("Editors.Instance() returning null!");
         }
                         #endif
     }
     return(instance);
 }