Replace naudio.dll with code
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
/****************************************************************************
|
||||
*
|
||||
* Copyright (c) 2021 CRI Middleware Co., Ltd.
|
||||
*
|
||||
****************************************************************************/
|
||||
#if UNITY_2019_3_OR_NEWER
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[assembly: InternalsVisibleTo("CriMw.CriWare.Adxlipsync.Editor")]
|
||||
[assembly: InternalsVisibleTo("CriMw.CriWare.Assets.Editor")]
|
||||
|
||||
namespace CriWare {
|
||||
|
||||
internal static class CriEditorUtilitiesInternal
|
||||
{
|
||||
public static float SingleReturnHeight
|
||||
{
|
||||
get
|
||||
{
|
||||
return EditorGUIUtility.singleLineHeight + 2f;
|
||||
}
|
||||
}
|
||||
|
||||
public static string BackingFieldNameOf(string propertyName)
|
||||
{
|
||||
return "<" + propertyName + ">k__BackingField";
|
||||
}
|
||||
|
||||
static Dictionary<System.Type, List<System.Type>> typesCache = new Dictionary<System.Type, List<System.Type>>();
|
||||
public static List<System.Type> GetSubclassesOf(System.Type baseType)
|
||||
{
|
||||
if (typesCache.ContainsKey(baseType))
|
||||
return typesCache[baseType];
|
||||
|
||||
var types = System.AppDomain.CurrentDomain.GetAssemblies().SelectMany(assem => assem.GetTypes()).
|
||||
Where(t => baseType.IsAssignableFrom(t) && !(t == baseType)).ToList();
|
||||
typesCache.Add(baseType, types);
|
||||
return types;
|
||||
}
|
||||
}
|
||||
} //namespace CriWare
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e42361bfebaaf4deabdbc39094e45f1d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user