protected override void OnUpdate() { base.OnUpdate(); #if HAS_SERVER if (groupsInfo.Groups.Exists(x => x.Id == turningVote.GetWinnerGroup())) { _tx.text = groupsInfo.Groups.Find(x => x.Id == turningVote.GetWinnerGroup()).AreaPoints.ToString("00"); } else { _tx.text = ""; } #endif }
protected override void OnUpdate() { base.OnUpdate(); if (LiveUpdate) { if (groupsInfo.Groups.Exists(x => x.Id == turningVote.GetWinnerGroup())) { _tx.text = groupsInfo.Groups.Find(x => x.Id == turningVote.GetWinnerGroup()).Name; } else { _tx.text = ""; } } }
protected override void OnClick() { base.OnClick(); voteData.GetWinnerGroup(); }