CSNC/Client/Unity/ClientSyncBehavior.cs
2025-01-02 16:21:47 -05:00

16 lines
358 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ClientSyncBehavior : MonoBehaviour
{
public string id; //the id of the gameobject (as of gameobjectregistry) to synchronize across clients
void Start()
{
GameObjectRegistry.instance.registeredObjects.Add(new SyncData(transform, id));
}
}