using System.Collections.Generic; using UnityEngine; public class AddChallenges : MonoBehaviour { public List m_challenges; private void Awake() { LevelComplete component = GameObject.Find("InGameLevelCompleteMenu").GetComponent(); component.SetChallenges(m_challenges); } }