Пример #1
0
        public static void ShowArchitectureButton(BuildTargetGroup target)
        {
            bool flag;

            if (target == BuildTargetGroup.tvOS)
            {
                flag = PlayerSettings.tvOS.sdkVersion == tvOSSdkVersion.Simulator;
            }
            else
            {
                flag = PlayerSettings.iOS.sdkVersion == iOSSdkVersion.SimulatorSDK;
            }
            int scriptingBackend = (int)PlayerSettings.GetScriptingBackend(target);

            if (!flag)
            {
                int num3;
                int architecture = PlayerSettings.GetArchitecture(target);
                if (scriptingBackend == 1)
                {
                    if (target == BuildTargetGroup.tvOS)
                    {
                        num3 = 1;
                        PlayerSettingsEditor.BuildDisabledEnumPopup(new GUIContent("ARM64"), EditorGUIUtility.TextContent("Architecture"));
                    }
                    else
                    {
                        num3 = PlayerSettingsEditor.BuildEnumPopup <Architecture>(EditorGUIUtility.TextContent("Architecture"), architecture, kArchitectureOrder, kArchitectureDescriptions);
                    }
                }
                else
                {
                    num3 = 0;
                    PlayerSettingsEditor.BuildDisabledEnumPopup(new GUIContent("ARMv7"), EditorGUIUtility.TextContent("Architecture"));
                }
                if (num3 != architecture)
                {
                    PlayerSettings.SetArchitecture(target, num3);
                }
            }
            else if (scriptingBackend == 1)
            {
                PlayerSettingsEditor.BuildDisabledEnumPopup(EditorGUIUtility.TextContent("x86_64"), EditorGUIUtility.TextContent("Architecture"));
            }
            else
            {
                PlayerSettingsEditor.BuildDisabledEnumPopup(EditorGUIUtility.TextContent("i386"), EditorGUIUtility.TextContent("Architecture"));
            }
        }