updated csncobject class

This commit is contained in:
APEX FIGHT 2025-01-02 18:20:02 -05:00
parent 258f299fa0
commit 51132ceb5c

View File

@ -35,19 +35,27 @@ public class CSNC : MonoBehaviour
rotation = new List<float>(); rotation = new List<float>();
} }
} }
private class CSNCObject public class CSNCObject
{ {
public string id;
public string type; public string type;
public EZtransform transform; public EZtransform transform;
public CSNCObject()
public CSNCObject(string type, Transform trans)
{ {
id = "";
type = "";
transform = new EZtransform();
}
public CSNCObject(string type, Transform trans, string id)
{
this.id = id;
this.type = type; this.type = type;
this.transform = new EZtransform(trans); 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.type = type;
this.transform = trans; this.transform = trans;
} }