Beispiel #1
0
        /// <summary>
        /// Event callback for when player wins
        /// </summary>
        public void OnWin()
        {
            EndTimer();

            _guiController.timerText.text = "Your time: " + Mathf.Floor(m_Timer) + " seconds";
            _guiController.winPanel.EnablePanel();
            _guiController.DisableGUI();

            DisableCamera();
        }
Beispiel #2
0
        /// <summary>
        /// Delegate that handles when MDSNode is touched / tapped on
        /// </summary>
        public void OnTouch()
        {
            GUIController guiController = MainController.Instance.GetGUIController();

            // Disable GUI
            guiController.DisableGUI();
            // Show puzzle challenge GUI
            guiController.puzzlePanel.EnablePanel();

            // Set image name and answer for puzzle challenge
            guiController.puzzlePanel.SetImageAndAnswer(m_NodeInfo.name, m_NodeInfo.answer);
        }