How to control a turret in MOBA game

I am using photonserver for my moba game develope,and I know some server side coding,but I don’t know how to control the turret and mini soldier’s AI. Like when a hero or mini soldier enters the turret’s attack area,how do a turret know and attack. I am using unity to develope the client,but I don’t want to control the turrets in the client side. Please help me,thanks a lot.

Best Answer

Answers