Beispiel #1
0
    public static void FightBubu()
    {
        BubuSwordFight bubuFight = FindGameObjectWithTag("Bubu").GetComponent <BubuSwordFight>();

        GameManager.Story.isFightingBubu = true;
        DialogTrigger d = bubuFight.GetComponent <DialogTrigger>();

        d.AbortInteraction();
        d.isInteractionEnabled = false;
        bubuFight.enabled      = true;
        PartyAffiliation player = GameManager.GetPlayerComponent <PartyAffiliation>();

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