Mercurial > hg > Papers > 2022 > riono-master
view Paper/src/cs/CountUpper.cs @ 30:2a9f335e45bd
add source code and update Unity chapter
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 04 Feb 2022 20:47:04 +0900 (2022-02-04) |
parents | Paper/src/cs/CodeGearExample.cs@58042e63c429 |
children |
line wrap: on
line source
public class CountUpper : CodeGear { [Take] public CountObject count; public override void Run(CodeGearManager cgm) { Console.WriteLine(count.number); if (count.number < 10) { cgm.Setup(new CountUpper()); count.number += 1; put("count", count); } else { cgm.GetLocalDGM().Finish(); } } }