| | |
| | | [SerializeField] Transform caseesObj; |
| | | FuncPresetChooseCells presetChooseCells; |
| | | |
| | | Action presetChooseCellssetOnLoaded; |
| | | |
| | | [SerializeField] Button funPresetBtn; |
| | | |
| | | |
| | |
| | | presetObj.transform.SetParentEx(caseesObj, Vector3.zero, Quaternion.identity, Vector3.one); |
| | | presetChooseCells = presetObj.GetComponent<FuncPresetChooseCells>(); |
| | | presetChooseCells.ChangeAlignment(TextAnchor.MiddleCenter); |
| | | presetChooseCellssetOnLoaded?.Invoke(); |
| | | presetChooseCellssetOnLoaded = null; |
| | | }).Forget(); |
| | | |
| | | |
| | |
| | | } |
| | | fightPowerText.text = UIHelper.ReplaceLargeArtNum(FightPowerManager.Instance.GetTeamFightPower(HeroUIManager.Instance.selectTeamType, true)); |
| | | |
| | | presetChooseCells.Display((int)BattlePreSetType.Story, (int)FuncPresetType.Team); |
| | | if (null == presetChooseCells) |
| | | { |
| | | presetChooseCellssetOnLoaded = () => |
| | | { |
| | | if (this == null) |
| | | return; |
| | | presetChooseCells.Display((int)BattlePreSetType.Story, (int)FuncPresetType.Team); |
| | | }; |
| | | } |
| | | else |
| | | { |
| | | presetChooseCells.Display((int)BattlePreSetType.Story, (int)FuncPresetType.Team); |
| | | } |
| | | |
| | | |
| | | funPresetBtn.SetActive(FuncPresetManager.Instance.IsPreShow()); |
| | | } |
| | |
| | | |
| | | |
| | | flyAlphaTween.alpha = 1; |
| | | flyHead.Init(flyHero.heroId, flyHero.SkinID); |
| | | flyHead.Init(flyHero.heroId, flyHero.SkinID).Forget(); |
| | | flyHead.transform.position = startPos; |
| | | var targetPos = scenePosImgs[posList[0]].transform.position; |
| | | flyHead.transform.localScale = Vector3.one; |