r2mods/ilspy_dump/ror2_csproj/AlternateButtonEvents.cs

28 lines
444 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
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();
}
}
}