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