You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
876 B
37 lines
876 B
3 years ago
|
using UnityEngine;
|
||
|
using System.Collections;
|
||
|
using AX.MessageSystem;
|
||
|
using UnityEngine.UI;
|
||
|
using AX.TrackRecord;
|
||
|
|
||
|
public class QiWenControl : MonoBehaviour {
|
||
|
|
||
|
private Text ShowQiWenText;//显示气温面板
|
||
|
private InputField QiWenInput;
|
||
|
void Start () {
|
||
|
|
||
|
SetAttri();
|
||
|
}
|
||
|
public void SetAttri()
|
||
|
{
|
||
|
ShowQiWenText = transform.parent.parent.transform.Find("ShowWeather/TemperatureText").GetComponent<Text>();
|
||
|
QiWenInput = this.gameObject.GetComponent<InputField>();
|
||
|
}
|
||
|
public void ShwoWenDu()
|
||
|
{
|
||
|
if(ShowQiWenText==null || QiWenInput == null)
|
||
|
{
|
||
|
SetAttri();
|
||
|
}
|
||
|
ShowQiWenText.text = QiWenInput.text+ "℃";
|
||
|
if (RecordManager.Instance.IsRecording)
|
||
|
{
|
||
|
MessageDispatcher.SendMessage("RecordEditWeatherEvent");
|
||
|
}
|
||
|
|
||
|
}
|
||
|
void Update () {
|
||
|
|
||
|
}
|
||
|
}
|