- Home /
Trouble with making a static list
I'm following this tutorial on coroutines:
https://www.youtube.com/watch?t=49&v=z7awNrGUIqM
And I'm trying to do the following block of code:
public static List<BallScript> allBalls = new List<BallScript>();
This works perfectly fine in the video tutorial but when I do it, I get the following error:
Assets/BallScript.cs(7,23): error CS0308: The non-generic type `System.Collections.IList' cannot be used with the type arguments
Can anyone point me in the right direction here?
Comment
Answer by Kiwasi · May 13, 2015 at 06:37 AM
Are you missing using System.Collections.Generic; at the top of your script?
Your answer
