Mercurial > hg > Database > jungle-sharp
comparison 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 |
comparison
equal
deleted
inserted
replaced
5:0428c8888abf | 7:02b2ab7bffe6 |
---|---|
2 using System.Collections; | 2 using System.Collections; |
3 | 3 |
4 public class PutAttributeTest : MonoBehaviour { | 4 public class PutAttributeTest : MonoBehaviour { |
5 | 5 |
6 string key = "hoge"; | 6 string key = "hoge"; |
7 public GameObject value; | 7 public byte[] value; |
8 | 8 |
9 // Use this for initialization | 9 // Use this for initialization |
10 void Start () { | 10 void Start () { |
11 TreeNode node = new DefaultTreeNode (); | 11 TreeNode node = new DefaultTreeNode (); |
12 PutAttribute op = new PutAttribute (key, value); | 12 PutAttribute op = new PutAttribute (key, value); |
15 if (either.isA ()) { | 15 if (either.isA ()) { |
16 Debug.Log ("Error発生"); | 16 Debug.Log ("Error発生"); |
17 } | 17 } |
18 LoggingNode newnode = either.b (); | 18 LoggingNode newnode = either.b (); |
19 Debug.Log (newnode); | 19 Debug.Log (newnode); |
20 GameObject ret = newnode.getAttributes ().get (key); | 20 byte[] ret = newnode.getAttributes ().get (key); |
21 Debug.Log ("insertしたものは" + ret); | 21 Debug.Log ("insertしたものは" + ret); |
22 } | 22 } |
23 | 23 |
24 // Update is called once per frame | 24 // Update is called once per frame |
25 void Update () { | 25 void Update () { |