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. }
private void OnDisable() { AvatarTracker.Instance.RemoveObserver(FriendsObserver); FriendsObserver = null; }