protected override void InitData() { ResourceTime = new ReactiveParameter <float>(_userData.ResourceTime); Progress = new ReactiveParameter <float>(_userData.Progress); PendingCount = new ReactiveParameter <int>(_userData.PendingCount); ResourceMax = ResourceTime.Value; for (int i = 0; i < PendingCount.Value; i++) { CreateProduct(); } }
protected override void InitData() { Amount = new ReactiveParameter <int>(_userData.Amount); }