コード例 #1
0
 protected MyBehaviorTreeState IsTrue([BTIn] ref MyBBMemoryBool variable)
 {
     if ((variable == null) || !variable.BoolValue)
     {
         return(MyBehaviorTreeState.FAILURE);
     }
     return(MyBehaviorTreeState.SUCCESS);
 }
コード例 #2
0
 protected MyBehaviorTreeState SetBoolean([BTOut] ref MyBBMemoryBool variable, [BTParam] bool value)
 {
     if (variable == null)
     {
         variable = new MyBBMemoryBool();
     }
     variable.BoolValue = value;
     return(MyBehaviorTreeState.SUCCESS);
 }
コード例 #3
0
 protected MyBehaviorTreeState IsFalse([BTIn] ref MyBBMemoryBool variable)
 {
     return((variable == null || variable.BoolValue) ? MyBehaviorTreeState.FAILURE : MyBehaviorTreeState.SUCCESS);
 }
コード例 #4
0
 protected MyBehaviorTreeState IsTrue([BTIn] ref MyBBMemoryBool variable)
 {
     return((variable != null && variable.BoolValue) ? MyBehaviorTreeState.SUCCESS : MyBehaviorTreeState.FAILURE);
 }