Example #1
0
 void Awake()
 {
     if (Instance != null && Instance != this)
     {
         Destroy(this.gameObject);
     }
     else if (Instance == null)
     {
         Instance      = this;
         localeManager = new LocaleManager();
         localeManager.initialize();
         phoneManager = new PhoneManager();
         phoneManager.loadIn(false);
         languageManager = new LanguageManager();
         DontDestroyOnLoad(this.gameObject);
     }
 }