SanAndreasUnity/Assets/Scripts/Behaviours/Vehicles/VehicleManager.cs

31 lines
830 B
C#
Raw Normal View History

2019-04-29 23:41:18 +00:00
using UnityEngine;
namespace SanAndreasUnity.Behaviours.Vehicles
{
2019-04-29 23:41:18 +00:00
public class VehicleManager : MonoBehaviour
{
public static VehicleManager Instance { get; private set; }
public GameObject vehiclePrefab;
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;
2019-05-24 14:51:24 +00:00
public float vehicleSyncRate = 20;
2019-04-29 23:41:18 +00:00
void Awake()
{
Instance = this;
}
}
}