mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 20:43:04 +00:00
38 lines
1.1 KiB
C#
38 lines
1.1 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 = 0.15f;
|
|
|
|
public float explosionLeftoverPartsLifetime = 20f;
|
|
public float explosionLeftoverPartsMaxDepenetrationVelocity = 15f;
|
|
public float explosionLeftoverPartsMass = 10f;
|
|
|
|
|
|
void Awake()
|
|
{
|
|
Instance = this;
|
|
}
|
|
|
|
}
|
|
|
|
}
|