mirror of
https://github.com/maxartz15/UnitySerializedReferenceUI.git
synced 2024-11-22 23:55:35 +01:00
31 lines
560 B
C#
31 lines
560 B
C#
|
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();
|
||
|
}
|
||
|
}
|