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);
}
}
키,버튼을 눌렸을때 위로 올라가는 효과를 내기위한 스크립트인데요
집에서 하는데 에러가 뜨면서 유니티겜실행이 안되네요.. 뭐가 잘못된건가요?
되요->돼요 (되어 = 돼임) [리듬 맞춤법 봇♬]
} 빼먹었네