World stats adapted

This commit is contained in:
in0finite 2019-06-22 20:26:20 +02:00
parent 054ec6151c
commit b117c27a63
2 changed files with 28 additions and 2 deletions

View file

@ -0,0 +1,28 @@
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");
}
}
}
}

View file

@ -24,8 +24,6 @@
- Don't block camera with peds
- Add more obstacles in demo scene
- Remove world stats window
- Add option to change fixed delta time