Exemple #1
0
 public void UpdateInfo(string title, string content, string left = "", string right = "")
 {
     if (!string.IsNullOrEmpty(left))
     {
         leftButton.UpdateLabel(left);
     }
     else
     {
         leftButton.UpdateLabel(LocalManager.GetValue("Button.Cancel.Tip"));
     }
     if (!string.IsNullOrEmpty(right))
     {
         rightButton.UpdateLabel(right);
     }
     else
     {
         rightButton.UpdateLabel(LocalManager.GetValue("Button.Sure.Tip"));
     }
     titleLabel.text = title;
     tipLabel.text   = content;
 }