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

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