in

if(Enemy.Distance < 10) Enemy.Attack();

if(Enemy.Distance < 10) Enemy.Attack(); | ProgrammerHumor.io
if(Enemy.Distance < 10) Enemy.Attack();

Content

Enemy LookAt (player); Enemy.MoveForward0; Unity Developer Is this Artificial Intelligence?