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