Example #1
0
 //After React has been called via TellReactToEvaluateRound() it will tell unity via this function if the round is won or not
 //2 = skip
 //1 = won
 //0 = lost
 public void ReactTellRoundWin(int evaluation)
 {
     rounds = GameObject.Find("Rounds").GetComponent <Rounds>();
     if (evaluation == 1)
     {
         SetRoundOutcome(false);
         rounds.SetRoundPhase(20);
     }
     else if (evaluation == 0)
     {
         SetRoundOutcome(true);
         rounds.SetRoundPhase(21);
     }
     else if (evaluation == 2)
     {
         SetRoundOutcome(false);
         rounds.SetRoundPhase(27);
     }
 }
Example #2
0
 //React will send the Topic of this round via this function
 public void ReactSetThisRoundsTopic(string topic)
 {
     if (playerPosition == activePlayer)
     {
         currentTopic = topic;
     }
     else
     {
         rounds = GameObject.Find("Rounds").GetComponent <Rounds>(); //needs to be called here because else it calls it in the first scene
         rounds.SetRoundPhase(11);
     }
 }