Ejemplo n.º 1
0
    public void ShowGuessPopup(Pictograph pictograph)
    {
        if (m_currentState != eTabletViewState.kDefault || pictograph == null || m_guessPopup == null)
        {
            return;
        }

        if (m_infoPopup != null)
        {
            m_infoPopup.Peek();
        }
        if (m_defaultGUI != null)
        {
            m_defaultGUI.gameObject.SetActive(false);
        }

        //Camera.main.transform.position = pictograph.transform.position + m_guessPictographCameraOffset;
        Camera.main.transform.DOMove(pictograph.transform.position + m_guessPictographCameraOffset, 0.25f);

        m_guessPopup.Setup(pictograph);
        m_guessPopup.gameObject.SetActive(true);
        m_guessPopup.FocusInputBox();
        m_currentState = eTabletViewState.kInfoPopup;
    }
Ejemplo n.º 2
0
 public void Setup(Pictograph pictograph)
 {
     m_inputField.text   = "";
     m_showTime          = Time.time;
     m_currentPictograph = pictograph;
 }