mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-24 19:27:16 +00:00
display stats about ped and vehicle
This commit is contained in:
parent
0b562318c1
commit
41b352ab4a
1 changed files with 3 additions and 1 deletions
|
@ -28,7 +28,7 @@ namespace SanAndreasUnity.Stats
|
|||
var ped = Ped.Instance;
|
||||
if (ped != null)
|
||||
{
|
||||
sb.AppendFormat("Local ped:\n");
|
||||
sb.AppendFormat("\nLocal ped:\n");
|
||||
sb.AppendFormat("position: {0}\n", ped.transform.position);
|
||||
sb.AppendFormat("net id: {0}\n", ped.netId);
|
||||
sb.AppendFormat("sync interval: {0}\n", ped.NetTransform.syncInterval);
|
||||
|
@ -109,11 +109,13 @@ namespace SanAndreasUnity.Stats
|
|||
{
|
||||
sb.AppendFormat("{0}: {1}\n", texts[i], objects[i]);
|
||||
}
|
||||
sb.AppendFormat("\n");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GUILayout.Label(sb.ToString());
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue