JogressEffectObject.cs 941 B

123456789101112131415161718192021222324252627282930
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class JogressEffectObject : EvolutionEffectObject
  6. {
  7. [SerializeField] Image[] jogressEvoRootImages;
  8. public override IEnumerator EvolutionEffectAnimation(CardSource cardSource, CardSource[] jogressEvoRoots, string message = "")
  9. {
  10. if (ContinuousController.instance != null)
  11. {
  12. if (!ContinuousController.instance.showCutInAnimation)
  13. {
  14. yield break;
  15. }
  16. }
  17. animTime = 1.65f;
  18. for (int i = 0; i < jogressEvoRoots.Length; i++)
  19. {
  20. if (i < jogressEvoRootImages.Length)
  21. {
  22. jogressEvoRootImages[i].sprite = jogressEvoRoots[i].CardSprite;
  23. }
  24. }
  25. yield return ContinuousController.instance.StartCoroutine(base.EvolutionEffectAnimation(cardSource, jogressEvoRoots));
  26. }
  27. }