using UnityEngine; using UnityEngine.UI; using System; using System.Collections; using System.Collections.Generic; using Games.ChatHistory; using GCGame.Table; using Games.GlobeDefine; using GCGame; using Module.Log; using Games.Item; public class ChatInfoLogItemTime : ChatInfoLogItem { private string _TimeStr; public override float GetItemHeight() { return _ChatInfo.preferredHeight + 5; } public void SetTime(string timeStr) { var time = DateTime.Parse(timeStr); _TimeStr = string.Format("{0}/{1}/{2} ", time.Year, time.Month, time.Day) + time.TimeOfDay.ToString(); _ChatInfo.text = _TimeStr; } protected override bool SetDetailLog() { return true; //_ChatInfo.text = _TimeStr; } }