Esempio n. 1
0
    void Start()
    {
        dh = FindObjectOfType <DialogueHandler>();
        ac = FindObjectOfType <AudioController>();
        ch = FindObjectOfType <CameraHandler>();
        bh = FindObjectOfType <BattleHandler>();

        bpSlider.maxValue = 20;
        mpSlider.maxValue = 20;

        mp = 20;


        if (bh.opponent.willBreakBond)
        {
            bp = 20;
        }
        else
        {
            bp = 0;
        }

        storedBp = bp;
        storedMp = mp;

        if (bh.opponent._name != "Bubbly" && bh.opponent._name != "Shy" && bh.opponent._name != "RAW")
        {
            currentPersonaObj = myPersonas[currentPersona].SpawnMe(personaPos, this);
            ShowPersonaFX();
        }
        else
        {
            GameController.gc.isBossBattle = true;
        }

        ac.BeginBattleMusic();
    }