Ejemplo n.º 1
0
        // Use this for initialization
        public void Awake()
        {
            if (GameGlobals.IsDebugState)
            {
                ProfileSave.Instance.Load();
                GameSave.Instance.Load(ProfileSave.Instance.AcctualSavePath);
                //XmlManager.Save<GameSave>(GameSave.Instance, ProfileSave.Instance.AcctualSavePath, false);
            }

            this.BlockChangingBuilding = false;
            this.cityData = GameSave.Instance.CityData;
            this.cityData.Reload(GameSave.Instance.Player.Level);

            //Debug.Log("Itemy po wczytaniu: " + GameSave.Instance.Player.Bagpack.Count);

            //ItemGenerator itemGenerator = new ItemGenerator();
            //GameSave.Instance.Player.Bagpack.Add(itemGenerator.GenerateGoldByValue(10000));

            //GameSave.Instance.Player.Bagpack.Clear();
            //GameSave.Instance.Update();
        }
Ejemplo n.º 2
0
 private void Awake()
 {
     this.cityData = GameSave.Instance.CityData;
     this.player   = GameSave.Instance.Player;
     this.isChampionInfoPanelEnabled = false;
 }