1
을 반복하지하지만 여기
을 반복하지 않는 것은 스프라이트 텍스처 내가 쿼드에 텍스처를 반복합니다 연합
using UnityEngine;
using System.Collections;
public class Track : MonoBehaviour {
public float speed;
Vector2 Offset;
// Use this for initialization
void Start() {
}
// Update is called once per frame
void Update() {
Offset = new Vector2 (0, Time.deltaTime * speed);
GetComponent<Renderer>().material.mainTextureOffset = Offset;
}
}
누군가가
Offset
에 값을 할당 할 때 로직 문제가