public void SetRound(int pos, string id, int round) { if (pos > 0) { int position = pos - 1; BattlefieldTimelineItem item = getItem(id); itemsSetup[id] = item; item.position = position; item.iconImage.GetComponent <UGUISpriteSelector>().index = 0; item.frame.gameObject.SetActive(false); item.text = round.ToString(); item.iconText.gameObject.SetActive(true); } changed = true; }
public void Set(int pos, string id, string icon, bool friend = false) { if (pos > 0) { int position = pos - 1; BattlefieldTimelineItem item = getItem(id); itemsSetup[id] = item; item.position = position; item.icon = icon; item.friend = friend; item.frame.gameObject.SetActive(true); item.iconText.gameObject.SetActive(false); } changed = true; }