diff --git a/namedropper/Assets/Scripts/Game.cs b/namedropper/Assets/Scripts/Game.cs
index eec6ccb..d7d81d7 100644
--- a/namedropper/Assets/Scripts/Game.cs
+++ b/namedropper/Assets/Scripts/Game.cs
@@ -6,6 +6,7 @@ using UnityEngine.SceneManagement;
public class Game : Level
{
+ public const bool USE_MVP = true;
const bool HIDE_SCORES = true;
int _seconds = 70;
diff --git a/namedropper/Assets/Scripts/GameManager.cs b/namedropper/Assets/Scripts/GameManager.cs
index f1da773..d458a08 100644
--- a/namedropper/Assets/Scripts/GameManager.cs
+++ b/namedropper/Assets/Scripts/GameManager.cs
@@ -21,6 +21,7 @@ public class GameManager
public static int PLAYER_SKIN = 5; //0 == puck, 1 == pancake, 2 == gummybear, 3==pig, 4==ball w/ bear, 5==pop
public static int MAX_PLAYER_SKIN = 5;
+ public static int MVP = -1;
bool _doubleBlueScores = false;
bool _doubleRedScores = false;
diff --git a/namedropper/Assets/Scripts/GameOverScreen.cs b/namedropper/Assets/Scripts/GameOverScreen.cs
index 4a265b9..71be9bc 100644
--- a/namedropper/Assets/Scripts/GameOverScreen.cs
+++ b/namedropper/Assets/Scripts/GameOverScreen.cs
@@ -38,7 +38,11 @@ public class GameOverScreen : MonoBehaviour
_gameOverMessage.text += "TIE!";
}
- _gameOverMessage.text += "\n\nPlay again?";
+ if (Game.USE_MVP)
+ {
+ _gameOverMessage.text += "\nMVP: Player 3!\nEarned unlock token for next game\n\nPlay again?";
+ GameManager.MVP = 3;
+ }
}
Invoke("Restart", 10);
diff --git a/namedropper/Assets/Scripts/TopicSelect.cs b/namedropper/Assets/Scripts/TopicSelect.cs
index 91b6b51..73675c0 100644
--- a/namedropper/Assets/Scripts/TopicSelect.cs
+++ b/namedropper/Assets/Scripts/TopicSelect.cs
@@ -88,8 +88,30 @@ public class TopicSelect : Level
if (blueScoreStack.Score + redScoreStack.Score == 0)
{
//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().SetName("MVP");
+ _players[1].GetComponent().SetName("MVP");
+ bluePicks = true;
+ }
+ else
+ {
+ _players[2].GetComponent().SetName("MVP");
+ _players[3].GetComponent().SetName("MVP");
+ bluePicks = false;
+ }
+ }
+ else
+ {
+ titleText = "Welcome to ICON";
+ first = "first ";
+ }
}
else
{
@@ -103,14 +125,16 @@ public class TopicSelect : Level
text2 = "Blue team picks the " + first + "topic";
if (GameManager.Instance.PlayerJoined[0])
{
- _players[0].GetComponent().SetName("blue team");
+ if (GameManager.MVP == -1)
+ _players[0].GetComponent().SetName("blue team");
_players[1].GetComponent().BecomeInvisible();
_players[1].GetComponent().PassInputOnto = _players[0].GetComponent();
}
else
{
- _players[1].GetComponent().SetName("blue team");
+ if (GameManager.MVP == -1)
+ _players[1].GetComponent().SetName("blue team");
}
_players[2].SetActive(false);
@@ -121,17 +145,23 @@ public class TopicSelect : Level
text2 = "Red team picks the " + first + "topic";
if (GameManager.Instance.PlayerJoined[2])
{
- _players[2].GetComponent().SetName("red team");
+ if (GameManager.MVP == -1)
+ _players[2].GetComponent().SetName("red team");
_players[3].GetComponent().BecomeInvisible();
_players[3].GetComponent().PassInputOnto = _players[2].GetComponent();
}
else
{
- _players[3].GetComponent().SetName("red team");
+ if (GameManager.MVP == -1)
+ _players[3].GetComponent().SetName("red team");
}
_players[0].SetActive(false);
_players[1].SetActive(false);
}
+
+ if (GameManager.MVP > -1)
+ text2 = "";
+
_title.text = titleText;
_subTitle.text = text;
_subTitle2.text = text2;
@@ -272,6 +302,13 @@ public class TopicSelect : Level
_subTitle.text = "";
_subTitle2.text = "";
+ if (GameManager.MVP > -1)
+ {
+ _subTitle2.text = "added to the mix\nuntil tomorrow!";
+ }
+
+ GameManager.MVP = -1;
+
}
public static void PickTopic(TopicBox topicBox)