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

43 lines
1.2 KiB
C#
Raw Normal View History

2019-04-30 01:41:18 +02:00
using UnityEngine;
namespace SanAndreasUnity.Behaviours.Vehicles
{
2019-04-30 01:41:18 +02:00
public class VehicleManager : MonoBehaviour
{
public static VehicleManager Instance { get; private set; }
public GameObject vehiclePrefab;
2019-07-29 02:10:59 +02:00
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;
2019-05-24 16:51:24 +02:00
public float vehicleSyncRate = 20;
public float explosionForceMultiplier = 700f;
public float explosionChassisForceMultiplier = 11000f;
public float explosionLeftoverPartsLifetime = 20f;
public float explosionLeftoverPartsMaxDepenetrationVelocity = 15f;
public float explosionLeftoverPartsMass = 100f;
2020-06-21 00:33:55 +02:00
public GameObject smokePrefab;
2019-04-30 01:41:18 +02:00
void Awake()
{
Instance = this;
}
}
}