Exemplo n.º 1
0
 /// <summary> 
 /// Adds a new Quaternion var to the supplied blackboard.
 /// Automatically handles undo.
 /// <param name="blackboard">The blackboard to add a new QuaternionVar.</param>
 /// <returns>The new variable.</returns>
 /// </summary>
 public static QuaternionVar AddQuaternionVar (InternalBlackboard blackboard) {
     BlackboardUtility.RegisterVariableUndo(blackboard, "Add Quaternion Variable"); 
     var newVariable = blackboard.AddQuaternionVar(); 
     EditorUtility.SetDirty(blackboard);
     return newVariable;
 }