Пример #1
0
 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
 }
Пример #2
0
    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();
    }