์ ํ๋ธ์์ ์ ๋ํฐ ์์ ๋ณด๋ฉด์ ๋ฐ๋ผ ๋ง๋ค๊ณ ์๋๋ฐ...
์ด๊ฑฐ ๋น์ฃผ์ผ ์คํ๋์ค ์์์ ๋นจ๊ฐ ์ค๋ ์๋จ๊ณ ํ๋ฆฐ์ ๋ ์๋๋ฐ ์ ์ ์ ๋ํฐ ๋ค์ด๊ฐ์ ์คํํด๋ณด๋ฉด The name 'Inout' does not exist in the current contextย ๋ผ๊ณ ๋จ๋๋ผ๊ณ ...
๋ง์ฐ์ค ํด๋ฆญํ๋ฉด ์ ํ ๊ตฌํํ๋ ์คํฌ๋ฆฝํธ์ธ๋ฐ ํน์ ํ๋ฆฐ ์ ์ข ๋ด์ค ์ ์์๊น
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BirdControl : MonoBehaviour {
// Use this for initialization
void Start () {
ย ย ย ย Screen.SetResolution(480, 800, false);
}
// Update is called once per frame
void Update () {
if(Inout.GotMouseButtonDown(0))
ย ย ย ย {
ย ย ย ย ย ย gameObject.GetComponent<Rigidbody>().velocity = new Vector3(0, 0, 0);
ย ย ย ย ย ย gameObject.GetComponent<Rigidbody>().AddForce(0, 300, 0);
ย ย ย ย }
}
}
inout ์ ์๊ฐ ์๋ ๊ฑด ๋ณต๋ถํ ๋ ๋นผ๋จน์ ๊ฑฐ์?
ใด ์ ๋ฆ์๋ค
๋ ์คํ๊น์ง ์๋ ค์ค์ผ ํ๋.
๊ทผ๋ฐ ์ ๋ ๊ฒ ์ฐ๋ฉด ์ฝ๋์๋ํฐ ์์ ์ค๋ฅ๊ฐ ์๋จ๋? ํค๋ฒํผ๊ด๋ จ ๊ธฐ๋ฅ์ Input ํ์๋ก ์ค๋๊น. ์ค๋ฅ ๋ฐ ๊ฑฐ ๊ฐ์๋ฐ