2019-04-29 23:41:18 +00:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace SanAndreasUnity.Behaviours.Vehicles
|
|
|
|
|
{
|
|
|
|
|
public class VehicleManager : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public static VehicleManager Instance { get; private set; }
|
|
|
|
|
|
|
|
|
|
public GameObject vehiclePrefab;
|
|
|
|
|
|
2019-04-30 00:37:29 +00:00
|
|
|
|
public bool syncLinearVelocity = true;
|
|
|
|
|
public bool syncAngularVelocity = true;
|
2019-04-30 22:11:02 +00:00
|
|
|
|
public bool disableRigidBodyOnClients = true;
|
2019-05-05 23:51:25 +00:00
|
|
|
|
public bool syncPedTransformWhileInVehicle = false;
|
2019-05-23 22:54:03 +00:00
|
|
|
|
public bool syncVehicleTransformUsingSyncVars = false;
|
2019-05-24 20:48:00 +00:00
|
|
|
|
public bool controlWheelsOnLocalPlayer = true;
|
2019-05-23 22:54:03 +00:00
|
|
|
|
|
2019-05-24 14:51:24 +00:00
|
|
|
|
public float vehicleSyncRate = 20;
|
|
|
|
|
|
2019-04-29 23:41:18 +00:00
|
|
|
|
|
|
|
|
|
void Awake()
|
|
|
|
|
{
|
|
|
|
|
Instance = this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|