using Com.ForbiddenByte.OSA.Core; using frame8.Logic.Misc.Other.Extensions; using UniRx; using Extensions.Unity.OSA.View; namespace Extensions.Unity.OSA.ViewHolder { public class ViewHolderListItem : BaseItemViewsHolder where VC : ViewController { private string _rootPath; public VC target { get; private set; } public CompositeDisposable disposables = new CompositeDisposable(); public ViewHolderListItem(string rootPath = "") : base() { _rootPath = rootPath; } public override void CollectViews() { base.CollectViews(); root.GetComponentAtPath(_rootPath, out VC _target); target = _target; } } }