Unity-下樓梯遊戲製作(1/3)
當時是這麼做的:
using UnityEngine;
using System.Collections;
public class BackGroundLoop : MonoBehaviour {
public float speed = 0.2f;
void Update () {
renderer.material.mainTextureOffset = new Vector2 (0, Time.time * speed);
}
}










