From ef941cd344e711416a0cee7797c8157e5e612205 Mon Sep 17 00:00:00 2001 From: APEX FIGHT Date: Thu, 2 Jan 2025 18:22:56 -0500 Subject: [PATCH] added uuid support for synchronization --- Client/Unity/SyncData.cs | 3 +++ 1 file changed, 3 insertions(+) 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 }