client sync behavior script
This commit is contained in:
parent
6b253cb495
commit
ec734b6f1e
15
Client/Unity/ClientSyncBehavior.cs
Normal file
15
Client/Unity/ClientSyncBehavior.cs
Normal 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));
|
||||
}
|
||||
|
||||
}
|
11
Client/Unity/ClientSyncBehavior.cs.meta
Normal file
11
Client/Unity/ClientSyncBehavior.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3d577c3c9b709324fbfb594192714936
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
x
Reference in New Issue
Block a user