Hello,
I am making jumping game and I have a problem.(I am using Unity 4 and 2D Toolkit.) I want to background scroll.Normally function is running in Unity but if I use 2D Toolkit is not running.
Here is the code:
public float scroolSpeed = 0.2F;
public float offset;
void Update () {
offset = Time.time * scroolSpeed;
renderer.material.SetTextureOffset("_MainTex", new Vector3(0, Time.time * scroolSpeed));
}
simply can't work why?
Please help guys.