Add source files

This commit is contained in:
2025-05-21 20:19:45 +02:00
parent 0f2a242b30
commit 71163fc589
284 changed files with 272526 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
using System;
using UnityEngine;
// Token: 0x020000EE RID: 238
public class TranslateShaderOffset : MonoBehaviour
{
// Token: 0x06001548 RID: 5448 RVA: 0x00198368 File Offset: 0x00196568
private void Start()
{
this.offset = base.GetComponent<Renderer>().material.GetTextureOffset(this.propertyName);
}
// Token: 0x06001549 RID: 5449 RVA: 0x00198386 File Offset: 0x00196586
private void Update()
{
this.offset += this.velocity * Time.deltaTime;
base.GetComponent<Renderer>().material.SetTextureOffset(this.propertyName, this.offset);
}
// Token: 0x04002526 RID: 9510
public string propertyName = "_MainTex";
// Token: 0x04002527 RID: 9511
public Vector2 velocity;
// Token: 0x04002528 RID: 9512
private Vector2 offset;
}