diff --git a/Client/Unity/CSNC.cs b/Client/Unity/CSNC.cs index 876a419..2b7cd7b 100644 --- a/Client/Unity/CSNC.cs +++ b/Client/Unity/CSNC.cs @@ -35,19 +35,27 @@ public class CSNC : MonoBehaviour rotation = new List(); } } - private class CSNCObject + public class CSNCObject { + public string id; public string type; public EZtransform transform; - - public CSNCObject(string type, Transform trans) + public CSNCObject() { + id = ""; + type = ""; + transform = new EZtransform(); + } + public CSNCObject(string type, Transform trans, string id) + { + this.id = id; this.type = type; this.transform = new EZtransform(trans); } - public CSNCObject(string type, EZtransform trans) + public CSNCObject(string type, EZtransform trans, string id) { + this.id = id; this.type = type; this.transform = trans; }