Ejemplo n.º 1
0
    public static void FightSteersman()
    {
        PirateSwordFight steersmanFight = GameObject.FindGameObjectWithTag("Steersman").GetComponent <PirateSwordFight>();
        DialogTrigger    d = steersmanFight.GetComponent <DialogTrigger>();

        GameManager.Story.IsFightingSteersman = true;
        PartyAffiliation player = GameManager.GetPlayerComponent <PartyAffiliation>();

        d.DisableInteraction();
        player.party = PartyAffiliation.PartyName.French;
        steersmanFight.DoDelayed(5f, delegate
        {
            GameManager.GetPlayerComponent <InterfaceController>().Clear();
            steersmanFight.AttackTarget(player);
        });
    }