using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x0200039B RID: 923
[Token(Token = "0x200039B")]
public class ScrollUv : MonoBehaviour
{
	// Token: 0x06002384 RID: 9092 RVA: 0x00055228 File Offset: 0x00053428
	[Token(Token = "0x6002384")]
	[Address(RVA = "0x177E7A0", Offset = "0x177D7A0", VA = "0x18177E7A0")]
	private void Start()
	{
		int num = 0;
		this.offset = num;
		Material material = base.GetComponent<Renderer>().GetMaterial();
		this.material = material;
		throw new NullReferenceException();
	}

	// Token: 0x06002385 RID: 9093 RVA: 0x00055258 File Offset: 0x00053458
	[Token(Token = "0x6002385")]
	[Address(RVA = "0x177E810", Offset = "0x177D810", VA = "0x18177E810")]
	private void Update()
	{
		/*
An exception occurred when decompiling this method (06002385)

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: 0x06002386 RID: 9094 RVA: 0x000552C8 File Offset: 0x000534C8
	[Token(Token = "0x6002386")]
	[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
	public ScrollUv()
	{
	}

	// Token: 0x04002CF7 RID: 11511
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002CF7")]
	private Material material;

	// Token: 0x04002CF8 RID: 11512
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002CF8")]
	private Vector2 offset;

	// Token: 0x04002CF9 RID: 11513
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002CF9")]
	public float scrollX;

	// Token: 0x04002CFA RID: 11514
	[FieldOffset(Offset = "0x2C")]
	[Token(Token = "0x4002CFA")]
	public float scrollY;
}
