Add heroes to BattleParameters
This commit is contained in:
parent
84782a9bb3
commit
ba0252298c
10 changed files with 155 additions and 105 deletions
36
Assets/Party/PartyManager.cs
Normal file
36
Assets/Party/PartyManager.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
11
Assets/Party/PartyManager.cs.meta
Normal file
11
Assets/Party/PartyManager.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a10ced1b94393234ab9065b74abb8b9e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Add table
Add a link
Reference in a new issue