Show playable cards in enemy hand
This commit is contained in:
parent
d513657396
commit
b654419966
5 changed files with 22 additions and 7 deletions
|
|
@ -136,7 +136,8 @@ public class BattleController : MonoBehaviour, IBattleEffectApplier, IBattleEffe
|
|||
|
||||
this.battlePlayerControls.Init(
|
||||
this.heroDeck, this.monsterDeck, this.playArea, this.insightLevel,
|
||||
this.heroHandPlayability, this.uiCanvas.transform.localScale.x);
|
||||
this.heroHandPlayability, this.monsterHandPlayability,
|
||||
this.uiCanvas.transform.localScale.x);
|
||||
this.insightLevel.OnChanged += this.battlePlayerControls.NotifyInsightLevelChanged;
|
||||
}
|
||||
|
||||
|
|
@ -155,9 +156,13 @@ public class BattleController : MonoBehaviour, IBattleEffectApplier, IBattleEffe
|
|||
{
|
||||
StartCoroutine(RunBattleRounds());
|
||||
|
||||
new GameObject("CheatBattle").AddComponent<CheatBattle>().OnWinCode += delegate {
|
||||
CheatBattle cheat = new GameObject("CheatBattle").AddComponent<CheatBattle>();
|
||||
cheat.OnWinCode += delegate {
|
||||
BattleResult.FinishBattle(new BattleResult(true));
|
||||
};
|
||||
cheat.OnInsightCode += delegate {
|
||||
this.insightLevel.Modify(+5);
|
||||
};
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue