/// <summary> /// Callback for object destruction. /// </summary> public void OnDestroy() { RenderingManager.RemoveFromPostDrawQueue (0, OnDraw); PluginConfiguration config = PluginConfiguration.CreateForType<KartographSettings> (); config.load (); config.SetValue ("FocusWindowPos",_windowPos); config.save (); if (_instance == this) _instance = null; }
/// <summary> /// Callback for object destruction. /// </summary> public void OnDestroy() { RenderingManager.RemoveFromPostDrawQueue(0, OnDraw); PluginConfiguration config = PluginConfiguration.CreateForType <KartographSettings> (); config.load(); config.SetValue("FocusWindowPos", _windowPos); config.save(); if (_instance == this) { _instance = null; } }
public void Start() { if (_instance) { Destroy(_instance); } _instance = this; _winID = GUIUtility.GetControlID(FocusType.Passive); Debug.Log("Focus Select Start"); PluginConfiguration config = PluginConfiguration.CreateForType <KartographSettings> (); config.load(); _windowPos = config.GetValue <Rect> ("FocusWindowPos", new Rect()); _windowPos.width = 0.0f; _windowPos.height = 0.0f; }
public void Start() { if (_instance) Destroy (_instance); _instance = this; _winID = GUIUtility.GetControlID (FocusType.Passive); Debug.Log ("Focus Select Start"); PluginConfiguration config = PluginConfiguration.CreateForType<KartographSettings> (); config.load (); _windowPos = config.GetValue<Rect> ("FocusWindowPos",new Rect()); _windowPos.width = 0.0f; _windowPos.height = 0.0f; }