public void generateActivationCode(string activationFile) { FileSelectionWindow fs = Instantiate(Resources.Load <GameObject>("FileSelectionWindow")).GetComponent <FileSelectionWindow>(); fs.inputField.text = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\activation_code.bin"; fs.onValidated += generateActivationCodeCallback; }
public void importClick() { FileSelectionWindow fs = Instantiate(Resources.Load <GameObject>("FileSelectionWindow")).GetComponent <FileSelectionWindow>(); fs.onValidated += import; }
public void installLicense(string licenseFile) { FileSelectionWindow fs = Instantiate(Resources.Load <GameObject>("FileSelectionWindow")).GetComponent <FileSelectionWindow>(); fs.onValidated += installLicenseCallback; }