mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-12-11 21:22:36 +00:00
28 lines
545 B
C#
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");
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
}
|