123456789101112131415161718192021222324252627282930 |
- using Blue;
- using UnityEngine;
- using UnityEngine.UI;
- namespace GHZLangChao
- {
- public class DeviceInfo_Item : AbstractController
- {
- private DeviceParameters DeviceParameter;
- [SerializeField] private Button DetailsBtn;
- private void Start()
- {
- DetailsBtn.onClick.AddListener(ClickDetails);
- }
- int i;
- public void Init(DeviceParameters DeviceParameter,int i)
- {
- this.DeviceParameter = DeviceParameter;
- this.i = i;
- }
- private void ClickDetails()
- {
- DeviceParameter.deviceModel = "NetView400"+i;
- this.SendCommand(new DeviceDetailsUpdataDataCommand(DeviceParameter));
- }
- }
- }
|