コード例 #1
0
 public void ShowMatchStatus(string status, Color color)
 {
     TipLabel.Hide();
     CountdownPanel.Show();
     StatusLabel.Text    = status;
     StatusLabel.Color   = color;
     countdownTitle.Text = "";
     countdownFraction.Hide();
     countdownLabel.Hide();
 }
コード例 #2
0
 public void SetCountdownVisibility(bool visible)
 {
     if (visible)
     {
         CountdownPanel.Show();
         countdownTitle.Text = "Match starts in";
         countdownFraction.Show();
         countdownLabel.Show();
     }
     else
     {
         CountdownPanel.Hide();
         GameStarted = true;
     }
 }
コード例 #3
0
    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();
    }
コード例 #4
0
 public void HideMatchStatus()
 {
     CountdownPanel.Hide();
 }