Skip to content

Instantly share code, notes, and snippets.

@unity3dcollege
Created July 1, 2017 20:09
Show Gist options
  • Save unity3dcollege/6edd43a30ef1c34893deeee9cd5bc601 to your computer and use it in GitHub Desktop.
Save unity3dcollege/6edd43a30ef1c34893deeee9cd5bc601 to your computer and use it in GitHub Desktop.
var enemiesToTarget = allEnemies.OrderBy(t => t.Health).Take(numberICanTarget);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment