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