alot of stuff i forgot to commit
This commit is contained in:
parent
fc2329a873
commit
b8d516e734
60 changed files with 7397 additions and 64 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using Core.Extensions;
|
||||
using UnityEngine;
|
||||
|
||||
public class AutoControlledEntity : Entity
|
||||
|
|
@ -20,4 +21,15 @@ public class AutoControlledEntity : Entity
|
|||
}
|
||||
return false;
|
||||
}
|
||||
private void Update()
|
||||
{
|
||||
if (closestEntity && !stats.abilitiesDisabled && !stats.isStalled)
|
||||
{
|
||||
stats.attackOriginCenter.Lookat2D(closestEntity.transform.position);
|
||||
foreach (Ability ability in stats.abilities)
|
||||
{
|
||||
ability.TryAbility();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue