|
|
@ -118,8 +118,11 @@ public class TopicSelect : Level |
|
|
|
text += "<color=white>TIE!</color>\n"; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (bluePicks) |
|
|
|
{ |
|
|
|
text2 = "<color=blue>Blue team picks the " + first + "topic</color>"; |
|
|
@ -164,6 +167,14 @@ public class TopicSelect : Level |
|
|
|
text2 = "MVP picks the first topic"; |
|
|
|
} |
|
|
|
|
|
|
|
if (GameManager.AllowUnlock) |
|
|
|
{ |
|
|
|
titleText = "As a reward, MVP may\nunlock a new topic"; |
|
|
|
text = ""; |
|
|
|
text2 = ""; |
|
|
|
//text = "It will be added to the mix until tomorrow";
|
|
|
|
} |
|
|
|
|
|
|
|
_title.text = titleText; |
|
|
|
_subTitle.text = text; |
|
|
|
_subTitle2.text = text2; |
|
|
@ -218,12 +229,22 @@ public class TopicSelect : Level |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
_title.text = ""; |
|
|
|
_subTitle.text = "Pick a topic!"; |
|
|
|
_subTitle2.text = ""; |
|
|
|
} |
|
|
|
if (GameManager.AllowUnlock) |
|
|
|
{ |
|
|
|
_title.text = "As a reward, MVP may\nunlock a new topic"; |
|
|
|
_subTitle.text = ""; |
|
|
|
_subTitle2.text = ""; |
|
|
|
//text = "It will be added to the mix until tomorrow";
|
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
_title.text = ""; |
|
|
|
_subTitle.text = "Pick a topic!"; |
|
|
|
_subTitle2.text = ""; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
_topic1Box.TopicData = GameDataManager.Instance.GetRandomTopicData(); |
|
|
|
_topic1Box.TopicData = GameDataManager.Instance.GetRandomTopicData(); |
|
|
|
_topic2Box.TopicData = GameDataManager.Instance.GetRandomTopicData(); |
|
|
|
_topic3Box.TopicData = GameDataManager.Instance.GetRandomTopicData(); |
|
|
|
_topic1Box.Name = _topic1Box.TopicData.Topic; |
|
|
@ -304,12 +325,11 @@ public class TopicSelect : Level |
|
|
|
_subTitle.text = ""; |
|
|
|
_subTitle2.text = ""; |
|
|
|
|
|
|
|
/* |
|
|
|
if (GameManager.MVP > -1) |
|
|
|
|
|
|
|
if (GameManager.AllowUnlock) |
|
|
|
{ |
|
|
|
_subTitle2.text = "added to the mix\nuntil tomorrow!"; |
|
|
|
} |
|
|
|
*/ |
|
|
|
|
|
|
|
GameManager.MVP = -1; |
|
|
|
|
|
|
@ -318,6 +338,14 @@ public class TopicSelect : Level |
|
|
|
public static void PickTopic(TopicBox topicBox) |
|
|
|
{ |
|
|
|
GameDataManager.Instance.CurrentTopic = topicBox.TopicData; |
|
|
|
SceneManager.LoadScene("Game"); |
|
|
|
|
|
|
|
if (GameManager.AllowUnlock) |
|
|
|
{ |
|
|
|
GameManager.Instance.RestartGame(); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
SceneManager.LoadScene("Game"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|