forked from datawhale/whale-town-front
docs: 完善项目文档和README,修复字符显示问题
- 修复README.md中的emoji字符显示问题 - 移除文档质量评级系统 - 添加贡献者致谢部分,创建详细的CONTRIBUTORS.md - 创建核心系统文件EventNames.gd和ProjectPaths.gd - 更新项目配置文件project.godot,添加输入映射 - 完善各模块文档,修正路径引用问题 - 创建文档更新日志CHANGELOG.md - 优化文档结构和导航系统
This commit is contained in:
@@ -87,9 +87,9 @@ func return_object(obj: Node, type: String):
|
||||
func _create_new_object(type: String) -> Node:
|
||||
match type:
|
||||
"Bullet":
|
||||
return preload("res://prefabs/Bullet.tscn").instantiate()
|
||||
return preload(ProjectPaths.get_component_path("effects", "Bullet")).instantiate()
|
||||
"Enemy":
|
||||
return preload("res://prefabs/Enemy.tscn").instantiate()
|
||||
return preload(ProjectPaths.get_component_path("characters", "Enemy")).instantiate()
|
||||
_:
|
||||
return null
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user