mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 03:25:54 +00:00
Roguelike map
This commit is contained in:
parent
a005e3c480
commit
e1496c9228
18 changed files with 226 additions and 101 deletions
|
|
@ -66,6 +66,8 @@ public partial class GameManager : Node2D
|
|||
|
||||
[Export] public NavigationRegion2D NavigationRegion { get; private set; }
|
||||
|
||||
[Signal] public delegate void ManagerReadyEventHandler();
|
||||
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
public override void _Ready()
|
||||
{
|
||||
|
|
@ -116,8 +118,15 @@ public partial class GameManager : Node2D
|
|||
//_ = DelayPlayerSpawn();
|
||||
|
||||
CallDeferred(MethodName.DelayPlayerSpawn);
|
||||
|
||||
CallDeferred(MethodName.OnFinished);
|
||||
}
|
||||
|
||||
private void OnFinished()
|
||||
{
|
||||
EmitSignalManagerReady();
|
||||
}
|
||||
|
||||
private void OnPlayerRespawned()
|
||||
{
|
||||
this.ClearBullets();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue