Basic ending

This commit is contained in:
2023-09-13 11:12:51 -07:00
parent 7599d3a665
commit 915a6ed72c
20 changed files with 413 additions and 46 deletions

View File

@@ -0,0 +1,15 @@
using Godot;
public partial class GameEnding : Node3D
{
public void OnGameEnding()
{
var bgmPlayer = GetTree().Root.GetNode<BGMPlayer>("BgmPlayer");
bgmPlayer.ProcessMode = ProcessModeEnum.Always;
bgmPlayer.SetBGMFromFilepath("Audio/BGM/GameEnding.ogg");
bgmPlayer.PlayBGM();
var animationPlayer = GetNode<AnimationPlayer>("AnimationPlayer");
animationPlayer.Play("GameEnding");
}
}