This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A{ | |
enum ObjectMeshType{SQUARE, SPHERE} | |
public ObjectMeshType CurrentType; | |
public MeshFilter MeshFilter; | |
void Save(){ | |
ASaveLoadStruct structToSave = new ASaveLoadStruct(); | |
structToSave.Type = CurrentType; | |
string FormattedJson = JsonUtility.ToJson(structToSave); | |
File.WriteAllText(path, FormattedJson); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GunsAnimSync : NetworkBehaviour | |
{ | |
public delegate void RemoteFuncDelegate(string funcName, string objName); | |
[SyncEvent] | |
public event RemoteFuncDelegate EventInvoke; | |
[SerializeField] | |
public GunsClass[] _gunsList; | |
public List<Guns> syncGuns = new List<Guns>(); | |
private void Start() |