I have en enemy object:
public class Enemy { public float maximumHealth, currentHealth; }
And I have an array of this object:
public Enemy[] enemies;
And as an example the array has the following items in it:
Index maximumHealth currentHealth
0 100 77
1 100 37
2 100 59
3 100 99
4 100 11
How would I find the enemy with the highest current health (99) using Linq?