SanAndreasUnity/Assets/Scripts/Behaviours/Vehicles/VehicleManager.cs
2020-06-27 22:50:50 +02:00

46 lines
1.4 KiB
C#

using UnityEngine;
namespace SanAndreasUnity.Behaviours.Vehicles
{
public class VehicleManager : MonoBehaviour
{
public static VehicleManager Instance { get; private set; }
public GameObject vehiclePrefab;
public float cameraDistanceFromVehicle = 6f;
public bool syncLinearVelocity = true;
public bool syncAngularVelocity = true;
public Utilities.WhenOnClient whenToDisableRigidBody = Utilities.WhenOnClient.OnlyOnOtherClients;
public bool syncPedTransformWhileInVehicle = false;
public bool syncVehicleTransformUsingSyncVars = false;
public bool controlInputOnLocalPlayer = true;
public bool controlWheelsOnLocalPlayer = true;
public float vehicleSyncRate = 20;
public float explosionForceMultiplier = 700f;
public float explosionChassisForceMultiplier = 11000f;
public float explosionDamageRadius = 7f;
[Range(0.1f, 3f)] public float explosionMassToDamageExponent = 1f;
public float explosionLeftoverPartsLifetime = 20f;
public float explosionLeftoverPartsMaxDepenetrationVelocity = 15f;
public float explosionLeftoverPartsMass = 100f;
public GameObject smokePrefab;
public GameObject flamePrefab;
public GameObject explosionPrefab;
void Awake()
{
Instance = this;
}
}
}