mixedcards/Assets/Battle/SingleTargeting.cs
2020-09-19 15:30:41 -04:00

23 lines
552 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class SingleTargeting
{
private BattleParticipant participantClicked;
public IEnumerator ChooseTarget() {
while (this.participantClicked == null) {
yield return null;
}
}
public void NotifyParticipantSpriteClicked(BattleParticipant paticipant) {
this.participantClicked = paticipant;
}
public BattleParticipant GetTarget() {
return this.participantClicked;
}
}