sync persist id to prevent bugs on ownership change of spawned objects
parent
d02eddfe79
commit
b8bac541f5
|
|
@ -8,7 +8,7 @@ using VelNet;
|
|||
|
||||
namespace VELConnect
|
||||
{
|
||||
public class VelNetPersist : NetworkComponent
|
||||
public class VelNetPersist : SyncState
|
||||
{
|
||||
private const float interval = 5f;
|
||||
private double nextUpdate;
|
||||
|
|
@ -172,9 +172,14 @@ namespace VELConnect
|
|||
method: "DELETE");
|
||||
}
|
||||
|
||||
public override void ReceiveBytes(byte[] message)
|
||||
protected override void SendState(BinaryWriter binaryWriter)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
binaryWriter.Write(persistId);
|
||||
}
|
||||
|
||||
protected override void ReceiveState(BinaryReader binaryReader)
|
||||
{
|
||||
persistId = binaryReader.ReadString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "edu.uga.engr.vel.vel-connect",
|
||||
"displayName": "VEL-Connect",
|
||||
"version": "5.0.3",
|
||||
"version": "5.0.4",
|
||||
"unity": "2019.1",
|
||||
"description": "Web-based configuration for VR applications",
|
||||
"keywords": [],
|
||||
|
|
|
|||
Loading…
Reference in New Issue