Utility function to remove a condition from the transition.
public void RemoveCondition(AnimatorCondition condition) { this.undoHandler.DoUndo(this, "Condition removed"); AnimatorCondition[] conditions = this.conditions; ArrayUtility.Remove<AnimatorCondition>(ref conditions, condition); this.conditions = conditions; }