using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x02000343 RID: 835
[Token(Token = "0x2000343")]
public class ScrollUv : MonoBehaviour
{
	// Token: 0x060020BB RID: 8379 RVA: 0x0004DFA8 File Offset: 0x0004C1A8
	[Token(Token = "0x60020BB")]
	[Address(RVA = "0x444300", Offset = "0x443100", VA = "0x180444300")]
	private void Start()
	{
		int num = 0;
		this.offset = num;
		Material material = base.GetComponent<Renderer>().GetMaterial();
		this.material = material;
		throw new NullReferenceException();
	}

	// Token: 0x060020BC RID: 8380 RVA: 0x0004DFD8 File Offset: 0x0004C1D8
	[Token(Token = "0x60020BC")]
	[Address(RVA = "0x444370", Offset = "0x443170", VA = "0x180444370")]
	private void Update()
	{
		/*
An exception occurred when decompiling this method (060020BC)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void ScrollUv::Update()

 ---> System.ArgumentOutOfRangeException: Non-negative number required. (Parameter 'length')
   at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
   at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackSlot.ModifyStack(StackSlot[] stack, Int32 popCount, Int32 pushCount, ByteCode pushDefinition) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 51
   at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 401
   at ICSharpCode.Decompiler.ILAst.ILAstBuilder.Build(MethodDef methodDef, Boolean optimize, DecompilerContext context) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 276
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 112
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
   --- End of inner exception stack trace ---
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
   at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
	}

	// Token: 0x060020BD RID: 8381 RVA: 0x0004E048 File Offset: 0x0004C248
	[Token(Token = "0x60020BD")]
	[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
	public ScrollUv()
	{
	}

	// Token: 0x04002A0D RID: 10765
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002A0D")]
	private Material material;

	// Token: 0x04002A0E RID: 10766
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002A0E")]
	private Vector2 offset;

	// Token: 0x04002A0F RID: 10767
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002A0F")]
	public float scrollX;

	// Token: 0x04002A10 RID: 10768
	[FieldOffset(Offset = "0x2C")]
	[Token(Token = "0x4002A10")]
	public float scrollY;
}
