示例#1
0
        public Garden()
        {
            _saveMicro = Micros.GetSaveMicro();
            _saveMicro.AddCoins(InitialData.InitialCoins);

            _plots = InitialData.GetPlotsData();
            _saveMicro.SetPlots(_plots);
        }
示例#2
0
        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();
        }
示例#3
0
 public Garden(List <Plot> plots)
 {
     _saveMicro = Micros.GetSaveMicro();
     _plots     = plots;
 }