Пример #1
0
 /// <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;
 }
Пример #2
0
        /// <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;
            }
        }
Пример #3
0
        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;
        }
Пример #4
0
 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;
 }