Beispiel #1
0
#pragma warning restore 0649

    private void Start()
    {
        // TODO: move this elsewhere
        SettingsLoader.LoadInitialSettings();

        _soundOnToggle.onValueChanged.AddListener(OnSoundCheckboxChanged);
        _soundOnToggle.isOn = SettingsLoader.isSoundOn;
    }
Beispiel #2
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance  = this;
         State     = GameState.Initializing;
         InitState = InitializationState.Initializing;
         SettingsLoader.LoadInitialSettings();
         RegisterCallbacks();
         InitState = InitializationState.Ready;
     }
     else
     {
         Destroy(gameObject);
     }
 }