コード例 #1
0
 /**
  * Traverses mantle to face target.
  */
 private void AimAtTarget()
 {
     transform.LookAt(
         VectorUtils.SetY(
             parentController.GetTargetedPosition(),
             transform.position.y)
         );
 }
コード例 #2
0
 /**
  * Aims the barrel at the designated target location.
  */
 private void AimAtTarget()
 {
     transform.LookAt(parentController.GetTargetedPosition());
 }