Exemplo n.º 1
0
        IEnumerator doInit()
        {
            while (!KVrUtilsCore.AssetIndex.BundleLoaded)
            {
                yield return(new WaitForSeconds(0.1f));
            }
            control = new KVrVesselShot();

            this.windowSize = new Rect(256f, 50f, 300f, Screen.height - 50f);

            string[] configAppend = { "Part Config" };
            this.shaderTabsNames          = this.control.Effects.Keys.ToArray <string>();
            this.shaderTabsNames          = this.shaderTabsNames.Concat(configAppend).ToArray();
            this.control.Config.onApply  += ConfigApplied;
            this.control.Config.onRevert += ConfigReverted;


            this.OnGUIAppLauncherReady();
        }
Exemplo n.º 2
0
 void Destroy()
 {
     control = null;
 }