Esempio n. 1
0
        void OnEnable()
        {
            if (Instance != null)
            {
                Debug.LogWarning("Multiple ProfileContainers loaded!");
                DestroyImmediate(gameObject);
                return;
            }

            Instance = this;
            DontDestroyOnLoad(gameObject);

            if (RuntimeProfile.Main == null)
            {
                RuntimeProfile.CreateMain(store);
                RuntimeProfile.Main.Apply();
            }
        }