This commit is contained in:
CortexCore 2023-11-16 16:18:42 +08:00
parent 70247f0242
commit 1020cc93d6
1 changed files with 13 additions and 0 deletions

View File

@ -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 部署方法