if (Physics.Raycast(transform.position, targetDirection, out hitInfo, targetMask))

ย  ย  ย  ย  {

ย  ย  ย  ย  ย  ย  float currentDistance = Vector3.Distance(theWarship.position - transform.position);

ย  ย  ย  ย  }


์ด๋Ÿฐ ์ฝ”๋“œ๋ฅผ ์“ฐ๊ณ ์žˆ๋Š”๋ฐ,


Vector3.Distance(theWarship.position - transform.position);


์—ฌ๊ธฐ์„œ ํ•„์š”ํ•œ ์ •์‹ ๋งค๊ฐœ ๋ณ€์ˆ˜ b์— ํ•ด๋‹นํ•˜๋Š” ์ธ์ˆ˜๊ฐ€ ์—†๋‹ค๊ณ  ์˜ค๋ฅ˜๊ฐ€ ๋œธ.


์•„๋‹ˆ ์”จ๋ฐœ ์™œ ์•ˆ๋˜๋Š”๊ฑด์ง€ ์ดํ•ด๊ฐ€ ์•ˆ๋จ


Transform theWarship; ๋ณ€์ˆ˜ ์„ ์–ธ๋„ ์œ„์—์„œ ํ•ด์ค€๊ฑด๋ฐ ๋‹ต๋‹ตํ•ด ๋’ค์งˆ๊ฑฐ๊ฐ™๋‹ค.