Exemplo n.º 1
0
        public void Init(PlayerIconData playerIconData)
        {
            if (levelLabelRT == null)
            {
                levelLabelRT         = LevelLabel.GetComponent <RectTransform>();
                orLevelLabelPosition = levelLabelRT.anchoredPosition;
            }
            Uuid = playerIconData.Uuid;
            //Debug.Log("playerIconData " + playerIconData.Uuid + " " + playerIconData.Gender + " " + playerIconData.AvatarId + " " + playerIconData.Tint + " " + playerIconData.IsDemoUser + " > " + playerIconData.HasFinishedTheGame + "/" + playerIconData.HasFinishedTheGameWithAllStars);
            EndgameState endgameState = playerIconData.HasFinishedTheGameWithAllStars
                ? EndgameState.FinishedWAllStars
                : playerIconData.HasFinishedTheGame
                    ? EndgameState.Finished
                    : EndgameState.Unfinished;

            SetAppearance(playerIconData, endgameState);
        }