usingUnityEngine;
usingSystem.Collections;
publicclassBgScript:MonoBehaviour{
private MeshRenderer MR;
voidStart( ){
MR=GetComponent<MeshRenderer>( );
}
void Update( ){
MR.material.mainTextureOffset+=newVector2(Time.deltaTime*-1*1,0);
}
}
usingUnityEngine;
usingSystem.Collections;
publicclassBgScript:MonoBehaviour{
private MeshRenderer MR;
voidStart( ){
MR=GetComponent<MeshRenderer>( );
}
void Update( ){
MR.material.mainTextureOffset+=newVector2(Time.deltaTime*-1*1,0);
}
}