Exemple #1
0
        public void SetNewProfit()
        {
            int index = FreeSlotIndex;

            if (index >= 0)
            {
                EndBoostTimes[index] = Mathf.Max(EndBoostTimes.Max(), Services.TimeService.UnixTimeInt) + kBoostTime;
            }
            else
            {
                UnityEngine.Debug.LogError("no free slots");
            }
        }
Exemple #2
0
 public override object GetSave()
 {
     return(new X2ProfitServiceSave {
         endTimes = EndBoostTimes.Select(t => t).ToArray(),
     });
 }