コード例 #1
0
    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);
    }
コード例 #2
0
    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);
    }