syncdata script
This commit is contained in:
parent
2b2de1b52b
commit
9389114175
14
Client/Unity/SyncData.cs
Normal file
14
Client/Unity/SyncData.cs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
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.transform = pos;
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
public Transform transform;
|
||||||
|
public string type; //key in registry data that defines which gameobject to instantiate with transform: position
|
||||||
|
}
|
11
Client/Unity/SyncData.cs.meta
Normal file
11
Client/Unity/SyncData.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: dbe7422037114f74c80f641e2b629993
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
x
Reference in New Issue
Block a user