SanAndreasUnity/Assets/Scripts/Stats/WorldStats.cs
2020-05-31 19:09:42 +02:00

28 lines
545 B
C#

using UnityEngine;
namespace SanAndreasUnity.Stats
{
public class WorldStats : MonoBehaviour
{
void Start()
{
Utilities.Stats.RegisterStat(new Utilities.Stats.Entry(){category = "WORLD", onGUI = OnStatGUI});
}
void OnStatGUI()
{
if (Behaviours.World.Cell.Instance != null)
{
Behaviours.World.Cell.Instance.showWindow (0);
}
else
{
GUILayout.Label("World not loaded");
}
}
}
}