I'm following this tutorial
https://www.davidepesce.com/2019/11/19/godot-tutorial-how-to-use-navigation2d-for-pathfinding/
I'm trying to follow this tutorial which uses GDScript but in C#.
In the final section
else:
# The player get to the next point
position = path[0]
path.remove(0)
# Update the distance to walk
distance_to_walk -= distance_to_next_point
That "path.remove(0)" I can't seem to find in C#, it seems arrays are more limited in C# or I'm I doing something wrong. I have also tried to define my vector2[] array as like
"Godot.Collections.Array< Vector2 > path " to access addtional methods such as remove, clear and such but that gives me conversion errors "Can't convert between Godot Collections and Vector2D[] etc." In other code.
But if I define a variable like 'Vector2[] path' , it doesnt have the extra useful methods like remove, clear and such. Am I missing something?
Thank you.
PS: Path is a Vector2D[] object.