mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 12:33:02 +00:00
49 lines
1.1 KiB
C#
49 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace SanAndreasUnity.Behaviours
|
|
{
|
|
|
|
public class PedManager : MonoBehaviour
|
|
{
|
|
public static PedManager Instance { get; private set; }
|
|
|
|
public GameObject pedPrefab;
|
|
|
|
public float pedTurnSpeed = 10f;
|
|
public bool showPedSpeedometer = true;
|
|
|
|
public float cameraDistanceFromPed = 3f;
|
|
public float minCameraDistanceFromPed = 2f;
|
|
public float maxCameraDistanceFromPed = 30f;
|
|
|
|
[Header("Health bar")]
|
|
|
|
public bool displayHealthBarAbovePeds = false;
|
|
public float healthBarWorldWidth = 0.5f;
|
|
public float healthBarWorldHeight = 0.1f;
|
|
public float healthBarMaxScreenHeight = 20f;
|
|
public float healthBarVerticalOffset = 0.3f;
|
|
public Color healthColor = Color.red;
|
|
public Color healthBackgroundColor = (Color.red + Color.black) * 0.5f;
|
|
|
|
[Header("Ped AI")]
|
|
|
|
public float AIStoppingDistance = 3f;
|
|
public float AIVehicleEnterDistance = 1.25f;
|
|
public float AIOutOfRangeTimeout = 5f;
|
|
public float AIOutOfRangeDistance = 250f;
|
|
|
|
[Header("Net")]
|
|
|
|
public float pedSyncRate = 10;
|
|
|
|
|
|
void Awake ()
|
|
{
|
|
Instance = this;
|
|
}
|
|
|
|
}
|
|
|
|
}
|