static void testBt_Select() { Console.WriteLine("test Bt_Select=>"); Bt_Select sel = new Bt_Select(); testNode1 _test1 = new testNode1(); testNode2 _test2 = new testNode2(); sel.addChild(_test1); sel.addChild(_test2); sel.doAction(); }
static void testBt_Select() { Console.WriteLine("test Bt_Select=>"); Bt_Select sel = new Bt_Select(); TestNodeFail _test1 = new TestNodeFail(); TestNodeSuccess _test2 = new TestNodeSuccess(); TestNodeRuning _test3 = new TestNodeRuning(); sel.addChild(_test1); sel.addChild(_test2); sel.addChild(_test3); Bt_Result result = sel.doAction(); Console.WriteLine("test testBt_Select result =>" + result); }