diff --git a/Client/Unity/SyncData.cs b/Client/Unity/SyncData.cs index a42061d..975a68b 100644 --- a/Client/Unity/SyncData.cs +++ b/Client/Unity/SyncData.cs @@ -6,9 +6,12 @@ public class SyncData //structure for gameobjects and data sent over to the serv { public SyncData(Transform pos, string type) { + this.id = System.Guid.NewGuid().ToString(); this.transform = pos; this.type = type; } + public Transform transform; + public string id; public string type; //key in registry data that defines which gameobject to instantiate with transform: position }