public class GetDistance : MonoBehaviour
{
public GameObject Other;
private float Dist;
void Update()
{
float Dist = Vector3.Distance(this.transform.position, Other.transform.position);
Debug.Log("Distance:"+Dist);
}
}
'개발메모' 카테고리의 다른 글
유니코드 정리 (0) | 2022.09.18 |
---|---|
WINSCP 접속 안될때(sftp) 종료명령 1 (0) | 2022.02.09 |
패키지 인스톨후 namespace 인식 못할때. (0) | 2021.12.17 |
texmeshpro (font asset creator) 설정 (0) | 2021.11.24 |
터치감도 설정 (0) | 2021.11.18 |
앱 제거후 재 설치시 PlayerPrefs 삭제가 안되는 경우 (0) | 2021.11.17 |