Exemple #1
0
    void InitFightPanel()
    {
        Skinning.ResetSkin(selectedSkin);

        if (fightManager == null)
        {
            Debug.LogError(debuguableInterface.debugLabel + "FightManager component shouldn't be null. If we can't get scene references we can't do anything.");
        }

        EnemyBundle    bundle         = gameData.enemyContent.Find(item => { return(item.enemy == actualEnemy); });
        CombatDialogue selectedCombat = bundle.combatDialogue;

        actualTutorial.Init(() =>
        {
            fightManager.Init(
                useCheats,
                bundle.punchlines,
                bundle.shogunDialogue,
                audioProjectManager,
                () =>
            {
                panelManager.JumpTo(GamePhase.CONSEQUENCES, () => consequencesManager = FindObjectOfType <ConsequencesManager>());

                audioProjectManager.FadeMusicOut(1);
            }
                );
        });
    }