SanAndreasUnity/Assets/Scripts/Behaviours/PedManager.cs

37 lines
773 B
C#
Raw Normal View History

2020-05-31 17:07:22 +00:00
using System.Collections.Generic;
using UnityEngine;
namespace SanAndreasUnity.Behaviours
{
public class PedManager : MonoBehaviour
{
public static PedManager Instance { get; private set; }
public GameObject pedPrefab;
[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;
[Header("Ped AI")]
public float AIStoppingDistance = 3f;
public float AIVehicleEnterDistance = 1.25f;
public float AIOutOfRangeTimeout = 5f;
public float AIOutOfRangeDistance = 250f;
void Awake ()
{
Instance = this;
}
}
}