mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 06:34:16 +00:00
...
This commit is contained in:
parent
3b89d15e4c
commit
4bbe62b90e
2 changed files with 0 additions and 15 deletions
|
@ -21,11 +21,6 @@ namespace SanAndreasUnity.Net
|
||||||
m_transformSyncer = new TransformSyncer(m_transformToSync, m_transformSyncParameters, this);
|
m_transformSyncer = new TransformSyncer(m_transformToSync, m_transformSyncParameters, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnStartClient()
|
|
||||||
{
|
|
||||||
m_transformSyncer.OnStartClient();
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnSerialize(NetworkWriter writer, bool initialState)
|
public override bool OnSerialize(NetworkWriter writer, bool initialState)
|
||||||
{
|
{
|
||||||
return m_transformSyncer.OnSerialize(writer, initialState);
|
return m_transformSyncer.OnSerialize(writer, initialState);
|
||||||
|
|
|
@ -84,16 +84,6 @@ namespace SanAndreasUnity.Net
|
||||||
m_hasRigidBody = m_rigidbody != null;
|
m_hasRigidBody = m_rigidbody != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnStartClient()
|
|
||||||
{
|
|
||||||
if (NetUtils.IsServer)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// apply initial sync data
|
|
||||||
// first sync should've been done before calling this function, so the data is available
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool OnSerialize(NetworkWriter writer, bool initialState)
|
public bool OnSerialize(NetworkWriter writer, bool initialState)
|
||||||
{
|
{
|
||||||
byte flags = 0;
|
byte flags = 0;
|
||||||
|
|
Loading…
Reference in a new issue