From 1020cc93d6e4004746ee7d584c17e213fc96034e Mon Sep 17 00:00:00 2001 From: CortexCore <2630229280@qq.com> Date: Thu, 16 Nov 2023 16:18:42 +0800 Subject: [PATCH] 1 --- Readme.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Readme.md b/Readme.md index a95104c..29d51ad 100644 --- a/Readme.md +++ b/Readme.md @@ -96,6 +96,19 @@ INetProvider.ServerCommand(); //向客户端发送指令 INetProvider.ClientCommand(64); ``` +还有一种基于`ECS`依赖注入 +```csharp +public class InjectExample +{ + [Inject] + private IMyService myService; + void Execute() + { + myService.DoSomething(); + } + +} +``` ## Deployment 部署方法