예제 #1
0
    //Constructs both parties and attaches this battle manager to each of them
    void Start()
    {
        //Assign manager
        pParty.SetBattleManager(this, ui, board);
        eParty.SetBattleManager(this, ui, board);

        //Organize EnemyParty
        ea = ow.encounteredParty;
        eParty.OrganizeParty(false, board.enemyCoordinates, board.scaling, ea.GetParty());

        //Assign opposite party
        pParty.otherPartyBody = eParty;
        eParty.otherPartyBody = pParty;
    }
예제 #2
0
    //Constructs both parties and attaches this battle manager to each of them
    void Start()
    {
        //Reset Battle Speed to normal
        gameSpeed = 1;

        //Assign manager
        pParty.SetBattleManager(this, ui, board);
        eParty.SetBattleManager(this, ui, board);

        //Organize EnemyParty
        ea = ow.encounteredParty;
        eParty.OrganizeParty(false, board.enemyCoordinates, board.scaling, ea.GetParty(), ea.addLevel);

        //Assign opposite party
        pParty.otherPartyBody = eParty;
        eParty.otherPartyBody = pParty;

        Destroy(ow.gameObject);
    }