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.
40 lines
1.0 KiB
40 lines
1.0 KiB
using UnityEngine; |
|
using System.Collections; |
|
using UnityEngine.UI; |
|
using AX.MessageSystem; |
|
using AX.TrackRecord; |
|
|
|
public class FengLiControl : MonoBehaviour { |
|
private float FengLiNumber = 10; |
|
private string FengLiText; |
|
private Dropdown FengLiDropdown; |
|
private Text ShowFengLiText; |
|
|
|
void Start () { |
|
SetAttri(); |
|
} |
|
public void SetAttri() |
|
{ |
|
FengLiDropdown = this.GetComponent<Dropdown>(); |
|
ShowFengLiText = transform.parent.parent.transform.Find("ShowWeather/FengLiText").GetComponent<Text>(); |
|
} |
|
public void ShowFengLi() |
|
{ |
|
if(FengLiDropdown==null || ShowFengLiText == null) |
|
{ |
|
SetAttri(); |
|
} |
|
FengLiText = FengLiDropdown.options[FengLiDropdown.value].text+"级"; |
|
ShowFengLiText.text = FengLiText; |
|
MessageDispatcher.SendMessage("ChangeSomkeDir"); |
|
if (RecordManager.Instance.IsRecording) |
|
{ |
|
MessageDispatcher.SendMessage("RecordEditWeatherEvent"); |
|
} |
|
|
|
} |
|
|
|
void Update () { |
|
|
|
} |
|
}
|
|
|