コード例 #1
0
 public override void Act(Transform player, Transform npc)
 {
     //TO IMPLEMENT
     //Rotate to the target point
     controller.MoveToTarget(player.position, curSpeed, curRotSpeed);
     controller.PointTurret();
     //Rotate turret
     //Go Forward
 }
コード例 #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
     controller.PointTurret();
     controller.ShootBullet();
     //Rotate turret
     //Shoot bullet towards the player
 }