added uuid support for synchronization

This commit is contained in:
APEX FIGHT 2025-01-02 18:22:56 -05:00
parent 0810be6809
commit ef941cd344

View File

@ -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
}