Component that can be added to GameObjects with Renderers to let them offset the texture at runtime.
Inheritance: UnityEngine.MonoBehaviour
 private void Awake()
 {
     this.currentOffset = Vector2.zero;
     this.textureShifter = this.GetComponent<TextureShifter>();
 }
Exemplo n.º 2
0
 private void Awake()
 {
     this.currentOffset  = Vector2.zero;
     this.textureShifter = this.GetComponent <TextureShifter>();
 }