1
Fork 0
mirror of https://github.com/Steffo99/better-tee.git synced 2024-12-04 20:14:18 +00:00
better-tee/Assets/Refactored/Form/FormButton.cs
2019-09-23 18:44:56 +02:00

16 lines
331 B
C#

using System;
using UnityEngine;
namespace BetterTee.Form {
public abstract class FormEvent : FormElement {
public event Action<FormEvent> OnTrigger;
protected void TriggerEvent() {
OnTrigger(this);
}
public void UnsubscribeAll() {
OnTrigger = null;
}
}
}