ย ์๋ ํ์ธ์! ์ง๋ฌธ์ข ํ ๊ผ์..
hit ๋ ์๋ ํ๋ ์ด์ด์ย Owner.UserId๋ฅผ ์ด์ฉํด์ย ์๋ ํ๋ ์ด์ด ์ค๋ธ์ ํธ์ ์ ๊ทผํ ์์์๊น์?
Dictionary<string, GameObject> dict = new Dictionary<string, GameObject>();
string userId = hit.collider.gameObject.GetComponent<PhotonView>().Owner.UserId;
dict[userId] = hit.collider.gameObject;
์ด๋ ๊ฒ ํ๋๋ย userIdย ์๋์ ๊ณ์ null๊ฐ๋ง ๋์ค๊ณ ใ ใ ย
๋์์ด ํ์ํฉ๋๋ค.
Photon์ ์์จ๋ด์ ๋ชจ๋ฅด๊ฒ ์ง๋ง ๋ฌธ์์์ PhotonView.Owner.UserId๊ฐ ์ธ์ ์ด๋ค ๊ฐ์ ์ป๊ณ ์ด๊ธฐํ๋๋์ง ๊ฐ์ ๋ฌธ์๋ฅผ ์ฐพ์๋ด