syncdata script

This commit is contained in:
APEX FIGHT 2025-01-02 16:22:35 -05:00
parent 2b2de1b52b
commit 9389114175
2 changed files with 25 additions and 0 deletions

14
Client/Unity/SyncData.cs Normal file
View 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
}

View File

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