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
        }
コード例 #2
0
        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 = "";
                }
            }
        }
コード例 #3
0
        protected override void OnClick()
        {
            base.OnClick();

            voteData.GetWinnerGroup();
        }