Пример #1
0
 /// <summary>
 /// Called when destroying this instance.
 /// </summary>
 public void OnDestroy()
 {
     if (_instance == this)
     {
         _instance = null;
     }
     SaveSettings();
 }
Пример #2
0
        public void Start()
        {
            _instance = this;
            DontDestroyOnLoad(this);
            PluginConfiguration config = PluginConfiguration.CreateForType <KartographSettings> ();

            config.load();
            _theme = config.GetValue <int> ("Theme", 0);
        }
Пример #3
0
 public void Start()
 {
     _instance = this;
     DontDestroyOnLoad (this);
     PluginConfiguration config = PluginConfiguration.CreateForType<KartographSettings> ();
     config.load ();
     _theme = config.GetValue<int> ("Theme", 0);
 }
Пример #4
0
 /// <summary>
 /// Called when destroying this instance.
 /// </summary>
 public void OnDestroy()
 {
     if (_instance == this)
         _instance = null;
     SaveSettings ();
 }