r2mods/ilspy_dump/ror2_csproj/RoR2/MultiOptionPickerPanel.cs

32 lines
528 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
namespace RoR2;
public class MultiOptionPickerPanel : MonoBehaviour
{
private int numberOfPickUpsSelected;
public int numberOfPickUpsAvailable = 1;
private EventFunctions eventFunctions;
private void Start()
{
eventFunctions = base.gameObject.GetComponent<EventFunctions>();
}
public void AddPickupSelected()
{
numberOfPickUpsSelected++;
if (numberOfPickUpsSelected >= numberOfPickUpsAvailable)
{
KillPanel();
}
}
private void KillPanel()
{
eventFunctions.DestroySelf();
}
}