mirror of
https://github.com/Steffo99/better-tee.git
synced 2024-12-04 20:14:18 +00:00
16 lines
331 B
C#
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;
|
|
}
|
|
}
|
|
}
|