Vector2Int coordinates; //λ³€μˆ˜ μ„ μ–Έ


Update()

{

coordinates.x = (int) transform.parent.position.x;Β 

coordinates.x = Mathf.RoundToInt(transform.parent.position.x);

}


κ°•μ˜μ—μ„œλŠ” μ—…λ°μ΄νŠΈμ— λ“€μ–΄κ°„ 두 μ½”λ“œ 쀑 μ•„λž˜μ˜ μ½”λ“œλ₯Ό μ‚¬μš©ν•˜λ”κ΅°μš”.

C# μ±… 곡뢀 쀑에 슬λͺƒ μœ„μ˜ μ½”λ“œλ„ λ– μ˜¬λΌ 적어 λ³΄μ•˜λŠ”λ°

이 두 κ°€μ§€λŠ” μ–΄λ–€ 차이가 μžˆλ‚˜μš”?