Hello, I am currently have some problems with my code. I am trying to set the value of an array but I keep getting an error stating that GameComponent does not have a definition for GetComponents
public Collider2D[] platCol;
public GameObject[] platforms;
void Awake()
{
platforms = GameObject.FindGameObjectsWithTag("Solid");
platCol = platforms.GetComponents<Collider2D>();
}