r2mods/ilspy_dump/ror2_csproj/RoR2/MonsterCounter.cs

24 lines
375 B
C#

using UnityEngine;
namespace RoR2;
public class MonsterCounter : MonoBehaviour
{
private int enemyList;
private int CountEnemies()
{
return TeamComponent.GetTeamMembers(TeamIndex.Monster).Count;
}
private void Update()
{
enemyList = CountEnemies();
}
private void OnGUI()
{
GUI.Label(new Rect(12f, 160f, 200f, 25f), "Living Monsters: " + enemyList);
}
}