//길드기본정보 public void SetGuildInfo(List <NetData.GuildSimpleInfo> SimpleInfoList) { MyGuildSimpleInfo = SimpleInfoList[0]; GuildInfoLabels[(int)eGuildInfoLabel.eGuildName].text = MyGuildSimpleInfo.Name; GuildInfoLabels[(int)eGuildInfoLabel.eMasterName].text = MyGuildSimpleInfo.LeaderName; GuildInfoLabels[(int)eGuildInfoLabel.eMemberCount].text = string.Format("{0}/{1}", MyGuildSimpleInfo.Count.ToString(), _LowDataMgr.instance.GetLowdataGuildInfo(MyGuildSimpleInfo.guildLv).GuildJoinLimit); GuildInfoLabels[(int)eGuildInfoLabel.eCreateTime].text = string.Format(_LowDataMgr.instance.GetStringCommon(577), MyGuildSimpleInfo.CreateTime.ToString().Substring(0, 4), MyGuildSimpleInfo.CreateTime.ToString().Substring(4, 2), MyGuildSimpleInfo.CreateTime.ToString().Substring(6, 2)); GuildInfoLabels[(int)eGuildInfoLabel.eAttak].text = MyGuildSimpleInfo.Attack.ToString(); //아이콘 BtnMark.GetComponent <UISprite>().spriteName = _LowDataMgr.instance.GetLowDataIcon(MyGuildSimpleInfo.Icon); MarkPaging.NowCreate(32); isFreeJoinSet = MyGuildSimpleInfo.JoinSet == 2; GuildJoinLv = (int)MyGuildSimpleInfo.JoinLevel; }
public T GetChild <T>(string name) where T : Component { UIEventTrigger go = GetChild(name); if (go == null) { return(null); } T t = go.GetComponent <T>(); if (t != null) { return(t); } return(null); }