public Garden() { _saveMicro = Micros.GetSaveMicro(); _saveMicro.AddCoins(InitialData.InitialCoins); _plots = InitialData.GetPlotsData(); _saveMicro.SetPlots(_plots); }
private void Start() { Micros.Init(); _saveMicro = Micros.GetSaveMicro(); if (_saveMicro.LoadedSaveGame) { //There is a saved game, let's get it _garden = new Garden(_saveMicro.GetPlots()); } else { //Nope, let's create some data //Garden will take care of this _garden = new Garden(); } InitializePlotViews(); MainUi.UpdateView(); }
public Garden(List <Plot> plots) { _saveMicro = Micros.GetSaveMicro(); _plots = plots; }