UI Redisgn
This commit is contained in:
@@ -181,6 +181,7 @@ public class Client : MonoBehaviour
|
||||
players[job.data[1]].textStarsInfo = playerInfoElements[job.data[1]].textStarsInfo;
|
||||
players[job.data[1]].uiHandler = uiHandler;
|
||||
players[job.data[1]].textLeftMoves = textLeftMoves;
|
||||
players[job.data[1]].AddCoins(30);
|
||||
players[job.data[1]].Init();
|
||||
|
||||
playerNameTexts[job.data[1]].text = Encoding.ASCII.GetString(name).Replace(" ", "");
|
||||
|
||||
@@ -62,12 +62,12 @@ public class UIHandler : MonoBehaviour
|
||||
|
||||
if (player.coins < 20)
|
||||
{
|
||||
controller.infoText.text = "oh... sorry... but you do not have enough coins (20)";
|
||||
controller.infoText.text = "sorry... but you do not have enough coins";
|
||||
controller.buttonBuy.SetActive(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
controller.infoText.text = "do you want to buy a star? (20 coins)";
|
||||
controller.infoText.text = "A Star for you!";
|
||||
controller.buttonBuy.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user