public void SelectItem(object item) { FightStageInfo info = (FightStageInfo)item; //UIFightStageInfo.ShowAsyn(info); info.StartFighting(); }
public virtual void InitData(FightStageInfo data) { if (data == null) { return; } _FightStage = data; if (_FightStageIcon != null) { //_FightStageIcon.sprite = ResourceManager.Instance.GetSprite(_FightStage.FigetRecord); } if (_FightStageName != null) { _FightStageName.text = _FightStage.FigetRecord.Name; } if (_FightStageDesc != null) { _FightStageDesc.text = _FightStage.FigetRecord.Desc; } if (!data.IsCanFight()) { _DisableObj.SetActive(true); _IsCanClick = false; } else { _DisableObj.SetActive(false); _IsCanClick = true; } }
public static void ShowAsyn(FightStageInfo stageInfo) { Hashtable hash = new Hashtable(); hash.Add("InitObj", stageInfo); GameCore.Instance.UIManager.ShowUI("LogicUI/UIFightStageInfo", hash); }
public void InitInfo(FightStageInfo info) { if (info == null) { return; } _StageInfo = info; }