Example #1
0
        public void Awake()
        {
            Debug.Log("KVV: Starting load coroutine");
            StartCoroutine(KrsUtils.LoadBundle());

            windowSize = new Rect(256f, 50f, 300f, Screen.height - 50f);
            string[] configAppend = { "Part Config" };
            shaderTabsNames          = control.Effects.Keys.ToArray();
            shaderTabsNames          = shaderTabsNames.Concat(configAppend).ToArray();
            control.Config.onApply  += ConfigApplied;
            control.Config.onRevert += ConfigReverted;

            GameEvents.onGUIApplicationLauncherReady.Add(OnGUIAppLauncherReady);
        }
Example #2
0
        private Func <Part, bool> CanApplyIfType(string typeName)
        {
            var type = KrsUtils.FindType(typeName);

            return(p => type.IsInstanceOfType(p));
        }