1234567891011121314151617181920212223242526 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class SysSizeView : BaseView
- {
- public GameObject viewOpen;
- public GameObject viewClose;
- public Text textName;
- private SysSizeConfig ssc;
- public override void init(int i, BaseConfig c, int vi)
- {
- base.init(i, c, vi);
- ssc = (SysSizeConfig)c;
- textName.text = ssc.text;
- viewOpen.SetActive(!ssc.isChoose);
- viewClose.SetActive(ssc.isChoose);
- }
- public void chooseView()
- {
- CustomInfo.camIndex = viewIndex + 1;
- baselist.updateConfig(CustomInfo.sscList);
- }
- }
|