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.
23 lines
801 B
23 lines
801 B
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
using UnityEngine.UI; |
|
|
|
public class InBattleTruckItem : MonoBehaviour { |
|
public TruckMessage info; |
|
public void Set(TruckMessage info) |
|
{ |
|
this.info = info; |
|
string showMessage = ""; |
|
string truckName = info.FullName; |
|
string isDoing = "正在执行"+info.NowSkill.ToString(); |
|
string connectSource = info.GetWaterSourceInfo(); |
|
showMessage = truckName + isDoing; |
|
if((info.NowSkill == TruckSkills.喷水 || info.NowSkill==TruckSkills.喷泡沫) && connectSource != "") |
|
{ |
|
//showMessage += ",连接" + connectSource; |
|
showMessage += connectSource; |
|
} |
|
GetComponent<Text>().text = showMessage; |
|
} |
|
}
|
|
|