gameplay手游触屏支持,一些小优化和修复
This commit is contained in:
@@ -47,6 +47,7 @@ public class newTeamSelector : MonoBehaviour
|
||||
private static AllyHero_SO[] cachedHeroes;
|
||||
private static Dictionary<int, AllyHero_SO> cachedHeroesById;
|
||||
private Coroutine refreshSkillsRoutine;
|
||||
private Coroutine startupSkillValidationRoutine;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
@@ -65,14 +66,24 @@ public class newTeamSelector : MonoBehaviour
|
||||
{
|
||||
RefreshTeamShareCodeDisplay();
|
||||
if (instantiateOnStart)
|
||||
{
|
||||
CreateSlots();
|
||||
StartCoroutine(LoadSelectedHeroesNextFrame());
|
||||
}
|
||||
|
||||
if (startupSkillValidationRoutine != null)
|
||||
{
|
||||
StopCoroutine(startupSkillValidationRoutine);
|
||||
}
|
||||
|
||||
startupSkillValidationRoutine = StartCoroutine(StartupLoadRoutine());
|
||||
}
|
||||
|
||||
private IEnumerator LoadSelectedHeroesNextFrame()
|
||||
private IEnumerator StartupLoadRoutine()
|
||||
{
|
||||
yield return null;
|
||||
yield return AllyHeroSkillSelectionValidator.ValidateAllHeroesAsync();
|
||||
LoadSelectedHeroes();
|
||||
startupSkillValidationRoutine = null;
|
||||
}
|
||||
|
||||
public void CreateSlots()
|
||||
|
||||
Reference in New Issue
Block a user