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"); } }
public override object GetSave() { return(new X2ProfitServiceSave { endTimes = EndBoostTimes.Select(t => t).ToArray(), }); }