mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 20:13:02 +00:00
add synced bag to VehicleController
This commit is contained in:
parent
204f0be4f5
commit
a5d3c657fc
1 changed files with 9 additions and 1 deletions
|
@ -38,11 +38,19 @@ namespace SanAndreasUnity.Behaviours.Vehicles
|
|||
|
||||
WheelSyncList m_net_wheelsData;
|
||||
|
||||
private readonly SyncedBag.StringSyncDictionary m_syncDictionary = new SyncedBag.StringSyncDictionary();
|
||||
public SyncedBag ExtraData { get; }
|
||||
|
||||
// is it better to place syncvars in Vehicle class ? - that way, there is no need for hooks
|
||||
// - or we could assign/read syncvars in Update()
|
||||
|
||||
|
||||
|
||||
private VehicleController()
|
||||
{
|
||||
ExtraData = new SyncedBag(m_syncDictionary);
|
||||
}
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
//m_vehicle = GetComponent<Vehicle>();
|
||||
|
|
Loading…
Reference in a new issue