using System;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.EventSystems;

namespace Obi.CrossPlatformInput
{
	// Token: 0x020004FB RID: 1275
	[Token(Token = "0x20004FB")]
	[ExecuteInEditMode]
	public class MobileControlRig : MonoBehaviour
	{
		// Token: 0x06002C94 RID: 11412 RVA: 0x0006076C File Offset: 0x0005E96C
		[Token(Token = "0x6002C94")]
		[Address(RVA = "0xBC4790", Offset = "0xBC3590", VA = "0x180BC4790")]
		private void OnEnable()
		{
			int num = 0;
			this.EnableControlRig(num != 0);
		}

		// Token: 0x06002C95 RID: 11413 RVA: 0x00060784 File Offset: 0x0005E984
		[Token(Token = "0x6002C95")]
		[Address(RVA = "0xBC4980", Offset = "0xBC3780", VA = "0x180BC4980")]
		private void Start()
		{
			EventSystem eventSystem = UnityEngine.Object.FindObjectOfType<EventSystem>();
			int num = 0;
			if (eventSystem == num)
			{
				GameObject gameObject = new GameObject("EventSystem");
				EventSystem eventSystem2 = gameObject.AddComponent<EventSystem>();
				StandaloneInputModule standaloneInputModule = gameObject.AddComponent<StandaloneInputModule>();
				return;
			}
		}

		// Token: 0x06002C96 RID: 11414 RVA: 0x000607C4 File Offset: 0x0005E9C4
		[Token(Token = "0x6002C96")]
		[Address(RVA = "0xBC4790", Offset = "0xBC3590", VA = "0x180BC4790")]
		private void CheckEnableControlRig()
		{
			int num = 0;
			this.EnableControlRig(num != 0);
		}

		// Token: 0x06002C97 RID: 11415 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002C97")]
		[Address(RVA = "0xBC47A0", Offset = "0xBC35A0", VA = "0x180BC47A0")]
		private void EnableControlRig(bool enabled)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002C98 RID: 11416 RVA: 0x000607DC File Offset: 0x0005E9DC
		[Token(Token = "0x6002C98")]
		[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
		public MobileControlRig()
		{
		}
	}
}
