Beispiel #1
0
 public void LoadView()
 {
     postsView.DisplayItems(playerProgress.PostsList.ToArray());
     usersView.DisplayItems(playerProgress.UsersList.ToArray());
     alarmsView.DisplayItems(playerProgress.AlarmsList.ToArray());
     messagesView.DisplayItems(playerProgress.MessagesList.ToArray());
 }
Beispiel #2
0
    public void OnUpdateItem(int key)
    {
        User user = DataManager.instance.GetUser(key);

        this.userAvatar.sprite = user.Avatar;
        this.userName.text     = user.Name;

        Information[] informations = user.Informations;

        for (int i = 0; i < informationMaxCount; i++)
        {
            informationType[i].sprite = informationTypeImages[(int)informations[i].Type];
            informationText[i].text   = informations[i].Text;
        }

        // 자신이 쓴 post 호출
        listViewController.ListClear();
        listViewController.InsertSpace(-listViewController.itemPrototype.anchoredPosition.y);

        int[] userPosts = ScenarioManager.instance.playerProgress.GetUserPosts(key).ToArray();

        listViewController.DisplayItems(userPosts);
    }