public void UpdateInfo() { MissionSpecs currentMission = _missionSelector?.GetCurrentMission(); _previewImage.sprite = currentMission.Image; _levelNameText.text = currentMission.Name; _descriptionText.text = currentMission.Description; _infoText.text = string.Empty; // check lock status, currently defaulting to off _lockIcon.gameObject.SetActive(false); }
public void OnStartPressed() { if (_missionSelector == null) { Debug.LogError("LEVELSELECTMENU OnPlayPressed: missing mission selector"); return; } MissionSpecs selectedMission = _missionSelector?.GetCurrentMission(); // return if locked // handle any pre-processing // load up the appropriate level after transition StartCoroutine(StartMissionRoutine(selectedMission?.SceneName)); }