private void OnLevelWasLoaded(int level) { if (level == 1) { DayCycle.Instance.onDayChangedCallback += saveInformation.Save; if (loadOnStart) { saveInformation.Load(); } else { RestaurantManager.Instance.InstantateWorker(new Host("Ivaylo Dimitrov", 9)); Budget.Instance.AddFunds(Budget.Instance.startingMoney); } } }
public static void Load() { saveInformation = SaveInformation.Load(savePathFile); Debug.Log("Loaded"); }