Add NotificationManager and NotificationLabel for age advancement notifications; refactor scripts into Components directory
This commit is contained in:
@@ -21,6 +21,7 @@ public partial class GameBus : Node
|
||||
public event Action<Buff> BuffAdded;
|
||||
public event Action<Buff> BuffRemoved;
|
||||
public event Action PopulationVisualsUpdated;
|
||||
public event Action<string> AgeAdvanced;
|
||||
|
||||
public override void _EnterTree()
|
||||
{
|
||||
@@ -74,6 +75,11 @@ public partial class GameBus : Node
|
||||
{
|
||||
MiraclesUnlocked?.Invoke(miraclesToUnlock);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(miracle.AdvancesToAge))
|
||||
{
|
||||
AgeAdvanced?.Invoke(miracle.AdvancesToAge);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user