Mercurial > hg > Database > jungle-sharp
view src/test/csharp/jp.ac.u-ryukyu.ie.cr/jungle/core/nodeeditor/PutAttributeTest.cs @ 7:02b2ab7bffe6
fix
author | Kazuma |
---|---|
date | Tue, 27 Sep 2016 18:36:05 +0900 |
parents | dec15de2c6ff |
children |
line wrap: on
line source
using UnityEngine; using System.Collections; public class PutAttributeTest : MonoBehaviour { string key = "hoge"; public byte[] value; // Use this for initialization void Start () { TreeNode node = new DefaultTreeNode (); PutAttribute op = new PutAttribute (key, value); Either<Error, LoggingNode> either = op.edit (node); if (either.isA ()) { Debug.Log ("Error発生"); } LoggingNode newnode = either.b (); Debug.Log (newnode); byte[] ret = newnode.getAttributes ().get (key); Debug.Log ("insertしたものは" + ret); } // Update is called once per frame void Update () { } }