์œ ํŠœ๋ธŒ์—์„œ ์œ ๋‹ˆํ‹ฐ ์˜์ƒ ๋ณด๋ฉด์„œ ๋”ฐ๋ผ ๋งŒ๋“ค๊ณ ์žˆ๋Š”๋ฐ...

์ด๊ฑฐ ๋น„์ฃผ์–ผ ์ŠคํŠœ๋””์˜ค ์ƒ์—์„œ ๋นจ๊ฐ„ ์ค„๋„ ์•ˆ๋œจ๊ณ  ํ‹€๋ฆฐ์ ๋„ ์—†๋Š”๋ฐ ์ •์ž‘ ์œ ๋‹ˆํ‹ฐ ๋“ค์–ด๊ฐ€์„œ ์‹คํ–‰ํ•ด๋ณด๋ฉด 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);


ย  ย  ย  ย  }

}

}