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

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