Example #1
0
        public override void Initialize(Vector2Int position, bool isInitializingGame)
        {
            var gameSystem = GameSystem.Instance;

            base.Initialize(position, isInitializingGame);
            gameSystem.User.Town.AddPopulation(this.CurrentPopulation);
            this.levelParameter = gameSystem.MasterData.HousingLevelParameter.Records.Get(this.Id, this.Level);
        }
Example #2
0
 public void LevelUp()
 {
     Extensions.Extensions.LevelUp(this);
     this.levelParameter = GameSystem.Instance.MasterData.HousingLevelParameter.Records.Get(this.Id, this.Level);
 }