改动与优化
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user