Beispiel #1
0
        protected void Awake()
        {
            base.Awake();
            m_Title             = transform.Find("Title").GetComponent <Text>();
            m_Content           = transform.Find("Content").GetComponent <Text>();
            m_TitleLine         = transform.Find("Line").GetComponent <Image>();
            m_PanelImage        = transform.Find("Panel").GetComponent <Image>();
            m_UITextDescription = transform.GetComponentInChildren <UITextDescription>();
            m_Figure            = transform.Find("Figure").GetComponent <Image>();

            //        m_ButtonsPanel = transform.Find("ButtonsPanel").gameObject;
#if DEBUG
            if (!m_Title)
            {
                UIManager.LogMissingChildError(this.GetType().ToString(), "Title");
            }
            if (!m_Content)
            {
                UIManager.LogMissingChildError(this.GetType().ToString(), "Content");
            }
            if (!m_TitleLine)
            {
                UIManager.LogMissingChildError(this.GetType().ToString(), "TitleLine");
            }
            if (!m_PanelImage)
            {
                UIManager.LogMissingChildError(this.GetType().ToString(), "Panel");
            }
            if (!m_UITextDescription)
            {
                UIManager.LogMissingChildError(this.GetType().ToString(), "TextDescription");
            }
#endif
        }
Beispiel #2
0
        override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
        {
            base.OnStateEnter(animator, stateInfo, layerIndex);

            uiMessagePanel.m_Figure.gameObject.SetActive(true);
            uiMessagePanel.m_Title.text = "HOW TO CONTROL THE VEHICLE";
            uiMessagePanel.m_Content.gameObject.SetActive(false);



            //UIManager.Instance.GetUIComponent("ButtonsPanel").gameObject.SetActive(true);

            UITextDescription textDescription = uiMessagePanel.m_UITextDescription;

            textDescription.gameObject.SetActive(true);
            textDescription.MakeDescriptionText("SecondaryButton", false, "Reset");
            textDescription.MakeDescriptionText("PowerButton", false, "Power");
            textDescription.MakeDescriptionText("TouchPad", true, "Touch Face\nHOLD & PRESS UP");
        }