public void TroubleshootSystem() { FileReadWrite.WriteToFileForDriverSetup(currentYipliConfig.gameId); FileReadWrite.ReadFromFile(); StartCoroutine(StartValidationUI()); FileReadWrite.CheckIfMatDriverIsInstalled(currentYipliConfig.gameId); }
private IEnumerator StartValidationUI() { while (!FileReadWrite.DriverInstalledFinished) { troubleshootButton.transform.GetChild(1).gameObject.SetActive(true); noMatText.text = string.Empty; yield return(new WaitForSecondsRealtime(1f)); FileReadWrite.ReadFromFile(); } // after validation is done //noMatText.text = ProductMessages.Err_mat_connection_retry; troubleshootButton.transform.GetChild(1).gameObject.SetActive(false); yipliHomeButton.SetActive(true); retryButton.SetActive(true); troubleshootButton.SetActive(true); installDriverButton.SetActive(false); ReCheckMatConnection(); }