public override void Act(Transform player, Transform npc) { //TO IMPLEMENT //Set the target position as the player position //Rotate to the target point controller.PointTurret(); controller.ShootBullet(); //Rotate turret //Shoot bullet towards the player }
public override void Act(Transform player, Transform npc) { //TO IMPLEMENT //Set the target position as the player position //Rotate to the target point SetRotation(player.position, npc); //Rotate turret TurretLookAt(player.position, _npcController.turret); //Shoot bullet towards the player _npcController.ShootBullet(); }