using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace vnxbqy.UI { public class AlchemyBriefBehaviour : MonoBehaviour { [SerializeField] Text m_AlchemyTime; [SerializeField] Text m_AlchemyCount; [SerializeField] Text m_AlchemySuccRate; AlchemyModel model { get { return ModelCenter.Instance.GetModel(); } } public void Display() { DisplayAlchemyTime(); DisplayAlchemyCount(); DisplaySuccRate(); } void DisplayAlchemyTime() { var config = AlchemyConfig.Get(model.selectAlchemy); m_AlchemyTime.text = TimeUtility.SecondsToDHMSCHS(config.NeedTime); } void DisplayAlchemyCount() { m_AlchemyCount.SetActive(false); //AlchemyCount alchemyCount; //if (model.TryGetAlchemyCount(model.selectAlchemy, PlayerDatas.Instance.extersion.luckValue, out alchemyCount)) //{ // if (alchemyCount.min == alchemyCount.max) // { // m_AlchemyCount.text = alchemyCount.min.ToString(); // } // else // { // m_AlchemyCount.text = StringUtility.Contact(alchemyCount.min, "~", alchemyCount.max); // } //} } void DisplaySuccRate() { m_AlchemySuccRate.SetActive(false); //var succRate = model.GetAlchemySuccRate(model.selectAlchemy); //var rate = (int)(succRate / 100); //m_AlchemySuccRate.text = rate + "%"; } public void Dispose() { } } }