JogressEffectObject.cs 976 B

1234567891011121314151617181920212223242526272829303132
  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. animTime = 1.65f;
  15. yield break;
  16. }
  17. }
  18. animTime = 1.65f;
  19. for (int i = 0; i < jogressEvoRoots.Length; i++)
  20. {
  21. if (i < jogressEvoRootImages.Length)
  22. {
  23. jogressEvoRootImages[i].sprite = jogressEvoRoots[i].CardSprite;
  24. }
  25. }
  26. yield return ContinuousController.instance.StartCoroutine(base.EvolutionEffectAnimation(cardSource, jogressEvoRoots));
  27. }
  28. }