ChanllResultItem.cs 745 B

123456789101112131415161718192021222324252627
  1. /****************************************************************************
  2. * 2024.6 LXD
  3. ****************************************************************************/
  4. using System;
  5. using System.Collections.Generic;
  6. using UnityEngine;
  7. using UnityEngine.UI;
  8. using QFramework;
  9. namespace QFramework
  10. {
  11. public partial class ChanllResultItem : UIElement
  12. {
  13. public void InitData(int index,LevelItem leveItem)
  14. {
  15. if (index % 2 == 0) Bg.gameObject.SetActive(false);
  16. else Bg.gameObject.SetActive(true);
  17. StepID.text = index.ToString();
  18. StepDesctript.text = leveItem.leveName;
  19. if (leveItem.finish) ScoreSituation.text = "<color=green>´³¹Ø³É¹¦</color>";
  20. else ScoreSituation.text = "<color=red>´³¹ØÊ§°Ü</color>";
  21. }
  22. }
  23. }