Exemplo n.º 1
0
    /// <summary>
    /// 显示标签部分
    /// </summary>
    private void DisplayTagArea()
    {
        GUILayout.BeginHorizontal();
        var pretollbarselectindex = mToolBarSelectIndex;

        mToolBarSelectIndex = GUILayout.Toolbar(mToolBarSelectIndex, mToolBarStrings, EditorStyles.toolbarButton, GUILayout.ExpandWidth(true));
        if (pretollbarselectindex != mToolBarSelectIndex)
        {
            CurrentOperationType = (EABOperationType)Enum.Parse(typeof(EABOperationType), ABOperationTypeNameArray[mToolBarSelectIndex]);
        }
        GUILayout.EndHorizontal();
    }
Exemplo n.º 2
0
    private void OnEnable()
    {
        ABOperationTypeNameArray = Enum.GetNames(typeof(EABOperationType));
        mToolBarSelectIndex      = 0;
        CurrentOperationType     = (EABOperationType)Enum.Parse(typeof(EABOperationType), ABOperationTypeNameArray[mToolBarSelectIndex]);

        // 创建资源打包器
        var appVersion   = new Version(Application.version);
        var buildVersion = appVersion.Revision;
        var buildTarget  = EditorUserBuildSettings.activeBuildTarget;

        mAssetBuilder = new AssetBundleBuilder(buildTarget, buildVersion);

        // 读取配置
        LoadSettingsFromPlayerPrefs(mAssetBuilder);
    }
 private void OnEnable()
 {
     ABOperationTypeNameArray = Enum.GetNames(typeof(EABOperationType));
     mToolBarSelectIndex      = 0;
     CurrentOperationType     = (EABOperationType)Enum.Parse(typeof(EABOperationType), ABOperationTypeNameArray[mToolBarSelectIndex]);
 }