private void Awake()
        {
            useEditor         = false;
            ToolTipBackground = new Texture2D(4, 4);
            List <Color> colors = new List <Color>();

            for (int x = 0; x < ToolTipBackground.width * ToolTipBackground.height; x++)
            {
                colors.Add(Color.white);
            }
            ToolTipBackground.SetPixels(colors.ToArray());

            if (HighLogic.LoadedScene == GameScenes.LOADING && Managers == null)
            {
                Managers = EVEManagerBase.GetManagers();
            }

            if (ShaderLoader.ShaderLoaderClass.loaded)
            {
                Setup(false);
                waitToRunLateSetup = 5; // Wait for Kopernicus to clone it.
            }

            GameEvents.onGUIApplicationLauncherReady.Add(AddButton);
            GameEvents.onGUIApplicationLauncherUnreadifying.Add(RemoveButton);
        }
示例#2
0
        private void Awake()
        {
            useEditor         = false;
            ToolTipBackground = new Texture2D(4, 4);
            List <Color> colors = new List <Color>();

            for (int x = 0; x < ToolTipBackground.width * ToolTipBackground.height; x++)
            {
                colors.Add(Color.white);
            }
            ToolTipBackground.SetPixels(colors.ToArray());

            if (HighLogic.LoadedScene == GameScenes.LOADING && Managers == null)
            {
                Managers = EVEManagerBase.GetManagers();
            }


            Setup(false);
            StartCoroutine(SetupDelay());
        }