Ejemplo n.º 1
0
        private static void CommonForBindingCode(Action <AppDomain, string> callback)
        {
            ILRuntimeHotFix.InitInEditor();

            ILRuntimeAppEditor app = ILRuntimeAppEditor.GetInstance();

            AppDomain domain = AppDomain();

            string[] strs = Selection.assetGUIDs;
            foreach (var item in strs)
            {
                string path = AssetDatabase.GUIDToAssetPath(item);
                callback.Invoke(domain, path);
            }
            AssetDatabase.Refresh();
        }
Ejemplo n.º 2
0
 public static IAppILRuntime GetAppILRuntime(this ILRuntimeHotFix target)
 {
     return(ownerApp);
 }
Ejemplo n.º 3
0
 public static void ClearGlobal(this ILRuntimeHotFix target)
 {
     appDomain    = default;
     methodCacher = default;
     ownerApp     = default;
 }
Ejemplo n.º 4
0
 public static void SetOwner(this ILRuntimeHotFix target, IAppILRuntime app)
 {
     ownerApp = app;
 }