Exemplo n.º 1
0
 /// <summary>
 /// Called by Unity once per frame.
 /// </summary>
 public void Update( )
 {
     if (UiActive( ) && _window.IsVisible)
     {
         _EventHandler.Update( );
     }
 }
Exemplo n.º 2
0
        // Called by Unity once per frame.
        public void Update( )
        {
            if (ResearchAndDevelopment.Instance == null)
            {
                return;
            }

            if (PartLoader.Instance == null)
            {
                return;
            }

            if (UiActive( ) && (_checklistWindow.IsVisible || _statusWindow.IsVisible( )))
            {
                ScienceEventHandler.Update( );
            }
        }