1
This commit is contained in:
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 部署方法
|
||||
|
Reference in New Issue
Block a user