Create PlayerAction and use hero cards in parallel
This commit is contained in:
parent
d48780d629
commit
a2ced7a003
5 changed files with 61 additions and 25 deletions
25
Assets/Battle/PlayerAction.cs
Normal file
25
Assets/Battle/PlayerAction.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class PlayerAction
|
||||
{
|
||||
private bool turnPassed;
|
||||
private HeroCard cardUsed;
|
||||
|
||||
public PlayerAction(HeroCard cardUsed) {
|
||||
if (cardUsed != null) {
|
||||
this.cardUsed = cardUsed;
|
||||
} else {
|
||||
this.turnPassed = true;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsTurnPassed() {
|
||||
return this.turnPassed;
|
||||
}
|
||||
|
||||
public HeroCard GetCardUsed() {
|
||||
return this.cardUsed;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue