Exemplo n.º 1
0
 public override void OnSetting(OneKeyBuildPackage _ok)
 {
     base.OnSetting(_ok);
     PlayerSettings.runInBackground = true;
     PlayerSettings.allowedAutorotateToLandscapeLeft      = true;
     PlayerSettings.allowedAutorotateToLandscapeRight     = true;
     PlayerSettings.allowedAutorotateToPortraitUpsideDown = false;
     PlayerSettings.allowedAutorotateToPortrait           = false;
     PlayerSettings.SetScriptingBackend(BuildTargetGroup.Android, ScriptingImplementation.Mono2x);
     PlayerSettings.SetApiCompatibilityLevel(BuildTargetGroup.Android, ApiCompatibilityLevel.NET_2_0);
     PlayerSettings.defaultInterfaceOrientation = UIOrientation.LandscapeLeft | UIOrientation.LandscapeRight;
     PlayerSettings.SplashScreen.show           = false;
     PlayerSettings.SplashScreen.showUnityLogo  = false;
 }
 public virtual void OnSetting(OneKeyBuildPackage _ok)
 {
     savePath = _ok.SAVE_PATH;
     isDebug  = _ok.isDebug;
     PlayerSettings.runInBackground = true;
     PlayerSettings.allowedAutorotateToLandscapeLeft      = true;
     PlayerSettings.allowedAutorotateToLandscapeRight     = false;
     PlayerSettings.allowedAutorotateToPortraitUpsideDown = false;
     PlayerSettings.allowedAutorotateToPortrait           = false;
     PlayerSettings.bundleVersion                    = _ok.version.ToString();
     PlayerSettings.applicationIdentifier            = _ok.bundleidf;
     PlayerSettings.productName                      = ChannelData.current.appName;
     PlayerSettings.companyName                      = "恒嘉互动";
     PlayerSettings.defaultInterfaceOrientation      = UIOrientation.LandscapeLeft | UIOrientation.LandscapeRight;
     PlayerSettings.enableCrashReportAPI             = false;
     PlayerSettings.actionOnDotNetUnhandledException = ActionOnDotNetUnhandledException.Crash;
 }
Exemplo n.º 3
0
 public override void OnSetting(OneKeyBuildPackage _ok)
 {
     base.OnSetting(_ok);
     PlayerSettings.logObjCUncaughtExceptions = true;
     PlayerSettings.accelerometerFrequency    = 0;
     PlayerSettings.muteOtherAudioSources     = false;
     PlayerSettings.SetScriptingBackend(BuildTargetGroup.iOS, ScriptingImplementation.IL2CPP);
     PlayerSettings.SetApiCompatibilityLevel(BuildTargetGroup.iOS, ApiCompatibilityLevel.NET_2_0);
     PlayerSettings.iOS.targetDevice                = iOSTargetDevice.iPhoneAndiPad;
     PlayerSettings.iOS.sdkVersion                  = iOSSdkVersion.DeviceSDK;
     PlayerSettings.iOS.targetOSVersionString       = "9.0";
     PlayerSettings.iOS.useOnDemandResources        = true;
     PlayerSettings.iOS.allowHTTPDownload           = true;
     PlayerSettings.iOS.appInBackgroundBehavior     = iOSAppInBackgroundBehavior.Suspend;
     PlayerSettings.iOS.appleEnableAutomaticSigning = true;
     PlayerSettings.iOS.appleDeveloperTeamID        = ChannelData.current.ocAppTeamID;
     PlayerSettings.stripEngineCode                 = false;
 }
Exemplo n.º 4
0
        public override void OnSetting(OneKeyBuildPackage _ok)
        {
            base.OnSetting(_ok);
            PlayerSettings.keyaliasPass = "******";
            PlayerSettings.keystorePass = "******";
            PlayerSettings.SetScriptingBackend(BuildTargetGroup.Android, ScriptingImplementation.Mono2x);
            PlayerSettings.SetApiCompatibilityLevel(BuildTargetGroup.Android, ApiCompatibilityLevel.NET_2_0);
            PlayerSettings.Android.preferredInstallLocation = AndroidPreferredInstallLocation.Auto;
            PlayerSettings.Android.bundleVersionCode        = _ok.isDebug ? PlayerSettings.Android.bundleVersionCode : PlayerSettings.Android.bundleVersionCode + 1;
            PlayerSettings.Android.keystoreName             = _ok.KEY_STORE_PATH;
            PlayerSettings.Android.keyaliasName             = "bwgame";
            PlayerSettings.Android.useAPKExpansionFiles     = _ok.buildDepartPackage;
            PlayerSettings.Android.minSdkVersion            = AndroidSdkVersions.AndroidApiLevel21;
            PlayerSettings.Android.targetSdkVersion         = AndroidSdkVersions.AndroidApiLevel21;
            PlayerSettings.SplashScreen.show          = false;
            PlayerSettings.SplashScreen.showUnityLogo = false;
            //自定义结束

            //处理AndroidManifest文件
            DealXMLFile();

            AssetDatabase.Refresh();
        }