Skip to content

Instantly share code, notes, and snippets.

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);
@ITEnot
ITEnot / RPC
Last active March 8, 2019 01:29
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()