basic ECS spawner
This commit is contained in:
10
GECS/entities/BasicEnemy/e_basic_enemy.gd
Normal file
10
GECS/entities/BasicEnemy/e_basic_enemy.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
@tool
|
||||
class_name BasicEnemy
|
||||
extends Entity
|
||||
|
||||
|
||||
func on_ready():
|
||||
# Sync the entity's scene position to the Transform component
|
||||
if has_component(C_Transform):
|
||||
var c_trs = get_component(C_Transform) as C_Transform
|
||||
self.global_position = c_trs.position
|
||||
Reference in New Issue
Block a user