public void ShowMatchStatus(string status, Color color) { TipLabel.Hide(); CountdownPanel.Show(); StatusLabel.Text = status; StatusLabel.Color = color; countdownTitle.Text = ""; countdownFraction.Hide(); countdownLabel.Hide(); }
public void SetCountdownVisibility(bool visible) { if (visible) { CountdownPanel.Show(); countdownTitle.Text = "Match starts in"; countdownFraction.Show(); countdownLabel.Show(); } else { CountdownPanel.Hide(); GameStarted = true; } }
public void ShowMatchResult(int ownWins, int oppWins) { TipLabel.Hide(); CountdownPanel.Show(); if (ownWins > oppWins) { StatusLabel.Text = string.Format("You win {0} - {1}", ownWins, oppWins); StatusLabel.Color = new Color32(0, 255, 0, 255); } else { StatusLabel.Text = string.Format("You lose {0} - {1}", ownWins, oppWins); StatusLabel.Color = new Color32(255, 0, 0, 255); } countdownTitle.Text = ""; countdownFraction.Hide(); countdownLabel.Hide(); BackButton.Click += new MouseEventHandler(BackButton_Click); BackButton.Show(); }
public void HideMatchStatus() { CountdownPanel.Hide(); }