CSNC/Client/Unity/SyncData.cs
2025-01-02 18:22:56 -05:00

18 lines
513 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SyncData //structure for gameobjects and data sent over to the server
{
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
}