플레이어 자동으로 찾는 스크립트
private void Start()
{
if (target == null)
{
GameObject p = GameObject.FindWithTag("Player");
if (p != null)
target = p.transform;
}
}
타겟이 null 일때 타겟의 태그가 "Player" 인 것을 찾아 변수 p 에 넣고
p 가 null 이 아니면 타겟의 트랜스폼 정보를 가져온다