added uuid support for synchronization
This commit is contained in:
parent
0810be6809
commit
ef941cd344
@ -6,9 +6,12 @@ public class SyncData //structure for gameobjects and data sent over to the serv
|
|||||||
{
|
{
|
||||||
public SyncData(Transform pos, string type)
|
public SyncData(Transform pos, string type)
|
||||||
{
|
{
|
||||||
|
this.id = System.Guid.NewGuid().ToString();
|
||||||
this.transform = pos;
|
this.transform = pos;
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Transform transform;
|
public Transform transform;
|
||||||
|
public string id;
|
||||||
public string type; //key in registry data that defines which gameobject to instantiate with transform: position
|
public string type; //key in registry data that defines which gameobject to instantiate with transform: position
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user