Add data-driven fish selection and catch showcase
This commit is contained in:
parent
ae2f724fe2
commit
bd2768b676
39 changed files with 1226 additions and 58 deletions
|
|
@ -2,6 +2,7 @@ class_name FishingPresentation
|
|||
extends Node3D
|
||||
|
||||
signal cast_completed
|
||||
signal outcome_completed(outcome: StringName)
|
||||
|
||||
enum VisualMode {
|
||||
NONE,
|
||||
|
|
@ -304,7 +305,7 @@ func play_outcome(outcome: StringName) -> void:
|
|||
_:
|
||||
_active_tween.tween_property(_bobber, "scale", Vector3.ZERO, 0.18)
|
||||
|
||||
_active_tween.finished.connect(cleanup)
|
||||
_active_tween.finished.connect(_on_outcome_finished.bind(outcome))
|
||||
|
||||
|
||||
func cleanup() -> void:
|
||||
|
|
@ -323,6 +324,11 @@ func cleanup() -> void:
|
|||
set_line_mode(LineMode.HIDDEN)
|
||||
|
||||
|
||||
func _on_outcome_finished(outcome: StringName) -> void:
|
||||
cleanup()
|
||||
outcome_completed.emit(outcome)
|
||||
|
||||
|
||||
func _set_cast_sample(
|
||||
progress: float,
|
||||
start: Vector3,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue