suriyun-production / mmorpg-kit-docs

This is document for MMORPG KIT project (https://www.assetstore.unity3d.com/#!/content/110188?aid=1100lGeN)
https://suriyun-production.github.io/mmorpg-kit-docs
49 stars 11 forks source link

UICharacterBuffs bug #2369

Closed CLAXES closed 7 months ago

CLAXES commented 7 months ago

UIPartyMember-Tiny prefab in the buffs I add to show the buffs in the prefab, it works properly at first, it shows it, it deletes it when it is finished, but after a while it enters the bug, buffs debuffs do not appear.

Could there be a problem with UISocialCharacter.cs I think there's a bug when the guy in the party dies.

CLAXES commented 7 months ago

I think the following code place in the protected override void UpdateUI() in UISocialCharacter.cs takes the data only once and does not update the buffs later if it leaves the line of sight

            if (dirtyCharacterId != Data.id)
            {
                dirtyCharacterId = Data.id;
                GameInstance.ClientCharacterHandlers.TryGetSubscribedPlayerCharacterById(Data.id, out characterEntity);
            }
insthync commented 7 months ago

Fixed