Ejemplo n.º 1
0
    private void WonBattle()
    {
        Text info = GameObject.Find("Info").GetComponent <Text> ();

        info.text = "enemy has died";

        if (phase == BattlePhase.BOARDING)
        {
            battleEvent.GainEntireInventory();
        }

        //battle over called after because gain inventory needs to happen first for message to
        //display properly
        battleEvent.BattleOver("You have successfully killed the enemy!", false);
        playerShip.AddLethality(BATTLE_LETHALITY_DELTA);
    }