Пример #1
0
        /// <summary>
        /// Get basic budget info.
        /// </summary>
        /// <returns>The overview.</returns>
        public BudgetInfo GetOverview()
        {
            BudgetInfo budget = new BudgetInfo();

            economyManager.GetIncomeAndExpenses(
                (ItemClass)ScriptableObject.CreateInstance("ItemClass"),
                out budget.totalIncome, out budget.totalExpenses);
            budget.currentCash = economyManager.LastCashAmount;
            return(budget);
        }