next level logic
This commit is contained in:
parent
ee2a5fdf08
commit
37bed1fd33
16 changed files with 130 additions and 38 deletions
|
@ -12,7 +12,7 @@ public class GolemDefense : BaseCapacity
|
|||
Collider[] hitColliders = Physics.OverlapSphere(transform.position, buffArea.radius, buffArea.includeLayers);
|
||||
foreach (Collider target in hitColliders)
|
||||
{
|
||||
if (!target.CompareTag("Unit")) continue;
|
||||
if (!target.CompareTag("CurrentMinecraftUnit")) continue;
|
||||
AbstractUnit targetUnit = target.GetComponent<AbstractUnit>();
|
||||
if (targetUnit.IsTeamA == _unit.IsTeamA)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue