mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 06:34:16 +00:00
World stats adapted
This commit is contained in:
parent
054ec6151c
commit
b117c27a63
2 changed files with 28 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue