things
This commit is contained in:
parent
a17810ffeb
commit
4e91f448c9
826 changed files with 66 additions and 8 deletions
14
Assets/Scripts/UnitScripts/Capacities/WitchSummon.cs
Normal file
14
Assets/Scripts/UnitScripts/Capacities/WitchSummon.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class WitchSummon : BaseCapacity
|
||||
{
|
||||
[SerializeField] private GameObject summonUnit;
|
||||
|
||||
protected override bool CapacityCall()
|
||||
{
|
||||
GameObject unit = Instantiate(summonUnit, transform.position, Quaternion.identity);
|
||||
AbstractUnit unitScript = unit.GetComponent<AbstractUnit>();
|
||||
unitScript.StartFight();
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue