添加了教育平台
This commit is contained in:
11
README.md
11
README.md
@@ -145,6 +145,10 @@
|
||||
***
|
||||
## Getting Started 使用指南
|
||||
所有注释和指南都包括在代码中,用例正在编写中
|
||||
### 基本设置
|
||||
你需要在`项目设置` `自动加载`中添加一个挂载`BITAppForGodot`的节点
|
||||
|
||||
然后就OK了
|
||||
### 依赖注入
|
||||
基于`Microsoft.Extensions.DependencyInjection`的依赖注入服务
|
||||
用例:
|
||||
@@ -153,8 +157,11 @@
|
||||
public interface IService{}
|
||||
public class MyService:Node,IService
|
||||
{
|
||||
//注入服务
|
||||
BITApp.ServiceCollection.AddSingleton<IService>(this);
|
||||
public MyService()
|
||||
{
|
||||
//注入服务
|
||||
BITApp.ServiceCollection.AddSingleton<IService>(this);
|
||||
}
|
||||
}
|
||||
```
|
||||
#### 注入服务
|
||||
|
Reference in New Issue
Block a user