GetCSharpCompiler() 정적인 개인적인 메소드

static private GetCSharpCompiler ( BuildTarget targetPlatform, bool buildingForEditor, string assemblyName ) : CSharpCompiler
targetPlatform BuildTarget
buildingForEditor bool
assemblyName string
리턴 CSharpCompiler
예제 #1
0
        public override ScriptCompilerBase CreateCompiler(MonoIsland island, bool buildingForEditor, BuildTarget targetPlatform, bool runUpdater)
        {
            switch (CSharpLanguage.GetCSharpCompiler(targetPlatform, buildingForEditor, island._output))
            {
            case CSharpCompiler.Microsoft:
                return((ScriptCompilerBase) new MicrosoftCSharpCompiler(island, runUpdater));

            default:
                return((ScriptCompilerBase) new MonoCSharpCompiler(island, runUpdater));
            }
        }
예제 #2
0
        public override ScriptCompilerBase CreateCompiler(MonoIsland island, bool buildingForEditor, BuildTarget targetPlatform, bool runUpdater)
        {
            CSharpCompiler cSharpCompiler = CSharpLanguage.GetCSharpCompiler(targetPlatform, buildingForEditor, island._output);

            if (cSharpCompiler != CSharpCompiler.Mono)
            {
                if (cSharpCompiler == CSharpCompiler.Microsoft)
                {
                    return(new MicrosoftCSharpCompiler(island, runUpdater));
                }
            }
            return(new MonoCSharpCompiler(island, runUpdater));
        }