Пример #1
0
        private void Awake()
        {
            instance = this;

            Config = GameInstance.Get();
            InitializeSubsystems();

            DontDestroyOnLoad(this);
        }
Пример #2
0
        private void Awake()
        {
            if (!GameInstanceBase.Get())
            {
                GameInstanceBase gameInstance = new GameObject("GameInstance").AddComponent <GameInstanceBase>();
            }

            InitializeSubsystems();
        }