public void Init(FortView fortView, FortViewUi fortViewUi, LevelModel levelModel) { this.fortView = fortView; this.fortViewUi = fortViewUi; this.levelModel = levelModel; fortModel = new FortModel(); this.fortViewUi.Inititalization(fortModel); this.fortView.SetFortState(FortModel.DestructionState.None); }
public FortController(FortView fortView, FortViewUi fortViewUi, LevelModel levelModel) { this.fortView = fortView; this.fortViewUi = fortViewUi; this.fortView.OnHit += OnHitHandler; this.levelModel = levelModel; fortModel = new FortModel(); this.fortViewUi.Inititalization(fortModel); this.fortView.SetFortState(FortModel.DestructionState.None); }