using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.UI; using ZXKFramework; public class LeftVer : UIBase { public override string GroupName => "LeftVer"; public override string Name => "LeftVer"; public Button[] buts; GameManager gameManager; GameModel gameModel; string[] StringSplit(string str) { string[] ret = str.Split('|'); return ret; } Sprite True; Sprite False; public void changeState(int n) { if (n > buts.Length) return ; for (int i = 0; i < n; i++) { buts[i].image.sprite = True; } for (int i = n; i < buts.Length; i++) { buts[i].image.sprite = False; } } private void OnEnable() { if (buts == null || buts.Length <= 0) buts = gameObject.GetComponentsInChildren