So I've made few tasks myself a few months ago and I updated the behaviour design library lately and colliders[] won't work for me anymore and could not find any examples for colliders within a behaviour task I would really like an example
I would really like some help keeping my code update
that's my code inside a task for example:
how should I change it in a task so it would be correct?
cuz currently, I'm having " Collider' is a namespace but is used like a type " as an error
I would really like some help keeping my code update
that's my code inside a task for example:
C#:
public Collider[] EnemiesAround;
public override TaskStatus OnUpdate()
{
EnemiesAround. = Physics.OverlapSphere(transform.position, radius.Value);
var currentGameObject = GetDefaultGameObject(MySlef.Value);
for(int i =0; i < EnemiesAround.Length; i++)
{
if(EnemiesAround[i].tag != "Untagged" || EnemiesAround[i].tag != "Projectile" || EnemiesAround[i].tag != currentGameObject.tag)
{
ViableTags = ViableTags + 1;
}
}
}
how should I change it in a task so it would be correct?
cuz currently, I'm having " Collider' is a namespace but is used like a type " as an error