This commit is contained in:
dgflash
2022-07-21 16:53:03 +08:00
parent a3acaea17e
commit 15a724916d

View File

@@ -62,16 +62,16 @@ entity.remove(HelloComponent, false)
- 获得组件对象
```TypeScript
1entity.Hello; // 见上方自定义实体操作
entity.Hello; // 见上方自定义实体操作
2entity.get(HelloComponent);
entity.get(HelloComponent);
```
- 判断是否拥有组件:
```TypeScript
1entity.has(HelloComponent);
entity.has(HelloComponent);
2!!entity.Hello;
!!entity.Hello;
```
- 销毁实体: