/// <summary> /// 进化结束,开始播动画 /// </summary> private void playEffect() { newCard = StorageManagerment.Instance.getRole(mainRole.getCardUid()); UiManager.Instance.openWindow <EmptyWindow>((win) => { UiManager.Instance.switchWindow <EffectBlackWindow>((win222) => { if (IntensifyCardManager.Instance.getFoodCard().Count != 0) { oldCard = tempCard; win222.playEvoEffect(oldCard, IntensifyCardManager.Instance.getFoodCard()[0], showEvolutionWindow); } else { oldCard = tempCard; foodProp = EvolutionManagerment.Instance.getCardByQuilty(mainRole.getCard()) != null ? PropManagerment.Instance.createProp( EvolutionManagerment.Instance.getCardByQuilty(mainRole.getCard()).sid) : PropManagerment.Instance.createProp( EvolutionManagerment.Instance.getCardByQualityNotNull(mainRole.getCard()).sid); win222.playEvoEffect(oldCard, foodProp.getIconId(), showEvolutionWindow); } }); }); }
/// <summary> /// 进化结束,开始播动画 /// </summary> private void playEffect() { newCard = StorageManagerment.Instance.getRole(mainRole.getCardUid()); UiManager.Instance.openWindow <EmptyWindow>((win) => { UiManager.Instance.switchWindow <EffectBlackWindow> ((win222) => { if (evoType == 1) { oldCard = tempCard; win222.playEvoEffect(oldCard, food.getCard(), showEvolutionWindow); } else { oldCard = tempCard; win222.playEvoEffect(oldCard, foodProp.getIconId(), showEvolutionWindow); } }); }); }