
제가 1.4 캐릭터 움직이기를 듣고 있는데
르탄이를 좌우로 움직이게끔 조건문을 달아주고 있습니다.
왜 오류가 나오는지 잘 모르겠습니다 ㅠㅠ..


작성한 코드 및 에러 메세지
[작성한 코드]
ublic class Rtan : MonoBehaviour
{
float.direction = 0.05f;
// Start is called before the first frame update
void Start()
{
Application.targetFrameRate = 60;
Debug.Log("안녕");
direction = - 0.05f;
}
// Update is called once per frame
void Update()
{
if(transform.position.x > 2.6f)
{
direction = - 0.05f;
}
if(transform.position.x < -2.6f)
{
direction = 0.05f;
}
transform.position += Vector3.right * direction;
}
}
[에러 메세지]
All compiler errors have to be fixed before you can enter playmode!
UnityEditor.SceneView:ShowCompileErrorNotification ()
