Beispiel #1
0
    // Start is called before the first frame update

    public void StartBattle(AnimalParty playerParty, Animal wildAnimal)
    {
        this.playerParty = playerParty;
        this.wildAnimal  = wildAnimal;
        player           = playerParty.GetComponent <PlayerController>();
        isOutlawBattle   = false;

        StartCoroutine(SetupBattle());
    }
Beispiel #2
0
    public void StartOutlawBattle(AnimalParty playerParty, AnimalParty outlawParty)
    {
        this.playerParty = playerParty;
        this.outlawParty = outlawParty;

        isOutlawBattle = true;
        player         = playerParty.GetComponent <PlayerController>();
        outlaw         = outlawParty.GetComponent <OutlawController>();
        StartCoroutine(SetupBattle());
    }