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