Ejemplo n.º 1
0
        public void OnApplicationStart()
        {
            if (_init)
            {
                return;
            }
            _init = true;

            SettingsUI.OnLoad();
            ModMenuUI.OnLoad();
        }
Ejemplo n.º 2
0
 public void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
         SceneManager.activeSceneChanged += SceneManagerOnActiveSceneChanged;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(this);
     }
 }