This commit is contained in:
parent
70247f0242
commit
1020cc93d6
13
Readme.md
13
Readme.md
|
@ -96,6 +96,19 @@ INetProvider.ServerCommand<MyCommand>();
|
|||
//向客户端发送指令
|
||||
INetProvider.ClientCommand<MyCommand>(64);
|
||||
```
|
||||
还有一种基于`ECS`依赖注入
|
||||
```csharp
|
||||
public class InjectExample
|
||||
{
|
||||
[Inject]
|
||||
private IMyService myService;
|
||||
void Execute()
|
||||
{
|
||||
myService.DoSomething();
|
||||
}
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## Deployment 部署方法
|
||||
|
|
Loading…
Reference in New Issue