using UnityEngine; using System.Collections; using System; public class ReplaceRootNodeOperation : NodeOperation { public Command getCommand() { return Command.REPLACE_ROOT; } public Either invoke(TreeNode target) { return target.appendRootNode(); } public int getPosition() { return -1; } public string getKey() { return null; } public byte[] getValue() { return new byte[1]{0}; } }