功能批量实现 优化 服务端 新浮动小游戏框架 新界面UI
This commit is contained in:
@@ -345,7 +345,7 @@ public class AllyHero_SO : ScriptableObject
|
||||
}
|
||||
#endif
|
||||
|
||||
return Resources.LoadAll<AllyHero_SO>("so/ally");
|
||||
return RuntimeResourcesCache.LoadAll<AllyHero_SO>("so/ally");
|
||||
}
|
||||
|
||||
private static void TryAddEquipmentSkillGroupId(List<int> result, HashSet<int> dedupe, int groupId)
|
||||
@@ -678,7 +678,7 @@ public class AllyHero_SO : ScriptableObject
|
||||
UnityEditor.AssetDatabase.SaveAssets();
|
||||
#endif
|
||||
|
||||
AllyHero_SO[] runtimeHeroes = Resources.LoadAll<AllyHero_SO>("so/ally");
|
||||
AllyHero_SO[] runtimeHeroes = RuntimeResourcesCache.LoadAll<AllyHero_SO>("so/ally");
|
||||
for (int i = 0; i < runtimeHeroes.Length; i++)
|
||||
{
|
||||
AllyHero_SO hero = runtimeHeroes[i];
|
||||
|
||||
@@ -154,6 +154,27 @@ public class Player_SO : ScriptableObject
|
||||
PersistEditorChanges();
|
||||
}
|
||||
|
||||
public int GetLegacyExpBottleCount(string fieldName)
|
||||
{
|
||||
switch (fieldName)
|
||||
{
|
||||
case "commonExpBottle78001":
|
||||
return commonExpBottle78001;
|
||||
case "mediumExpBottle78002":
|
||||
return mediumExpBottle78002;
|
||||
case "superiorExpBottle78003":
|
||||
return superiorExpBottle78003;
|
||||
case "supremeExpBottle78004":
|
||||
return supremeExpBottle78004;
|
||||
case "extraordinaryExpBottle78005":
|
||||
return extraordinaryExpBottle78005;
|
||||
case "celestialExpBottle78006":
|
||||
return celestialExpBottle78006;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public int GetLegacyDushMaterialCount(string fieldName)
|
||||
{
|
||||
switch (fieldName)
|
||||
|
||||
Reference in New Issue
Block a user