You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
585 B
27 lines
585 B
3 years ago
|
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();
|
||
|
}
|