Mark cards that are not playable
This commit is contained in:
parent
aa78658949
commit
45b91ed352
9 changed files with 162 additions and 14 deletions
21
Assets/Battle/BattleState.cs
Normal file
21
Assets/Battle/BattleState.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class BattleState
|
||||
{
|
||||
// public delegate void BattleStateChangedAction();
|
||||
// public event BattleStateChangedAction OnBattleStateChanged;
|
||||
private bool heroTurn;
|
||||
|
||||
public bool IsTeamsTurn(TeamChoice team) {
|
||||
if (team == TeamChoice.Heroes) {
|
||||
return this.HeroTurn;
|
||||
} else {
|
||||
return !this.HeroTurn;
|
||||
}
|
||||
}
|
||||
|
||||
public bool HeroTurn {get => this.heroTurn; set => this.heroTurn = value;}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue