예제 #1
0
 /// <summary> 
 /// Adds a new bool var to the supplied blackboard.
 /// Automatically handles undo.
 /// <param name="blackboard">The blackboard to add a new BoolVar.</param>
 /// <returns>The new variable.</returns>
 /// </summary>
 public static BoolVar AddBoolVar (InternalBlackboard blackboard) {
     BlackboardUtility.RegisterVariableUndo(blackboard, "Add Bool Variable"); 
     var newVariable = blackboard.AddBoolVar(); 
     EditorUtility.SetDirty(blackboard);
     return newVariable;
 }