コード例 #1
0
    public override void Execute()
    {
        base.Execute();

        //Show the reboiler object
        highlightFlange.gameObject.SetActive(false);
        reboilerObject.gameObject.SetActive(true);

        VuforiaManager.Instance.GetCurrentTrackerEventHandler().ShowObject();

        //InstructionPanel.Instace.SetText("Please scan QR code #5");
        //InstructionPanel.Instace.ActivatePanel(true);

        //Object should not be shown when tracked
        //VuforiaManager.Instance.EnableTrackerIndex(4);
        //VuforiaManager.Instance.GetCurrentTrackerEventHandler().RegisterToTrackerTrackedEvent(TrackerTracked);

        //Activate the observe steam leakage panel

        observeSteamLeakagePanel.LinkPanelToButton(observeSteamLeakagePanel.GetNextButton(), optionsPanel);

        optionsPanel.LinkPanelToButton(optionsPanel.GetNextButton(), closeBypassPanel);
        optionsPanel.LinkPanelToButton(optionsPanel.GetPreviousButton(), NotifyOperatorPanel);

        closeBypassPanel.LinkPanelToButton(closeBypassPanel.GetPreviousButton(), optionsPanel);


        NotifyOperatorPanel.panelDeactivatedEvent += OperatorNotified;
        StartCoroutine(ShowDevice());
    }