21 lines
547 B
C#
21 lines
547 B
C#
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;}
|
|
}
|