
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
플레이가 힘들 정도로 빨리 움직입니다.
C# 코드의 경우 노션에서 복사 붙여넣기했고 최초 이동 코드
void Update() { transform.position += new Vector3(0.05f, 0, 0)
부터 이후 모든 코드에서 빠르게 움직입니다
보고 계신 화면 전체를 캡처해 주


시면, 튜터님들이 빠르게 상황을 이해할 수 있어요.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class rtan : MonoBehaviour
{
float direction = 0.05f;
float toward = 1.0f;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetMouseButtonDown(0))
{
toward *= -1;
direction *= -1;
}
if (transform.position.x > 2.8f)
{
direction = -0.05f;
toward = -1.0f;
}
if (transform.position.x < -2.8f)
{
direction = 0.05f;
toward = 1.0f;
}
transform.localScale = new Vector3(toward, 1, 1);
transform.position += new Vector3(direction, 0, 0);
}
}
기타
rtan -> rtanbody, rtan_run -> rtan_runs 등 요소 일부 이름 변경이 있었고
애니메이션 시간 설정은 0:00 0:13 0:26 으로 했고
실행 시 애니메이션 반복이 되지 않아 Loop time란에 체크했습니다
Unity 2021.3.25f1 Personal
VS for mac 2019
Mac Ventura 13.0.1
