示例#1
0
        public virtual void SelectTipRecord(string tipId)
        {
            var unlockableId = $"{unlockableIdPrefix}/{tipId}";
            var item         = listItems.Find(i => i.UnlockableId == unlockableId);

            if (item is null)
            {
                throw new Exception($"Failed to select `{tipId}` tip record: item with the ID is not found.");
            }
            itemsScrollRect.ScrollTo(item.GetComponent <RectTransform>());
            HandleItemClicked(item);
        }