mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-12-19 00:43:08 +00:00
20 lines
No EOL
505 B
C#
20 lines
No EOL
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!)"));
|
|
|
|
}
|
|
} |