Ejemplo n.º 1
0
 void OnDestroy()
 {
     if (this.consoleVM != null)
     {
         this.consoleVM.Stop();
         this.consoleVM = null;
     }
 }
Ejemplo n.º 2
0
        void OnEnable()
        {
            loggingVerticalScrollBarPercent = 1f;
            lineHeight                 = 30;
            toolbarHeight              = 20f;
            splitterRectHeight         = 10f;
            verticalSplitterPercent    = 0.7f;
            verticalSplitterLineRect   = new Rect(0f, (position.height * verticalSplitterPercent), position.width, 1);
            verticalSplitterRect       = new Rect(verticalSplitterLineRect.x, verticalSplitterLineRect.y - splitterRectHeight / 2f, verticalSplitterLineRect.width, splitterRectHeight);
            this.renderedList          = new List <LoggingData>();
            this.renderedLineCountList = new List <int>();

            if (consoleVM == null)
            {
                consoleVM = new ConsoleVM();
            }
            consoleVM.OnEnable();
        }