From 51132ceb5c87be1815a2d26a466aaa69b1b3f668 Mon Sep 17 00:00:00 2001 From: APEX FIGHT Date: Thu, 2 Jan 2025 18:20:02 -0500 Subject: [PATCH] updated csncobject class --- Client/Unity/CSNC.cs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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; }