Dialogue fixes

This commit is contained in:
MaddoScientisto 2025-02-21 23:52:44 +01:00
commit 19843bd05b
10 changed files with 89 additions and 27 deletions

View file

@ -8,11 +8,11 @@ namespace Cirno.Scripts.Activables;
public partial class LevelTeleporter : Teleporter
{
[Export]
public new string Target {get; private set;}
public string LevelPath {get; private set;}
protected override async Task Teleport(PlayerMovement player)
{
if (string.IsNullOrWhiteSpace(Target)) return;
if (string.IsNullOrWhiteSpace(LevelPath)) return;
player.RequestMovementDisable(true);
await TweenPlayer(player);
@ -21,6 +21,6 @@ public partial class LevelTeleporter : Teleporter
await Task.Delay((int)(TeleportAnimationLength * 1000));
GlobalState.Instance.GotoScene(Target);
GlobalState.Instance.GotoScene(LevelPath);
}
}