mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-12-19 08:53:15 +00:00
20 lines
505 B
C#
20 lines
505 B
C#
|
using SanAndreasUnity.Behaviours;
|
|||
|
using SanAndreasUnity.Importing.Animation;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class PedestrianModelViewerUI : MonoBehaviour
|
|||
|
{
|
|||
|
public PedModel pedestrian = null;
|
|||
|
|
|||
|
|
|||
|
private void OnGUI()
|
|||
|
{
|
|||
|
if (null == pedestrian)
|
|||
|
return;
|
|||
|
|
|||
|
|
|||
|
GUILayout.Label("Current model ID: " + pedestrian.PedestrianId);
|
|||
|
GUILayout.Label("Current model name: " + ((pedestrian.Definition != null) ? pedestrian.Definition.ModelName : "(null!)"));
|
|||
|
|
|||
|
}
|
|||
|
}
|