改动与优化

This commit is contained in:
FloatGaming
2026-07-20 22:19:25 +08:00
parent 0a0872c4f4
commit b5d1cdcbc5
83 changed files with 2475 additions and 276 deletions
@@ -458,10 +458,12 @@ public class friendSystem : MonoBehaviour
for (int index = 0; index < target.Count; index++)
{
FriendCardViewData friend = target[index];
bool created = false;
if (!_spawnedCards.TryGetValue(friend.SteamId, out GameObject cardObject) || cardObject == null)
{
cardObject = Instantiate(friendCardPrefab, friendsDisplayContent);
_spawnedCards[friend.SteamId] = cardObject;
created = true;
}
cardObject.transform.SetSiblingIndex(index);
@@ -470,6 +472,11 @@ public class friendSystem : MonoBehaviour
{
card.Bind(friend, HandleStarChanged, HandleOpenDetails, HandleOpenPrivateConversation);
}
if (created)
{
UI_OrderedEntryAnimator.PlayFadeOnly(cardObject, index, 0.16f, 0.012f, true);
}
}
UpdateDefaultTextState(target.Count);