When I try to compare distanceToEnemy and attackRange in this code:
var distanceToEnemy = (targetEnemy.position, objectToPan.position);
if (distanceToEnemy <= attackRange)
{
}
I get this error:
Cannot apply operator '<=' to operands of type '(UnityEngine.Vector3, Unity Engine.Vector3)' and 'float'
What should I do to fix this?