UnitySerializedReferenceUI/Samples~/ExamplesAchievementSysemAssembly/Achievements/IUnlockTrigger.cs

31 lines
560 B
C#
Raw Normal View History

2022-12-28 14:56:13 +01:00
using System;
public interface IUnlockTrigger
{
public event Action OnTriggerEvent;
public void Initialize();
}
[System.Serializable]
public class LevelCompleteTrigger : IUnlockTrigger
{
public event Action OnTriggerEvent;
public void Initialize()
{
// Subscribe to on level complete event.
// OnTriggerEvent?.Invoke();
}
}
[System.Serializable]
public class EnemyKilledTrigger : IUnlockTrigger
{
public event Action OnTriggerEvent;
public void Initialize()
{
// Subscribe to on enemy killed event.
// OnTriggerEvent?.Invoke();
}
}