using UnityEngine;

using System.Collections;


public class getkey : MonoBehaviour {


void Update () {if(Input.anyKeyDown==true)

{

Debug.Log ("anykeydown");

this.GetComponent<Rigidbody> ().AddForce

(Vector3.up * 1000f);

}

}




키,버튼을 눌렸을때 위로 올라가는 효과를 내기위한 스크립트인데요


집에서 하는데 에러가 뜨면서 유니티겜실행이 안되네요.. 뭐가 잘못된건가요?