mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
State persistance between scenes
This commit is contained in:
parent
1e38945f63
commit
35254935e4
13 changed files with 142 additions and 27 deletions
|
|
@ -48,7 +48,12 @@ public partial class Boss : Enemy, IActivable, IScriptHost
|
|||
}
|
||||
|
||||
_homePosition = this.GlobalPosition;
|
||||
|
||||
|
||||
CallDeferred(MethodName.InitDeferred);
|
||||
}
|
||||
|
||||
private void InitDeferred()
|
||||
{
|
||||
_cameraMarker = new Marker2D();
|
||||
GameManager.Instance.CallDeferred("add_child", _cameraMarker);
|
||||
_cameraMarker.GlobalPosition = _homePosition + CameraOffset;
|
||||
|
|
@ -87,6 +92,7 @@ public partial class Boss : Enemy, IActivable, IScriptHost
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue