Exemple #1
0
    private void _onNextRound()
    {
        SolaEngine engine = SolaEngine.getInstance();
        BattleMgr  bMgr   = (BattleMgr)engine.getMgr(typeof(BattleMgr));

        List <BattleHeroModel> monsters = bMgr.getMonsters();

        foreach (BattleHeroModel model in monsters)
        {
            _createHeroBall(model);
        }

        DialogueModel dialogueModel = bMgr.getDialogueModel();

        if (dialogueModel == null)
        {
            _nextAction(null);
            return;
        }

        dialogue.gameObject.SetActive(true);
        dialogue.setDialogueModel(dialogueModel);
    }