using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine.UI; public class UIBGImageRadom : UIBGImageChange { public List _RandomPathes; protected override void InitImg() { if (_RandomPathes.Count == 0) return; int randomIdx = Random.Range(0, _RandomPathes.Count); ChangeRes(_RandomPathes[randomIdx]); } }