50 lines
1.1 KiB
C#
50 lines
1.1 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
/// <summary>
|
|
/// WRJUI
|
|
/// </summary>
|
|
public class RadioAngleView : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// 无人机设备ID
|
|
/// </summary>
|
|
public string deviceID;
|
|
/// <summary>
|
|
/// 无人机
|
|
/// </summary>
|
|
public Text textNmme;
|
|
/// <summary>
|
|
/// 放大按钮
|
|
/// </summary>
|
|
public Button btnAmplification;
|
|
/// <summary>
|
|
/// 关闭按钮
|
|
/// </summary>
|
|
public Button btnClose;
|
|
/// <summary>
|
|
/// 视角显示
|
|
/// </summary>
|
|
public RawImage rawShow;
|
|
|
|
|
|
void Start()
|
|
{
|
|
textNmme=transform.Find("名称").GetComponent<Text>();
|
|
btnAmplification = transform.Find("放大查看").GetComponent<Button>();
|
|
btnClose = transform.Find("关闭").GetComponent<Button>();
|
|
rawShow=transform.GetComponentInChildren<RawImage>();
|
|
btnAmplification.onClick.AddListener(() =>
|
|
{
|
|
//吧放大UI打开
|
|
});
|
|
btnClose.onClick.AddListener(() =>
|
|
{
|
|
transform.localScale = Vector3.zero;
|
|
});
|
|
}
|
|
|
|
}
|