using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class HuntGameSelectLevelView : MonoBehaviour { void Start() { GameMgr.ins.addLockerForGamePause(this); Transform btns = this.transform.Find("Btns");; for (int i = 0; i < btns.childCount; i++) { Transform btn = btns.GetChild(i); int level = i + 1; btn.GetComponentInChildren().text = $"第{level}关"; btn.GetComponent