migration from new repo
This commit is contained in:
commit
423134a840
26930 changed files with 3458568 additions and 0 deletions
|
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using Adventurer.Runtime;
|
||||
using UnityEngine;
|
||||
|
||||
namespace EventSystem.Runtime
|
||||
{
|
||||
public class LegacyRecruitementEvents : MonoBehaviour
|
||||
{
|
||||
public static event Action<AdventurerClass> OnHeroRecruited;
|
||||
public static event Action<AdventurerClass> OnSpawnAdventurerModel;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
AdventurerSignals.OnAdventurerSpawnRequested += RelaySpawn;
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
AdventurerSignals.OnAdventurerSpawnRequested -= RelaySpawn;
|
||||
}
|
||||
|
||||
private void RelaySpawn(AdventurerClass adventurer)
|
||||
{
|
||||
OnHeroRecruited?.Invoke(adventurer);
|
||||
OnSpawnAdventurerModel?.Invoke(adventurer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue