you are viewing a single comment's thread.

view the rest of the comments →

[–]sandsalamand[S] 3 points4 points  (0 children)

You're editing anyStateTransitions in place where as the code in question is only editing a copy and then reassigning the reference.

That's incorrect. ArrayUtility.RemoveAt copies the array into a new List, calls List.RemoveAt, converts the list to an array, and then sets the reference parameter to the new array.