16 lines
358 B
C#
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));
|
|
}
|
|
|
|
}
|