’System.Array’ does not contain a definition for ‘transform’ accepting a first argument of type ‘System.Array’ could be found (are you missing a using directive or an assembly reference?)
Do you know which line of code the error is caused at? The error message should say something like
[error] (at Assets/Scripts/FileName.cs:##), where ## is the line number.