Ejemplo n.º 1
0
        /// <summary>Called when the Runtime checkbox is changed.</summary>
        private void OnRuntimeChanged()
        {
            // Grab the nitro path:
            string nitroPath = NitroPath;

            if (NoRuntime)
            {
                // Rename Compiler folder to 'Editor'.
                if (Directory.Exists(nitroPath + "/Compiler"))
                {
                    AssetDatabase.RenameAsset(nitroPath + "/Compiler", "Editor");
                }
            }
            else
            {
                // Rename the folder back.
                if (Directory.Exists(nitroPath + "/Editor"))
                {
                    AssetDatabase.RenameAsset(nitroPath + "/Editor", "Compiler");
                }
            }
            AssetDatabase.SaveAssets();

            if (NoRuntime)
            {
                Symbols.DefineSymbol("NoNitroRuntime");
            }
            else
            {
                Symbols.UndefineSymbol("NoNitroRuntime");
            }
        }
 /// <summary>Called when the isolate checkbox is changed.</summary>
 private void OnIsolateChanged()
 {
     if (IsolatePowerUI)
     {
         Symbols.DefineSymbol("IsolatePowerUI");
     }
     else
     {
         Symbols.UndefineSymbol("IsolatePowerUI");
     }
 }
 /// <summary>Called when the custom input checkbox is changed.</summary>
 private void OnCustomInputChanged()
 {
     if (CustomInput)
     {
         Symbols.DefineSymbol("NoPowerUIInput");
     }
     else
     {
         Symbols.UndefineSymbol("NoPowerUIInput");
     }
 }
Ejemplo n.º 4
0
 /// <summary>Called when the setting changes.</summary>
 public void Changed()
 {
     if (Active)
     {
         Symbols.DefineSymbol(DefinesSymbol);
     }
     else
     {
         Symbols.UndefineSymbol(DefinesSymbol);
     }
 }
Ejemplo n.º 5
0
        /// <summary>Called when the CompileAOT value changes.</summary>
        private void OnAOTChanged()
        {
            // Update DLL files:
            if (CompileAOT)
            {
                NitroAOT.CompileAll();
            }
            else
            {
                NitroAOT.DeleteAll();
            }

            // Write it out into the scripting defines symbols:
            if (CompileAOT)
            {
                Symbols.DefineSymbol("nitroAot");
            }
            else
            {
                Symbols.UndefineSymbol("nitroAot");
            }
        }