本文整理汇总了C#中behaviac.False.SetClassNameString方法的典型用法代码示例。如果您正苦于以下问题:C# False.SetClassNameString方法的具体用法?C# False.SetClassNameString怎么用?C# False.SetClassNameString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类behaviac.False
的用法示例。
在下文中一共展示了False.SetClassNameString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: build_behavior_tree
public static bool build_behavior_tree(BehaviorTree bt)
{
bt.SetClassNameString("BehaviorTree");
bt.SetId(-1);
bt.SetName("node_test/condition_ut_3");
bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
bt.SetAgentType("AgentNodeTest");
#endif
// children
{
Sequence node0 = new Sequence();
node0.SetClassNameString("Sequence");
node0.SetId(0);
#if !BEHAVIAC_RELEASE
node0.SetAgentType("AgentNodeTest");
#endif
bt.AddChild(node0);
{
And node9 = new And();
node9.SetClassNameString("And");
node9.SetId(9);
#if !BEHAVIAC_RELEASE
node9.SetAgentType("AgentNodeTest");
#endif
node0.AddChild(node9);
{
Or node13 = new Or();
node13.SetClassNameString("Or");
node13.SetId(13);
#if !BEHAVIAC_RELEASE
node13.SetAgentType("AgentNodeTest");
#endif
node9.AddChild(node13);
{
True node10 = new True();
node10.SetClassNameString("True");
node10.SetId(10);
#if !BEHAVIAC_RELEASE
node10.SetAgentType("AgentNodeTest");
#endif
node13.AddChild(node10);
node13.SetHasEvents(node13.HasEvents() | node10.HasEvents());
}
{
False node14 = new False();
node14.SetClassNameString("False");
node14.SetId(14);
#if !BEHAVIAC_RELEASE
node14.SetAgentType("AgentNodeTest");
#endif
node13.AddChild(node14);
node13.SetHasEvents(node13.HasEvents() | node14.HasEvents());
}
node9.SetHasEvents(node9.HasEvents() | node13.HasEvents());
}
{
True node11 = new True();
node11.SetClassNameString("True");
node11.SetId(11);
#if !BEHAVIAC_RELEASE
node11.SetAgentType("AgentNodeTest");
#endif
node9.AddChild(node11);
node9.SetHasEvents(node9.HasEvents() | node11.HasEvents());
}
node0.SetHasEvents(node0.HasEvents() | node9.HasEvents());
}
{
Action_bt_node_test_condition_ut_3_node2 node2 = new Action_bt_node_test_condition_ut_3_node2();
node2.SetClassNameString("Action");
node2.SetId(2);
#if !BEHAVIAC_RELEASE
node2.SetAgentType("AgentNodeTest");
#endif
node0.AddChild(node2);
node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
}
{
Or node1 = new Or();
node1.SetClassNameString("Or");
node1.SetId(1);
#if !BEHAVIAC_RELEASE
node1.SetAgentType("AgentNodeTest");
#endif
node0.AddChild(node1);
{
And node15 = new And();
node15.SetClassNameString("And");
node15.SetId(15);
#if !BEHAVIAC_RELEASE
node15.SetAgentType("AgentNodeTest");
#endif
node1.AddChild(node15);
{
True node3 = new True();
node3.SetClassNameString("True");
node3.SetId(3);
#if !BEHAVIAC_RELEASE
node3.SetAgentType("AgentNodeTest");
//.........这里部分代码省略.........