12345678910111213141516171819202122232425262728293031323334 |
- using Blue;
- using UnityEngine;
- using UnityEngine.UI;
- namespace GHZLangChao
- {
- public class DeviceInfo_Item : AbstractController
- {
- private DeviceParameters DeviceParameter;
- public Transform currentPos;
- [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, currentPos));
- }
- }
- }
|