21 lines
656 B
GDScript
21 lines
656 B
GDScript
extends Node2D
|
|
|
|
|
|
func play():
|
|
var tween = create_tween()
|
|
tween.tween_property(self, "modulate:a", 1.0, 0.5)
|
|
$Sfx.play()
|
|
var animation_player = $AnimationPlayer as AnimationPlayer
|
|
animation_player.play("鬼差探头")
|
|
animation_player.animation_finished.connect(_on_animation_finished)
|
|
|
|
func play_bgm():
|
|
# TODO 音效
|
|
# var stream = preload("res://asset/sfx/c01/s10_bgm.mp3")
|
|
# AudioManager.loop_bgm_music("黄包车背景音效", stream)
|
|
SceneManager.pop_debug_dialog_info("音效", "播放黄包车背景音乐过渡")
|
|
|
|
func _on_animation_finished(_name):
|
|
# 跳转场景
|
|
SceneManager.get_ground_loader().transition_to_scene("c01_s11", "left")
|