25 lines
447 B
C#
25 lines
447 B
C#
|
|
using IFix;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
|
|
|
|
//1、配置类必须打[Configure]标签
|
|
//2、必须放Editor目录
|
|
[Configure]
|
|
public class MyConfig
|
|
{
|
|
[IFix]
|
|
static IEnumerable<Type> Hotfix
|
|
{
|
|
get
|
|
{
|
|
return (from type in Assembly.Load("Assembly-CSharp").GetTypes()
|
|
|
|
select type).ToList();
|
|
}
|
|
}
|
|
}
|