Esempio n. 1
0
        void Start()
        {
            keyText      = GetComponentInChildren <TextMeshProUGUI>();
            keyText.text = keyText.text[0].ToString();

            character = Enigma.chars.IndexOf(keyText.text);

            osb             = GetComponent <OnScreenButton>();
            osb.controlPath = string.Format("<Keyboard>/#({0})", Enigma.chars[character]);
        }
Esempio n. 2
0
 void Start()
 {
     joystick     = GameObject.Find("Joystick").GetComponent <OnScreenStick> ();
     jumpButton   = GameObject.Find("Jump Button").GetComponent <OnScreenButton> ();
     grounded     = false;
     color        = System.Array.IndexOf(materials, GetComponent <MeshRenderer> ().material);
     moveDir      = Vector3.zero;
     jumping      = false;
     airborne     = false;
     doubleJumped = false;
 }
Esempio n. 3
0
            public ButtonBack(GameObject obj)
                : base(obj)
            {
                Button         = obj.GetExactComponent <UIButton>();
                BoxCollider    = obj.GetExactComponent <BoxCollider>();
                OnScreenButton = obj.GetExactComponent <OnScreenButton>();

                Background = new GOThinSpriteBackground(obj.GetChild(0));
                Highlight  = new GOSprite(obj.GetChild(1));
                Icon       = new GOSprite(obj.GetChild(2));
            }
Esempio n. 4
0
        private void UIFinder()
        {
            m_img_bg_Image = FindUI <Image>(transform, "img_bg");

            m_img_talkBG_Image = FindUI <Image>(transform, "img_talkBG");

            m_pl_charactor               = FindUI <RectTransform>(transform, "pl_charactor");
            m_skip_button_Image          = FindUI <Image>(transform, "button/skip_button");
            m_skip_button_Button         = FindUI <Button>(transform, "button/skip_button");
            m_skip_button_OnScreenButton = FindUI <OnScreenButton>(transform, "button/skip_button");

            m_img_content_Image = FindUI <Image>(transform, "img_content");

            m_txtPro_content_TextMeshProUGUI = FindUI <TextMeshProUGUI>(transform, "img_content/txtPro_content");

            m_btn_auto_Image          = FindUI <Image>(transform, "img_content/btn_auto");
            m_btn_auto_Button         = FindUI <Button>(transform, "img_content/btn_auto");
            m_btn_auto_OnScreenButton = FindUI <OnScreenButton>(transform, "img_content/btn_auto");

            m_btn_skip_Image          = FindUI <Image>(transform, "img_content/btn_skip");
            m_btn_skip_Button         = FindUI <Button>(transform, "img_content/btn_skip");
            m_btn_skip_OnScreenButton = FindUI <OnScreenButton>(transform, "img_content/btn_skip");

            m_btn_history_Image          = FindUI <Image>(transform, "img_content/btn_history");
            m_btn_history_Button         = FindUI <Button>(transform, "img_content/btn_history");
            m_btn_history_OnScreenButton = FindUI <OnScreenButton>(transform, "img_content/btn_history");

            m_img_nameBG_Image = FindUI <Image>(transform, "img_content/img_nameBG");

            m_lbl_name_TextMeshProUGUI = FindUI <TextMeshProUGUI>(transform, "img_content/img_nameBG/lbl_name");

            m_img_artName_Image = FindUI <Image>(transform, "img_content/img_artName");

            m_img_contentEnd_Image     = FindUI <Image>(transform, "img_content/img_contentEnd");
            m_img_contentEnd_Animation = FindUI <Animation>(transform, "img_content/img_contentEnd");

            m_img_forntBG_Image = FindUI <Image>(transform, "img_forntBG");


            m_model = new CommonTalkModel();
        }
 public void OnScreenRedirectionAssertion()
 {
     OnScreenButton.Click();
     StringAssert.Contains("On Screen - Quality Cinema", OnScreenPageTitle);
 }
Esempio n. 6
0
 public OnScreenPage ClickOnOnScreenButton()
 {
     OnScreenButton.Click();
     return(new OnScreenPage(_driver));
 }
Esempio n. 7
0
 private void Start()
 {
     onScreenButton = GetComponent <OnScreenButton>();
 }
Esempio n. 8
0
 public WidgetButton(GameObject obj)
     : base(obj)
 {
     OnScreenButton = obj.GetExactComponent <OnScreenButton>();
 }