Пример #1
0
 private void OnEnable()
 {
     settings = (Settings)target;
     if (string.IsNullOrEmpty(settings.buildPlatform))
     {
         settings.buildPlatform = BuildHelper.GetPlatformName(EditorUserBuildSettings.activeBuildTarget);
     }
     settings.debugEnable = EditorUtility.HasScriptingDefineSymbols(B2Framework.Log.SYMBOL);
 }
Пример #2
0
 private void OnEnable()
 {
     game             = (Game)target;
     game.debugEnable = EditorUtility.HasScriptingDefineSymbols(B2Framework.Log.SYMBOL);
     if (string.IsNullOrEmpty(game.buildPlatform))
     {
         game.buildPlatform = BuildHelper.GetPlatformName(EditorUserBuildSettings.activeBuildTarget);
     }
     m_LogHelperTypeName = serializedObject.FindProperty("m_LogHelperTypeName");
     RefreshTypeNames();
 }
Пример #3
0
 /// <summary>
 /// 获取AssetBundles输出目录
 /// </summary>
 /// <returns></returns>
 public static string GetAssetBundlesOutPutPath(BuildTarget buildTarget)
 {
     return(Utility.Path.Combine(GameConst.ASSETBUNDLES, BuildHelper.GetPlatformName(buildTarget)));
 }