Create basic Story classes and parameterize monsters in Battle scene
This commit is contained in:
parent
6181a7d50c
commit
0d7f4f4954
17 changed files with 268 additions and 48 deletions
45
Assets/Story/Scenes/Scene_Chapter1_Cave.cs
Normal file
45
Assets/Story/Scenes/Scene_Chapter1_Cave.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Scene_Chapter1_Cave: StoryScene
|
||||
{
|
||||
public override IEnumerator Play() {
|
||||
Debug.Log("OMG monsters!");
|
||||
yield return new WaitForSeconds(2f);
|
||||
|
||||
BattleParameters battleParameters = BuildBattleGolemBats();
|
||||
BattleSetup.StartBattle(battleParameters);
|
||||
}
|
||||
|
||||
private BattleParameters BuildBattleGolemBats() {
|
||||
BattleParameters battleParameters = new BattleParameters();
|
||||
MonsterId[] monsterIds = new MonsterId[3] {
|
||||
MonsterId.Golem,
|
||||
MonsterId.Bat,
|
||||
MonsterId.Bat,
|
||||
};
|
||||
|
||||
MCardId[] mCardIds = new MCardId[10] {
|
||||
MCardId.GraniteDefense,
|
||||
MCardId.GraniteDefense,
|
||||
MCardId.GolemCharge,
|
||||
MCardId.GolemFist,
|
||||
|
||||
MCardId.VampireFangs,
|
||||
MCardId.VampireFangs,
|
||||
MCardId.Whirlwind,
|
||||
|
||||
MCardId.VampireFangs,
|
||||
MCardId.VampireFangs,
|
||||
MCardId.Whirlwind,
|
||||
};
|
||||
int[] mCardOwnerIndexes = new int[10] {
|
||||
0, 0, 0, 0,
|
||||
1, 1, 1,
|
||||
2, 2, 2,
|
||||
};
|
||||
battleParameters.SetMonsters(monsterIds, mCardIds, mCardOwnerIndexes);
|
||||
return battleParameters;
|
||||
}
|
||||
}
|
||||
11
Assets/Story/Scenes/Scene_Chapter1_Cave.cs.meta
Normal file
11
Assets/Story/Scenes/Scene_Chapter1_Cave.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f44cf58dd36528d44892aa54d8d17637
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Add table
Add a link
Reference in a new issue