using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public class SecondNodeObject : IDeepCopy { public int nodeID; public string nodeName; public string nodeDetail; public int ParentID; public int order; public object DeepCopy() { var newNode = new SecondNodeObject(); newNode.nodeID = nodeID; newNode.nodeName = nodeName; newNode.nodeDetail = nodeDetail; newNode.ParentID = ParentID; return newNode; } } interface IDeepCopy { object DeepCopy(); }