Beispiel #1
0
        public override void OnAwake()
        {
            base.OnAwake();

            if (_instance != null)
            {
                GameObject.Destroy(_instance);
            }
            _instance = this;
        }
Beispiel #2
0
        public override void OnAwake()
        {
            if (Instance != null)
            {
                Destroy(Instance);
            }
            Instance = this;

            GameEvents.OnGameSettingsApplied.Add(LoadSettings);
            GameEvents.onGameStateLoad.Add(LoadSettings);
        }