public static Sprite GetAvatar(User u) { Sprite sprite = (Sprite)null; if (!UIInviteMenu.avatars.TryGetValue(u.id, out sprite)) { sprite = UIInviteMenu.PrepareSprite(u); } return(sprite); }
public static void Initialize() { if (!Steam.IsInitialized()) { return; } foreach (User friend in Steam.friends) { UIInviteMenu.avatars[friend.id] = UIInviteMenu.PrepareSprite(friend); } }