public void Bind(FightItemModel model, FightScrollList scrollList) { string result = ""; // result += "<color=navy>【" + PrefDefine.SOLDIER_TYPE[model.fromHero.type] + "·" + model.fromHero.nickname + "】</color>"; result = model.describ; txt.text = result; }
// Use this for initialization void Start() { backBtn.onClick.AddListener(BackClick); leftHeroText.text = "XXXX"; rightHeroText.text = battleModel.battleTitle; resultText.gameObject.SetActive(false); fightRequest = Singleton <FightHttpRequest> .Instance; fightRequest.FightBattle(battleModel.battleId, this); fightScrollList = scrollView.viewport.GetComponentInChildren <FightScrollList>(); InvokeRepeating("executePerSecond", 1.0f, 1.0f); startTime = Time.time; }