void Awake() { Label = GameObject.FindGameObjectWithTag("TouchLabel"); selectMenu = GameObject.Find("selectMenu"); selectMission_Label.SetActive(false); Forward_Button.SetActive(false); Back_Button.SetActive(false); misson.SetActive(false); }
public void onAnimeEnd() { Label.SetActive(false); selectMission_Label.SetActive(true); Forward_Button.SetActive(true); if (!misson.GetComponent <UILabel>().text.Equals("1")) { Back_Button.SetActive(true); } misson.SetActive(true); }
public void press_ButtonBack() { GameObject.Find("backButton").GetComponent <AudioSource>().Play(); int Mission_id = int.Parse(misson.GetComponent <UILabel>().text); if (Mission_id - 2 == 0) { Back_Button.SetActive(false); } Mission_id--; misson.GetComponent <UILabel>().text = "" + Mission_id; }
public void press_ButtonForward() { GameObject.Find("forwardButton").GetComponent <AudioSource>().Play(); int Mission_id = int.Parse(misson.GetComponent <UILabel>().text); if (!Back_Button.activeInHierarchy && Mission_id == 1) { Back_Button.SetActive(true); } Mission_id++; misson.GetComponent <UILabel>().text = "" + Mission_id; }
public void Create_Existing_Account() { Utils.VisibleElement("Validates the Email Field is visible", Email); Utils.VisibleElement("Validates the Password Field is visible", Password); Email.Clear(); Email.SendKeys(VALUE_EMAIL); //Enter text, Valid Email Utils.Enable("Validates the Next Button is Disable", Next_Button); //Validates, the Next Button is disable Password.Clear(); Password.SendKeys(VALUE_PASS); //Enter text Password Utils.Enable("Validates the Next Button is Enable", Next_Button); //Validates, the Next Button is Enable Next_Button.Click(); //Press Nex button WebDriverWait wait2 = new WebDriverWait(_driver, TimeSpan.FromSeconds(30)); wait2.Until(ExpectedConditions.ElementIsVisible(By.Id("snackbar_text"))); //Wait Until the Text "It looks like you’ve already registered" is visible Utils.VisibleElement("Validates the Error message is visible", Error_Account); Utils.Asserts("Validate the Text Error message is correct", EXPECT_CREATE_COUNT, Utils.Get_Attribute(Error_Account, "text")); //Get and validate the text in to Error message Back_Button.Click(); //Press back Button, to return to the beginning }