in

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

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

[text]