功能批量实现 优化 服务端 新浮动小游戏框架 新界面UI
This commit is contained in:
@@ -202,7 +202,7 @@ public class SkillBuilder : MonoBehaviour
|
||||
{
|
||||
if (_allAllyHeroSOs != null && _allAllyHeroSOs.Length > 0) return;
|
||||
|
||||
_allAllyHeroSOs = Resources.LoadAll<AllyHero_SO>("");
|
||||
_allAllyHeroSOs = RuntimeResourcesCache.LoadAllAllyHeroes();
|
||||
_allyHeroSoById = new Dictionary<int, AllyHero_SO>(_allAllyHeroSOs != null ? _allAllyHeroSOs.Length : 0);
|
||||
_allyHeroSoBySlotCache = new Dictionary<int, AllyHero_SO>(8);
|
||||
|
||||
@@ -764,7 +764,7 @@ public class SkillBuilder : MonoBehaviour
|
||||
else
|
||||
{
|
||||
// fallback to previous behavior if index missing
|
||||
var all = Resources.LoadAll<AllyHero_SO>("");
|
||||
var all = RuntimeResourcesCache.LoadAllAllyHeroes();
|
||||
foreach (var a in all)
|
||||
{
|
||||
if (a != null && a.ally_heroID == id) { result = a; break; }
|
||||
|
||||
Reference in New Issue
Block a user