The issue here is that your enemies array is null. Unity would serialize the array in the inspector automatically, therefore making it not-null (but just have a length of 0).
You can either initialize the enemies array in code or use the Unity inspector
↧