using System;
using Cpp2IlInjected;
using UnityEngine;

namespace commanastationwww.eternaltemple
{
	// Token: 0x0200058A RID: 1418
	[Token(Token = "0x200058A")]
	public class Move : MonoBehaviour
	{
		// Token: 0x06002E80 RID: 11904 RVA: 0x000632C8 File Offset: 0x000614C8
		[Token(Token = "0x6002E80")]
		[Address(RVA = "0xBD1470", Offset = "0xBD0270", VA = "0x180BD1470")]
		private void Start()
		{
			/*
An exception occurred when decompiling this method (06002E80)

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: 0x06002E81 RID: 11905 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E81")]
		[Address(RVA = "0xBD14C0", Offset = "0xBD02C0", VA = "0x180BD14C0")]
		private void Update()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E82 RID: 11906 RVA: 0x000632E4 File Offset: 0x000614E4
		[Token(Token = "0x6002E82")]
		[Address(RVA = "0xBD18B0", Offset = "0xBD06B0", VA = "0x180BD18B0")]
		public Move()
		{
			float z = Vector3.zero.z;
			this.destination.z = z;
			base..ctor();
		}

		// Token: 0x04003754 RID: 14164
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003754")]
		private float speed = 7f;

		// Token: 0x04003755 RID: 14165
		[FieldOffset(Offset = "0x1C")]
		[Token(Token = "0x4003755")]
		private float gravity = 800f;

		// Token: 0x04003756 RID: 14166
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4003756")]
		private float horizontalMovement;

		// Token: 0x04003757 RID: 14167
		[FieldOffset(Offset = "0x24")]
		[Token(Token = "0x4003757")]
		private float verticalMovement;

		// Token: 0x04003758 RID: 14168
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4003758")]
		private CharacterController character;

		// Token: 0x04003759 RID: 14169
		[FieldOffset(Offset = "0x30")]
		[Token(Token = "0x4003759")]
		private Vector3 destination;
	}
}
