SanAndreasUnity/Assets/Scripts/Behaviours/PedManager.cs

62 lines
1.5 KiB
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;
public float pedTurnSpeed = 10f;
public bool showPedSpeedometer = true;
2019-07-29 00:10:59 +00:00
public float cameraDistanceFromPed = 3f;
public float minCameraDistanceFromPed = 2f;
public float maxCameraDistanceFromPed = 30f;
public LayerMask cameraRaycastIgnoredLayerMask = 0;
[Header("Damage")]
public float legAndArmDamageMultiplier = 0.8f;
public float stomachAndChestDamageMultiplier = 1.0f;
public float headDamageMultiplier = 4.0f;
public float inflictedDamageMessageVelocityInScreenPerc = 0.2f;
public float inflictedDamageMessageLifetime = 1.0f;
public Color inflictedDamageMessageColor = Color.green;
2020-05-31 17:07:22 +00:00
[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;
2020-04-22 21:26:55 +00:00
public Color healthColor = Color.red;
public Color healthBackgroundColor = (Color.red + Color.black) * 0.5f;
2020-05-31 17:07:22 +00:00
[Header("Ped AI")]
public float AIStoppingDistance = 3f;
public float AIVehicleEnterDistance = 1.25f;
public float AIOutOfRangeTimeout = 5f;
public float AIOutOfRangeDistance = 250f;
2019-05-24 21:51:39 +00:00
[Header("Net")]
public float pedSyncRate = 10;
2020-05-31 17:07:22 +00:00
void Awake ()
{
Instance = this;
}
}
}