Mercurial > hg > Members > kazuma > JungleforUnity
diff Assets/Application/Scripts/Player.cs @ 11:cf20add31466
change putAttribute -> use fmap.
author | Kazuma Takeda |
---|---|
date | Sat, 28 Jan 2017 19:15:44 +0900 |
parents | 599bd8ddb72b |
children | b55d586dd4eb |
line wrap: on
line diff
--- a/Assets/Application/Scripts/Player.cs Fri Jan 20 07:30:26 2017 +0900 +++ b/Assets/Application/Scripts/Player.cs Sat Jan 28 19:15:44 2017 +0900 @@ -124,8 +124,10 @@ JungleTreeEditor edt = tree.getTreeEditor (); NodePath playerpath = new DefaultNodePath ().add (0); - edt = edt.putAttribute (playerpath, "HP", Encoding.UTF8.GetBytes (HP.ToString())).b(); - edt = edt.commit ().b(); + Either<Error, JungleTreeEditor> e = edt.putAttribute (playerpath, this); + // e.fmap (edt.commit ()); + + } }