r2mods/ilspy_dump/ror2_csproj/RoR2.EntityLogic/Repeat.cs

19 lines
280 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
using UnityEngine.Events;
namespace RoR2.EntityLogic;
public class Repeat : MonoBehaviour
{
public UnityEvent repeatedEvent;
public void CallRepeat(int repeatNumber)
{
while (repeatNumber > 0)
{
repeatNumber--;
repeatedEvent?.Invoke();
}
}
}