Skip to content

Commit

Permalink
docs: update ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
labbbirder committed Dec 13, 2023
1 parent 68b9754 commit 40b19b7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ using com.bbbirder.injection;
using UnityEngine;

// this illustration shows how to hook `Debug.Log`
public class FirstPatch:IInjection
public class FirstPatch
{
// the field to be overwrited to original method
static Action<object> RawLog;
Expand All @@ -86,11 +86,9 @@ public class FirstPatch:IInjection

```

`FixerAttribute`接收3个参数:
自定类继承自`IInjection`,并实现接口

1. 目标类型
2. 目标方法名称
3. 用于保存原方法的函数成员名称
`ProvideInjections`中返回一个或多个`InjectionInfo`

初始化的时候调用:

Expand Down

0 comments on commit 40b19b7

Please sign in to comment.