功能批量实现 优化 服务端 新浮动小游戏框架 新界面UI

This commit is contained in:
FloatGaming
2026-04-24 13:20:16 +08:00
parent e0bc0bbf08
commit 5eec879582
257 changed files with 38481 additions and 1288 deletions
@@ -491,6 +491,35 @@ public sealed class PlayerSkillService : MonoBehaviour
return;
}
bool assetChanged = false;
if (saveData.selectedSkillIndex >= 0 && saveData.selectedSkillIndex < registeredSkillAsset.skills.Count)
{
for (int i = 0; i < registeredSkillAsset.skills.Count; i++)
{
userLevel_skills_SO.UserLevelSkillEntry entry = registeredSkillAsset.skills[i];
if (entry == null)
{
continue;
}
bool shouldEnable = i == saveData.selectedSkillIndex;
if (entry.isEnabled != shouldEnable)
{
entry.isEnabled = shouldEnable;
assetChanged = true;
}
}
#if UNITY_EDITOR
if (assetChanged && !Application.isPlaying)
{
UnityEditor.EditorUtility.SetDirty(registeredSkillAsset);
}
#endif
return;
}
int enabledIndex = -1;
for (int i = 0; i < registeredSkillAsset.skills.Count; i++)
{
@@ -595,7 +624,7 @@ public sealed class PlayerSkillService : MonoBehaviour
return cachedRandomMemoryRewardItem;
}
storeItemSO[] items = Resources.LoadAll<storeItemSO>("so/storeSO");
storeItemSO[] items = RuntimeResourcesCache.LoadAllStoreItems();
for (int i = 0; i < items.Length; i++)
{
if (items[i] != null && items[i].itemID == RandomMemoryStoreItemId)
@@ -611,7 +640,7 @@ public sealed class PlayerSkillService : MonoBehaviour
private int GetOwnedHeroCount()
{
HashSet<int> heroIds = new HashSet<int>();
AllyHero_SO[] heroes = Resources.LoadAll<AllyHero_SO>(string.Empty);
AllyHero_SO[] heroes = RuntimeResourcesCache.LoadAllAllyHeroes();
if (heroes == null)
{
return 0;