if (Input.GetKey(KeyCode.Space))

{

PhotonNetwork.Instantiate("Bullet", transform.position + new Vector3(SR.flipX ? -0.4f : 0.4f, -0.11f, 0), Quaternion.identity)

.GetComponent<PhotonView>().RPC("DirRPC", RpcTarget.All, SR.flipX ? -1 : 1);

AN.SetTrigger("shot");

}



๋‹น์—ฐํžˆ ๊ฒŒ์ž„๋ฉ”์ด์ปค๋กœ ๋Œ€์ถฉ๋Œ€์ถฉ ๋งŒ๋“  ๊ฒƒ๋งˆ๋ƒฅ Bullet์ด ๋ ˆ์ด์ €๋งˆ๋ƒฅ ์™„๋ฒฝํ•œ ์ผ์ง์„ ์œผ๋กœ ๋‚˜๊ฐ.

GetKey๊ฐ™์ด ํ™€๋“œ๋งŒ ํ•ด๋„ Bullet์ด ๋‚˜๊ฐ€๋Š” ๋Œ€์‹ ์— 0.2~0.3์ดˆ์˜ ๋”œ๋ ˆ์ด๋ฅผ ๊ฐ€์ง€๊ณ  ๋‚˜๊ฐ€๊ฒŒ ํ• ์ˆ˜๋Š” ์—†์Œ?