public virtual void SetDuelPanel(DuelModel model) { info = model; Name.text = info.Nickname; Bet.text = info.Bet.ToString(); LoginManager.Instance.GetUserImage(info.UserId, Avatar); }
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); } }
public void UpdatePanel(DuelModel duel) { CurrentDuels.Remove(duel); NoDuelsMsg.SetActive(CurrentDuels.Count == 0); }
public override void SetDuelPanel(DuelModel model) { base.SetDuelPanel(model); SetStatus(model); }