/* This toggles the active offensive and
     * defensive scripts when a phase has completed
     */
    // Update is called once per frame
    void Update()
    {
        PlayerPrefs.SetInt("Health", GameControl.control.Confidence());

        if (attackScript.Finished())
        {
            attackScript.enabled = false;
            defScript.enabled    = true;
            defActScript.enabled = true;
        }
        if (defScript.Finished())
        {
            defScript.enabled    = false;
            defActScript.enabled = false;
            attackScript.enabled = true;
        }

        if (attackScript.BaddieDefeated())
        {
            GameControl.control.ExitEncounter();
        }
    }