Example #1
0
 private void OnEnable()
 {
     friendsListItems.Initialize();
     FriendsObserver = new PeopleFriendsObserver(this);
     AvatarTracker.Instance.AddObserver(FriendsObserver);
     GetFriends(); // TODO: There is no real point in calling this here as the friends list has not been populated yet.
 }
Example #2
0
 private void OnDisable()
 {
     AvatarTracker.Instance.RemoveObserver(FriendsObserver);
     FriendsObserver = null;
 }