mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 22:10:17 +00:00
27 lines
670 B
C#
27 lines
670 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using UnityEngine;
|
|
using SanAndreasUnity.Behaviours;
|
|
using SanAndreasUnity.Behaviours.Vehicles;
|
|
|
|
namespace SanAndreasUnity.Stats
|
|
{
|
|
public class MiscStats : MonoBehaviour
|
|
{
|
|
|
|
void Start()
|
|
{
|
|
Utilities.Stats.RegisterStat(new Utilities.Stats.Entry(){category = "MISC", onGUI = OnStatGUI});
|
|
}
|
|
|
|
void OnStatGUI()
|
|
{
|
|
|
|
GUILayout.Label("Num peds: " + Ped.NumPeds);
|
|
GUILayout.Label("Num vehicles: " + Vehicle.NumVehicles);
|
|
GUILayout.Label("Num ped state changes received: " + Ped.NumStateChangesReceived);
|
|
|
|
}
|
|
|
|
}
|
|
}
|