예제 #1
0
        protected void SetObserverPlayerNameData(IUIDataManager uiDataManager)
        {
            allObserverNameData = uiDataManager.AllObserverNameData;
            if (allObserverNameData.Changed)
            {
                allObserverNameData.Changed = false;

                var length = allObserverNameData.NameList.Count;
                if (length > 0)
                {
                    observerPlayerBackImage.visible = true;
                }
                else
                {
                    observerPlayerBackImage.visible = false;
                }

                for (var i = 0; i < length; ++i)
                {
                    if (i > ObserverPlayerH * ObserverPlayerV)
                    {
                        break;
                    }

                    UnityUiUtility.SetTexture(observerPlayerName[i], allObserverNameData.NameList[i]);
                    observerPlayerName[i].visible = true;
                }

                length = observerPlayerName.Count;
                for (var i = 0; i < length; ++i)
                {
                    observerPlayerName[i].visible = false;
                }
            }
        }
예제 #2
0
        private void UpdateExpImage()
        {
            var length = profitData.expPlusList.Count;
            var index  = 0;

            for (var i = 0; i < length; ++i)
            {
                if (profitData.expPlusList[i] > 0)
                {
                    expImageList[index].visible = true;
                    UnityUiUtility.SetTexture(expImageList[index], GetCommonUrl(expUrlList[i]));

                    expSpriteList[index].visible = true;
                    SetNumber(expSpriteList[index], profitData.expPlusList[i]);
                    index++;
                }
            }
        }