Add heroes to BattleParameters

This commit is contained in:
henriquenakashima 2020-09-26 23:28:36 -04:00
parent 84782a9bb3
commit ba0252298c
10 changed files with 155 additions and 105 deletions

View file

@ -0,0 +1,36 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PartyManager
{
public static void SetupBattleParameters(BattleParameters parameters) {
HeroId[] heroIds = new HeroId[3] {
HeroId.Alchemist,
HeroId.NPCGuard,
HeroId.NPCGuard,
};
HCardId[] cardIds = new HCardId[11] {
HCardId.Eagerness,
HCardId.Eagerness,
HCardId.LeadShot,
HCardId.LeadShot,
HCardId.SmokeBomb,
HCardId.Eagerness,
HCardId.SwordSlash,
HCardId.ShieldBlock,
HCardId.Eagerness,
HCardId.SwordSlash,
HCardId.ShieldBlock,
};
int[] cardOwnerIndexes = new int[11] {
0, 0, 0, 0, 0,
1, 1, 1,
2, 2, 2,
};
parameters.SetHeroes(heroIds, cardIds, cardOwnerIndexes);
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a10ced1b94393234ab9065b74abb8b9e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: