fx: prey-predator interactions
This commit is contained in:
1 parent
f83b290f5c
commit
2b46fd18f7
8 files changed
+15
-16
No files matched your search
@@ -18,6 +18,10 @@ func move(motion: Vector3, mod: float) -> void:
|
||||
position = GameManager.get_boundaried_position(position)
|
||||
|
||||
|
||||
func handle_damage(dmg: int, src: Node) -> void:
|
||||
if owner:
|
||||
owner.handle_damage(dmg, src)
|
||||
|
||||
func duplicate_init() -> void:
|
||||
var sight = $Sight
|
||||
remove_child(sight)
|
||||
|
||||