瀏覽代碼

Add class name `Enemy` in Enemy script

DricomDragon 5 年之前
父節點
當前提交
80a5f350b7
共有 2 個文件被更改,包括 9 次插入2 次删除
  1. 2 0
      Enemy.gd
  2. 7 2
      project.godot

+ 2 - 0
Enemy.gd

@@ -1,5 +1,7 @@
 extends RigidBody2D
 
+class_name Enemy
+
 export var min_speed = 150
 export var max_speed = 250
 

+ 7 - 2
project.godot

@@ -8,9 +8,14 @@
 
 config_version=4
 
-_global_script_classes=[  ]
+_global_script_classes=[ {
+"base": "RigidBody2D",
+"class": "Enemy",
+"language": "GDScript",
+"path": "res://Enemy.gd"
+} ]
 _global_script_class_icons={
-
+"Enemy": ""
 }
 
 [application]