private void Start() { _gameManager = GameObject.FindGameObjectWithTag("GameController"); JSONReader jsonReader = _gameManager.GetComponent <JSONReader>(); _lectureList = jsonReader.myLectureList; }
void Awake() => myLectureList = JsonUtility.FromJson <LectureList>(textJSON.text);