지금 기본설정 이속이 3인데 여기선 부드럽게 따라오는데 이속을 10으로 했을때 체력바가 엄청 심하게 버벅이면서 따라오는데 어떻게 해야할지 모르겠어요...
밑에 체력바에 적용한 스크립트입니다, 이게 문제인건지 아니면 다른 세팅을 바꿔줘야하는지 모르겠네요.
--------------------------------------------
public class Follow : MonoBehaviour
{
RectTransform rect;
// Start is called before the first frame update
void Awake()
{
rect = GetComponent<RectTransform>();
}
// Update is called once per frame
void FixedUpdate()
{
rect.position = Camera.main.WorldToScreenPoint(GameManager.instance.player.transform.position);
}
}
Update에서 처리하셈 - dc App
감사합니다 선생님! ㅇㅂㅇ