using System;
using System.IO;
using Cpp2IlInjected;
using MarsSDK;
using UnityEngine;

// Token: 0x02000319 RID: 793
[Token(Token = "0x2000319")]
public class ScreenShotTest : MonoBehaviour, IUIController
{
	// Token: 0x06002008 RID: 8200 RVA: 0x0004CC44 File Offset: 0x0004AE44
	[Token(Token = "0x6002008")]
	[Address(RVA = "0x439E10", Offset = "0x438C10", VA = "0x180439E10")]
	private void Start()
	{
		GameObject[] array = this.models;
		int num = 0;
		int num2 = 0;
		int length = array.Length;
		if (num2 < length)
		{
			GameObject gameObject = array[num];
			int num3 = 0;
			gameObject.SetActive(num3 != 0);
			num++;
		}
		Camera[] array2 = this.cameras;
		int num4 = 0;
		int num5 = 0;
		int length2 = array2.Length;
		if (num5 < length2)
		{
			GameObject gameObject2 = array2[num4].gameObject;
			int num6 = 0;
			gameObject2.SetActive(num6 != 0);
			num4++;
		}
		this.modelIndex = (int)((ulong)0L);
		this.SwitchModel();
		this.cameraIndex = (int)((ulong)0L);
		this.SwitchCamera();
		Game.BindUIController(this);
		Game.SwitchUIControlInput();
		DirectoryInfo directoryInfo = new DirectoryInfo("Photo");
		if (!directoryInfo.Exists)
		{
			directoryInfo.Create();
		}
	}

	// Token: 0x06002009 RID: 8201 RVA: 0x0004CD10 File Offset: 0x0004AF10
	[Token(Token = "0x6002009")]
	[Address(RVA = "0x439DA0", Offset = "0x438BA0", VA = "0x180439DA0", Slot = "4")]
	public void Move(Direction2D direction)
	{
		if (direction == Direction2D.Left)
		{
			while (this.modelIndex != -1)
			{
			}
			int length = this.models.Length;
			this.modelIndex = length;
			this.SwitchModel();
			return;
		}
		if (direction == Direction2D.Right)
		{
			int num = this.modelIndex;
			GameObject[] array = this.models;
			num++;
			this.modelIndex = num;
			if (num == array.Length)
			{
				this.modelIndex = (int)((ulong)0L);
			}
			this.SwitchModel();
			return;
		}
	}

	// Token: 0x0600200A RID: 8202 RVA: 0x0004CD80 File Offset: 0x0004AF80
	[Token(Token = "0x600200A")]
	[Address(RVA = "0x43A0B0", Offset = "0x438EB0", VA = "0x18043A0B0", Slot = "5")]
	public void SwitchLeftward()
	{
		if (this.cameraIndex == -1)
		{
			int length = this.cameras.Length;
			this.cameraIndex = length;
		}
		this.SwitchCamera();
	}

	// Token: 0x0600200B RID: 8203 RVA: 0x0004CDB8 File Offset: 0x0004AFB8
	[Token(Token = "0x600200B")]
	[Address(RVA = "0x43A1F0", Offset = "0x438FF0", VA = "0x18043A1F0", Slot = "6")]
	public void SwitchRightward()
	{
		int num = this.cameraIndex;
		Camera[] array = this.cameras;
		num++;
		this.cameraIndex = num;
		int num2 = 0;
		this.cameraIndex = num2;
		this.SwitchCamera();
	}

