Exemplo n.º 1
0
 //for the sake of the apply to selection buttons...
 private void OnSelectionChange()
 {
     BeastConfig.RefreshConfig();
     uiSelectedSky = null;
     if (Selection.activeGameObject)
     {
         uiSelectedSky = Selection.activeGameObject.GetComponent <Sky>();
     }
     if (Selection.GetFiltered(typeof(Light), SelectionMode.Deep).Length > 0)
     {
         repaintOften = true;
     }
     else
     {
         repaintOften = false;
     }
     this.Repaint();
 }
Exemplo n.º 2
0
 private void OnProjectChange()
 {
     BeastConfig.RefreshConfig();
     this.Repaint();
 }