private void LogWaveFailed() { if (CurrentRound != 0) { Service.Get <ICPSwrveService>().Action(BI_Tier1Name, "wave_failure", CurrentRound.ToString()); } }
private void LogWaveComplete() { if (CurrentRound != 0) { Service.Get <ICPSwrveService>().Action(BI_Tier1Name, "wave_success", CurrentRound.ToString()); } }
void roundplus() { CurrentRound++; Round_TXT.text = CurrentRound + " / " + MaxRound; Round_Alert_TXT.text = "Round " + CurrentRound.ToString(); if (CurrentRound == MaxRound) { //Final Round StartCoroutine(Final_Round_Alert()); } else if (CurrentRound > MaxRound) { //End Of The Game } }
public void ShowRound(TextBlock textBlock, TextBlock textBlock_phone) { textBlock.Text = "Round " + CurrentRound.ToString(); textBlock_phone.Text = "Round " + CurrentRound.ToString(); }
public void Round() { Money = int.Parse(lblMoney.Text); if (Money != 0) { LamData database = new LamData(); Question ask; CurrentRound = int.Parse(lblRound.Text); CurrentRound++; lblRound.Text = CurrentRound.ToString(); switch (CurrentRound) { case 1: case 2: case 3: case 4: ask = database.getSingleQuestion(AllQuestions, 4); lblQue.Text = ask.Question1.ToString(); lblAns1.Text = ask.Answer1.ToString(); lblAns2.Text = ask.Answer2.ToString(); lblAns3.Text = ask.Answer3.ToString(); lblAns4.Text = ask.Answer4.ToString(); Correct = ask.Correct; database.usedQuestion(AllQuestions, ask); break; case 5: case 6: case 7: DisableElement(4); ask = database.getSingleQuestion(AllQuestions, 3); lblQue.Text = ask.Question1.ToString(); lblAns1.Text = ask.Answer1.ToString(); lblAns2.Text = ask.Answer2.ToString(); lblAns3.Text = ask.Answer3.ToString(); Correct = ask.Correct; database.usedQuestion(AllQuestions, ask); break; case 8: DisableElement(3); ask = database.getSingleQuestion(AllQuestions, 2); lblQue.Text = ask.Question1.ToString(); lblAns1.Text = ask.Answer1.ToString(); lblAns2.Text = ask.Answer2.ToString(); Correct = ask.Correct; database.usedQuestion(AllQuestions, ask); break; case 9: MessageBox.Show("You won: " + Money, "GG"); Visible = false; break; } } else { Visible = false; DialogResult dialogResult = MessageBox.Show("Do you want start a new game?", "You lose a milion. Congrats!", MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { Reset(); Visible = true; } } }