Hey guys,
I want moAudioClip and moGameObject to have 3 null elements each whenever a MoreOptions is created.
How do I do that? I’ve been trying some with a constructor but can’t get it to work and have left it empty for now.
public class Test : MonoBehaviour {
public class MoreOptions{
public List<AudioClip> moAudioClip;
public List<GameObject> moGameObject;
public MoreOptions(){
}
}
public List<MoreOptions> moreOptionsList = new List<MoreOptions>();
}