Zombie + Skeletton capacities
This commit is contained in:
parent
e94e2b8dce
commit
3fc57e3a64
12 changed files with 162 additions and 3 deletions
23
Assets/Scripts/UnitScripts/Capacities/TripleAttack.cs
Normal file
23
Assets/Scripts/UnitScripts/Capacities/TripleAttack.cs
Normal file
|
@ -0,0 +1,23 @@
|
|||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class TripleAttack : BaseCapacity
|
||||
{
|
||||
protected override bool CapacityCall()
|
||||
{
|
||||
MinecraftUnit minecraftUnit = _unit as MinecraftUnit;
|
||||
StartCoroutine(TripleAttackRoutine(minecraftUnit));
|
||||
return true;
|
||||
}
|
||||
|
||||
private IEnumerator TripleAttackRoutine(MinecraftUnit minecraftUnit)
|
||||
{
|
||||
minecraftUnit.AttackHandler.Attack();
|
||||
yield return new WaitForSeconds(0.1f);
|
||||
minecraftUnit.AttackHandler.Attack();
|
||||
yield return new WaitForSeconds(0.1f);
|
||||
minecraftUnit.AttackHandler.Attack();
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue