r2mods/ilspy_dump/ror2_csproj/AlternateButtonEvents.cs

28 lines
444 B
C#

using RoR2.UI;
using UnityEngine;
using UnityEngine.Events;
[RequireComponent(typeof(HGButton))]
public class AlternateButtonEvents : MonoBehaviour
{
public UnityEvent onAlternateClick;
public UnityEvent onTertiaryClick;
public void InvokeAltClick()
{
if (onAlternateClick != null)
{
onAlternateClick.Invoke();
}
}
public void InvokeTertiaryClick()
{
if (onTertiaryClick != null)
{
onTertiaryClick.Invoke();
}
}
}