	// Token: 0x0600200C RID: 8204 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600200C")]
	[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00", Slot = "7")]
	public void Submit()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600200D RID: 8205 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600200D")]
	[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00", Slot = "8")]
	public void Hold(bool onHolding)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600200E RID: 8206 RVA: 0x0004CDF4 File Offset: 0x0004AFF4
	[Token(Token = "0x600200E")]
	[Address(RVA = "0x439B90", Offset = "0x438990", VA = "0x180439B90", Slot = "9")]
	public void Cancel()
	{
		int num = this.modelIndex;
		if (num == 0 || num == 0 || num == 0 || num == 1)
		{
		}
		DateTime now = DateTime.Now;
		string text = string.Format("{0:yyyyMMdd_HHmmss}.png", now);
		string text2 = "Boss02_Tania_" + text;
		ScreenCapture.CaptureScreenshot(text2, 2);
		Debug.Log("Take photo: " + text2);
	}

	// Token: 0x0600200F RID: 8207 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600200F")]
	[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00", Slot = "10")]
	public void SpecialAction()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06002010 RID: 8208 RVA: 0x0004CE54 File Offset: 0x0004B054
	[Token(Token = "0x6002010")]
	[Address(RVA = "0x43A0E0", Offset = "0x438EE0", VA = "0x18043A0E0")]
	private void SwitchModel()
	{
		if (this.currentModel)
		{
			GameObject gameObject = this.currentModel.gameObject;
			int num = 0;
			gameObject.SetActive(num != 0);
		}
		GameObject[] array = this.models;
		int num2 = this.modelIndex;
		GameObject gameObject2 = array[num2];
		this.currentModel = gameObject2;
		this.currentModel.SetActive(true);
		int num3 = this.modelIndex;
		Light light = this.lightForBoss3AndBoss5;
		if (num3 == 1)
		{
		}
		bool flag = num3 == 2;
		light.enabled = flag;
	}

	// Token: 0x06002011 RID: 8209 RVA: 0x0004CEE0 File Offset: 0x0004B0E0
	[Token(Token = "0x6002011")]
	[Address(RVA = "0x439FC0", Offset = "0x438DC0", VA = "0x180439FC0")]
	private void SwitchCamera()
	{
		if (this.currentCamera)
		{
			GameObject gameObject = this.currentCamera.gameObject;
			int num = 0;
			gameObject.SetActive(num != 0);
		}
		Camera[] array = this.cameras;
		int num2 = this.cameraIndex;
		Camera camera = array[num2];
		this.currentCamera = camera;
		this.currentCamera.gameObject.SetActive(true);
	}

	// Token: 0x06002012 RID: 8210 RVA: 0x0004CF48 File Offset: 0x0004B148
	[Token(Token = "0x6002012")]
	[Address(RVA = "0x439B90", Offset = "0x438990", VA = "0x180439B90")]
	private void TakePhoto()
	{
		int num = this.modelIndex;
		if (num == 0 || num == 0 || num == 0 || num == 1)
		{
		}
		DateTime now = DateTime.Now;
		string text = string.Format("{0:yyyyMMdd_HHmmss}.png", now);
		string text2 = "Boss02_Tania_" + text;
		ScreenCapture.CaptureScreenshot(text2, 2);
		Debug.Log("Take photo: " + text2);
	}

	// Token: 0x06002013 RID: 8211 RVA: 0x0004CFA8 File Offset: 0x0004B1A8
	[Token(Token = "0x6002013")]
	[Address(RVA = "0x439D20", Offset = "0x438B20", VA = "0x180439D20")]
	private string GetFileNameSuffix()
	{
		DateTime now = DateTime.Now;
		return string.Format("{0:yyyyMMdd_HHmmss}.png", now);
	}

	// Token: 0x06002014 RID: 8212 RVA: 0x0004CFC8 File Offset: 0x0004B1C8
	[Token(Token = "0x6002014")]
	[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
	public ScreenShotTest()
	{
	}

	// Token: 0x0400296B RID: 10603
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x400296B")]
	[SerializeField]
	private int modelIndex;

	// Token: 0x0400296C RID: 10604
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x400296C")]
	[SerializeField]
	private GameObject[] models;

	// Token: 0x0400296D RID: 10605
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x400296D")]
	[SerializeField]
	private int cameraIndex;

	// Token: 0x0400296E RID: 10606
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x400296E")]
	[SerializeField]
	private Camera[] cameras;

	// Token: 0x0400296F RID: 10607
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x400296F")]
	[SerializeField]
	private Light lightForBoss3AndBoss5;

	// Token: 0x04002970 RID: 10608
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4002970")]
	private GameObject currentModel;

	// Token: 0x04002971 RID: 10609
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x4002971")]
	private Camera currentCamera;
}
