SanAndreasUnity/Assets/Scripts/Behaviours/Vehicles/VehicleManager.cs
2020-05-31 19:09:48 +02:00

32 lines
886 B
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;
void Awake()
{
Instance = this;
}
}
}