void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); } else { Debug.LogWarning("Multiple MiniGameCatalog(s) found!"); Destroy(gameObject); } LoadResources(); }
void Start() { catalog = MiniGameCatalog.instance; PopulateMiniGames(); }