|
@ -88,8 +88,30 @@ public class TopicSelect : Level |
|
|
if (blueScoreStack.Score + redScoreStack.Score == 0) |
|
|
if (blueScoreStack.Score + redScoreStack.Score == 0) |
|
|
{ |
|
|
{ |
|
|
//first round
|
|
|
//first round
|
|
|
titleText = "Welcome to ICON"; |
|
|
|
|
|
first = "first "; |
|
|
if (GameManager.MVP > -1) |
|
|
|
|
|
{ |
|
|
|
|
|
titleText = "MVP may unlock a new topic"; |
|
|
|
|
|
// text = "It will be added to the mix until tomorrow";
|
|
|
|
|
|
|
|
|
|
|
|
if (GameManager.MVP == 0 || GameManager.MVP == 1) |
|
|
|
|
|
{ |
|
|
|
|
|
_players[0].GetComponent<Player>().SetName("MVP"); |
|
|
|
|
|
_players[1].GetComponent<Player>().SetName("MVP"); |
|
|
|
|
|
bluePicks = true; |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
_players[2].GetComponent<Player>().SetName("MVP"); |
|
|
|
|
|
_players[3].GetComponent<Player>().SetName("MVP"); |
|
|
|
|
|
bluePicks = false; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
titleText = "Welcome to ICON"; |
|
|
|
|
|
first = "first "; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
@ -103,14 +125,16 @@ public class TopicSelect : Level |
|
|
text2 = "<color=blue>Blue team picks the " + first + "topic</color>"; |
|
|
text2 = "<color=blue>Blue team picks the " + first + "topic</color>"; |
|
|
if (GameManager.Instance.PlayerJoined[0]) |
|
|
if (GameManager.Instance.PlayerJoined[0]) |
|
|
{ |
|
|
{ |
|
|
_players[0].GetComponent<Player>().SetName("blue team"); |
|
|
if (GameManager.MVP == -1) |
|
|
|
|
|
_players[0].GetComponent<Player>().SetName("blue team"); |
|
|
|
|
|
|
|
|
_players[1].GetComponent<Player>().BecomeInvisible(); |
|
|
_players[1].GetComponent<Player>().BecomeInvisible(); |
|
|
_players[1].GetComponent<Player>().PassInputOnto = _players[0].GetComponent<Player>(); |
|
|
_players[1].GetComponent<Player>().PassInputOnto = _players[0].GetComponent<Player>(); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
_players[1].GetComponent<Player>().SetName("blue team"); |
|
|
if (GameManager.MVP == -1) |
|
|
|
|
|
_players[1].GetComponent<Player>().SetName("blue team"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
_players[2].SetActive(false); |
|
|
_players[2].SetActive(false); |
|
@ -121,17 +145,23 @@ public class TopicSelect : Level |
|
|
text2 = "<color=red>Red team picks the " + first + "topic</color>"; |
|
|
text2 = "<color=red>Red team picks the " + first + "topic</color>"; |
|
|
if (GameManager.Instance.PlayerJoined[2]) |
|
|
if (GameManager.Instance.PlayerJoined[2]) |
|
|
{ |
|
|
{ |
|
|
_players[2].GetComponent<Player>().SetName("red team"); |
|
|
if (GameManager.MVP == -1) |
|
|
|
|
|
_players[2].GetComponent<Player>().SetName("red team"); |
|
|
_players[3].GetComponent<Player>().BecomeInvisible(); |
|
|
_players[3].GetComponent<Player>().BecomeInvisible(); |
|
|
_players[3].GetComponent<Player>().PassInputOnto = _players[2].GetComponent<Player>(); |
|
|
_players[3].GetComponent<Player>().PassInputOnto = _players[2].GetComponent<Player>(); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
_players[3].GetComponent<Player>().SetName("red team"); |
|
|
if (GameManager.MVP == -1) |
|
|
|
|
|
_players[3].GetComponent<Player>().SetName("red team"); |
|
|
} |
|
|
} |
|
|
_players[0].SetActive(false); |
|
|
_players[0].SetActive(false); |
|
|
_players[1].SetActive(false); |
|
|
_players[1].SetActive(false); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (GameManager.MVP > -1) |
|
|
|
|
|
text2 = ""; |
|
|
|
|
|
|
|
|
_title.text = titleText; |
|
|
_title.text = titleText; |
|
|
_subTitle.text = text; |
|
|
_subTitle.text = text; |
|
|
_subTitle2.text = text2; |
|
|
_subTitle2.text = text2; |
|
@ -272,6 +302,13 @@ public class TopicSelect : Level |
|
|
_subTitle.text = ""; |
|
|
_subTitle.text = ""; |
|
|
_subTitle2.text = ""; |
|
|
_subTitle2.text = ""; |
|
|
|
|
|
|
|
|
|
|
|
if (GameManager.MVP > -1) |
|
|
|
|
|
{ |
|
|
|
|
|
_subTitle2.text = "added to the mix\nuntil tomorrow!"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
GameManager.MVP = -1; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static void PickTopic(TopicBox topicBox) |
|
|
public static void PickTopic(TopicBox topicBox) |
|
|