private void JumpToWizard() { //TODO ftom qr code data QRCodeData data = QRCodeData.FromQrCodeData("FIXMEFIXME"); WizardTaskManager.Instance.AddLastScannedData(data); WizardState wState = new WizardState(sceneManager, data); SetNewState(wState); wState.StartWizard(); Debug.Log("Switched to WizardState"); }
public override void SwitchToWizard(QRCodeData data) { //sceneManager.InternalDestroy(scanInterface); scanInterface.SetActive(false); if (!data.IsValid) { SetNewState(new ControlState(sceneManager)); Debug.Log("Switched to ControlState"); return; } WizardTaskManager.Instance.AddLastScannedData(data); WizardState wState = new WizardState(sceneManager, data); SetNewState(wState); wState.StartWizard(); Debug.Log("Switched to WizardState"); }