网上演练
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.

24 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;
}
}