mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 11:25:55 +00:00
Dialogue fixes
This commit is contained in:
parent
194647e7c2
commit
19843bd05b
10 changed files with 89 additions and 27 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue