phase 2 ai shooting
This commit is contained in:
@@ -34,3 +34,11 @@ func on_target_reached():
|
||||
func _on_static_body_3d_input_event(camera: Node, event: InputEvent, event_position: Vector3, normal: Vector3, shape_idx: int) -> void:
|
||||
if event.is_action_released("left_mouse_click"):
|
||||
GameManager.bullet_selected.emit(self)
|
||||
|
||||
|
||||
func shoot():
|
||||
if is_live:
|
||||
print("Ammo was live")
|
||||
else:
|
||||
print("Ammo not live")
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user