Exemple #1
0
 public virtual void SetDuelPanel(DuelModel model)
 {
     info      = model;
     Name.text = info.Nickname;
     Bet.text  = info.Bet.ToString();
     LoginManager.Instance.GetUserImage(info.UserId, Avatar);
 }
Exemple #2
0
    void SetStatus(DuelModel model)
    {
        AcceptButton.SetActive(false);
        WaitText.SetActive(false);
        ResultButton.SetActive(false);

        if (model.Status == 3 || model.Status == 4)
        {
            ResultButton.SetActive(true);
        }
        else if (model.Result != null || model.Status == -1)
        {
            WaitText.SetActive(true);
        }
        else
        {
            AcceptButton.SetActive(true);
        }
    }
Exemple #3
0
 public void UpdatePanel(DuelModel duel)
 {
     CurrentDuels.Remove(duel);
     NoDuelsMsg.SetActive(CurrentDuels.Count == 0);
 }
Exemple #4
0
 public override void SetDuelPanel(DuelModel model)
 {
     base.SetDuelPanel(model);
     SetStatus(model);
 }