using System;
using Cpp2IlInjected;
using UnityEngine;

namespace commanastationwww.eternaltemple
{
	// Token: 0x020005E2 RID: 1506
	[Token(Token = "0x20005E2")]
	public class Move : MonoBehaviour
	{
		// Token: 0x06003149 RID: 12617 RVA: 0x0006A584 File Offset: 0x00068784
		[Token(Token = "0x6003149")]
		[Address(RVA = "0xC3C1B0", Offset = "0xC3B1B0", VA = "0x180C3C1B0")]
		private void Start()
		{
			/*
An exception occurred when decompiling this method (06003149)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void commanastationwww.eternaltemple.Move::Start()

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	stloc:CharacterController(var_0_06, call:CharacterController(Component::GetComponent, ldloc:Move[exp:Component](this))); 	stfld:CharacterController(Move::character, ldloc:Move(this), ldloc:CharacterController(var_0_06)); }; 
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
   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 123
   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: 0x0600314A RID: 12618 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600314A")]
		[Address(RVA = "0xC3C200", Offset = "0xC3B200", VA = "0x180C3C200")]
		private void Update()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0600314B RID: 12619 RVA: 0x0006A5A0 File Offset: 0x000687A0
		[Token(Token = "0x600314B")]
		[Address(RVA = "0xC3C5F0", Offset = "0xC3B5F0", VA = "0x180C3C5F0")]
		public Move()
		{
			float z = Vector3.zero.z;
			this.destination.z = z;
			base..ctor();
		}

		// Token: 0x04003A3E RID: 14910
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003A3E")]
		private float speed = 7f;

		// Token: 0x04003A3F RID: 14911
		[FieldOffset(Offset = "0x1C")]
		[Token(Token = "0x4003A3F")]
		private float gravity = 800f;

		// Token: 0x04003A40 RID: 14912
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4003A40")]
		private float horizontalMovement;

		// Token: 0x04003A41 RID: 14913
		[FieldOffset(Offset = "0x24")]
		[Token(Token = "0x4003A41")]
		private float verticalMovement;

		// Token: 0x04003A42 RID: 14914
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4003A42")]
		private CharacterController character;

		// Token: 0x04003A43 RID: 14915
		[FieldOffset(Offset = "0x30")]
		[Token(Token = "0x4003A43")]
		private Vector3 destination;
	}
}
