Example #1
0
        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");
        }
Example #2
0
        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");
        }