unity c# set list to set active true
// Set the whole list of game objects to false:
public class Program : MonoBehaviour
{
    public GameObject[] deck;
    
    void Start()
    {
        foreach (var obj in deck)
        {
            obj.SetActive(true);
        }
    }
}
