Hey guys,
I have a list of distances between an enemy unit and player units. I want to find the index of the min value so I can have my enemy go towards that unit. I have looked through google and there seems to be a C# function for min but it isnt working for me. Maybe the libraries are different? From what I read the code would look like this: