public void AdvanceRound() { if (roundTesting == 0) { round = GameObject.Find("Rounds").GetComponent <Rounds>(); mockStats.ReactSetPlayerStats("7777"); round.SetRound(11); //round.SetRound(2); } else if (roundTesting == 1) { round = GameObject.Find("Rounds").GetComponent <Rounds>(); mockStats.ReactSetPlayerStats("1777"); round.SetRound(12); } if (roundTesting == 2) { round = GameObject.Find("Rounds").GetComponent <Rounds>(); mockStats.ReactSetPlayerStats("2444"); round.SetRound(6); } else if (roundTesting == 3) { round = GameObject.Find("Rounds").GetComponent <Rounds>(); mockStats.ReactSetPlayerStats("3444"); round.SetRound(8); } else if (roundTesting == 4) { round = GameObject.Find("Rounds").GetComponent <Rounds>(); mockStats.ReactSetPlayerStats("4444"); round.SetRound(10); } else if (roundTesting == 5) { round = GameObject.Find("Rounds").GetComponent <Rounds>(); mockStats.ReactSetPlayerStats("1444"); round.SetRound(12); } mockStats.ReactSetPlayerHasSubmittedClue("0000000"); mockStats.ReactSetPlayerHasChosenTopic("0000000"); mockStats.ReactSetTopicVoteList("00000"); mockStats.ReactSetActivePlayerMadeGuess(0); mockStats.ReactStartNextRound(); roundTesting += 1; }
//This is called by react to update the Round value (round can be 0 - 12 (0 for round 1)) public void ReactSetRound(int round) { rounds = GameObject.Find("Rounds").GetComponent <Rounds>(); rounds.SetRound(round); }