Ejemplo n.º 1
0
    void Start()
    {
        _menuLevel   = MenuLevel.Root;
        _battleState = BattleState.OnGoing;
        var battleParties = new BattleParties(battleField, _battleMenuView.GetPartyMemberViews());

        _battleMenuModel       = new BattleMenuModel(_battleMenuView.GetPartyMemberViews(), _battleMenuView.gridNavigationMenu);
        _battleActionProcessor = new BattleActionProcessor(battleParties);
        _battleSubMenuModel    = new BattleSubMenuModel(_battleActionProcessor, _battleSubMenuView.gridNavigationMenu);

        _battleMenuView.InitPartyMemberView(_battleActionProcessor);
        _battleActionProcessor.StartCoroutines(this);

        SetRootMenuEvents();
        SetSubMenuEvents();
        SetBattleActionProcessorEvents();
    }