Ejemplo n.º 1
0
        public void Fill(ArenaChallenger challenger)
        {
            Challenger = challenger;

            int realRank = challenger.rank + 1;

            LTUIUtil.SetText(rankLabel, string.Format("{0}", realRank));
            LTUIUtil.SetText(nameLabel, challenger.name);
            if (realRank == 1)
            {
                rankTopFlag.spriteName = "Arena_Flag_1";
                flagLabel.text         = "1";
            }
            else if (realRank == 2)
            {
                rankTopFlag.spriteName = "Arena_Flag_2";
                flagLabel.text         = "2";
            }
            else if (realRank == 3)
            {
                rankTopFlag.spriteName = "Arena_Flag_3";
                flagLabel.text         = "3";
            }
            else if (realRank >= 4 && realRank <= 10)
            {
                rankTopFlag.spriteName = "Arena_Flag_4";
                flagLabel.text         = "";
            }
            else
            {
                rankTopFlag.spriteName = "Arena_Flag_5";
                flagLabel.text         = "";
            }
            startButton.isEnabled = true;
        }
Ejemplo n.º 2
0
        private void OnChallengerListener(string dataId, INodeData data)
        {
            ArenaChallenger challenger = data as ArenaChallenger;

            Fill(challenger);

            Hotfix_LT.Data.HeroInfoTemplate info = Hotfix_LT.Data.CharacterTemplateManager.Instance.GetHeroInfo(challenger.charId, challenger.skin);
            StartCoroutine(CreateModelCoroutine(info.model_name));
        }