client sync behavior script

This commit is contained in:
APEX FIGHT 2025-01-02 16:21:47 -05:00
parent 6b253cb495
commit ec734b6f1e
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,15 @@
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));
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3d577c3c9b709324fbfb594192714936
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: