Create SingleTargeting
This commit is contained in:
parent
05fee309c3
commit
611601934d
6 changed files with 57 additions and 27 deletions
23
Assets/Battle/SingleTargeting.cs
Normal file
23
Assets/Battle/SingleTargeting.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue