feat: 1. 添加武器位置,1-6
2. 添加武器容器 3. 添加敌人的Hurtbox
This commit is contained in:
@@ -31,7 +31,7 @@ func get_move_direction() -> Vector2:
|
||||
if not is_instance_valid(Global.player):
|
||||
return Vector2.ZERO
|
||||
|
||||
var direction := global_position.direction_to(Global.player.position)
|
||||
var direction := global_position.direction_to(Global.player.global_position)
|
||||
|
||||
for area: Node2D in vision_area.get_overlapping_areas():
|
||||
if area != self and area.is_inside_tree():
|
||||
|
||||
Reference in New Issue
Block a user