Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
 protected override void InitData()
 {
     Amount = new ReactiveParameter <int>(_userData.Amount);
 }