using System;
using Cpp2IlInjected;
using RootMotion.FinalIK;
using UnityEngine;

// Token: 0x020000AE RID: 174
[Token(Token = "0x20000AE")]
public class NPC_BR_Nonota : NPC
{
	// Token: 0x06000738 RID: 1848 RVA: 0x000104F0 File Offset: 0x0000E6F0
	[Token(Token = "0x6000738")]
	[Address(RVA = "0xF12CD0", Offset = "0xF11CD0", VA = "0x180F12CD0", Slot = "4")]
	public override void Init()
	{
		base.Init();
		this.g_Move.SetDragMove(3f);
		int num = 0;
		this.SetLookAtTarget(num, 1f);
		Transform playerTransform = Game.GetPlayerTransform();
		this.g_PlayerTransform = playerTransform;
		throw new NullReferenceException();
	}

	// Token: 0x06000739 RID: 1849 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000739")]
	[Address(RVA = "0xF13100", Offset = "0xF12100", VA = "0x180F13100", Slot = "6")]
	protected override void Update()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600073A RID: 1850 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600073A")]
	[Address(RVA = "0xF12BD0", Offset = "0xF11BD0", VA = "0x180F12BD0", Slot = "9")]
	public override void FaceCrossFade(string AniName, float fBlenderTime = 0.05f)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600073B RID: 1851 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600073B")]
	[Address(RVA = "0xF12AE0", Offset = "0xF11AE0", VA = "0x180F12AE0")]
	public void CalculateHairTargetPos()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600073C RID: 1852 RVA: 0x00010538 File Offset: 0x0000E738
	[Token(Token = "0x600073C")]
	[Address(RVA = "0xF12E90", Offset = "0xF11E90", VA = "0x180F12E90", Slot = "17")]
	public override void SetShadowSwitch(float value)
	{
		Material[] g_Mat = this.g_Mat;
		int num = 0;
		if (num < g_Mat.Length)
		{
			g_Mat[num].SetFloat("_ShadowTexSwitch", value);
			Material[] g_Mat2 = this.g_Mat;
			num++;
		}
	}

	// Token: 0x0600073D RID: 1853 RVA: 0x0001057C File Offset: 0x0000E77C
	[Token(Token = "0x600073D")]
	[Address(RVA = "0xF12F40", Offset = "0xF11F40", VA = "0x180F12F40", Slot = "18")]
	public override void SetSpeakLayerWeight(bool bEnable, string Name = "")
	{
		Animator faceAnimator = this.FaceAnimator;
		if (!bEnable)
		{
			int num = 0;
			faceAnimator.SetLayerWeight(1, (float)num);
			return;
		}
		faceAnimator.SetLayerWeight(1, 1f);
		bool flag = string.Equals(Name, "");
		Animator faceAnimator2 = this.FaceAnimator;
		if (!flag)
		{
			int num2 = 0;
			faceAnimator2.CrossFade(Name, (float)num2, 1, (float)num2);
			return;
		}
		throw new NullReferenceException();
	}

	// Token: 0x0600073E RID: 1854 RVA: 0x000105DC File Offset: 0x0000E7DC
	[Token(Token = "0x600073E")]
	[Address(RVA = "0xF12D80", Offset = "0xF11D80", VA = "0x180F12D80", Slot = "20")]
	public override void SetEnable(bool bEnable)
	{
		if (bEnable)
		{
			if (Game.GameSave.flags.stageBRTest || Game.GameSave.flags.stageBRClear)
			{
				throw new NullReferenceException();
			}
			LoadScript dialogEvent = this.DialogEvent;
			this.SetDialogueEvent(dialogEvent);
		}
		base.SetEnable(bEnable);
	}

	// Token: 0x0600073F RID: 1855 RVA: 0x00010630 File Offset: 0x0000E830
	[Token(Token = "0x600073F")]
	[Address(RVA = "0xF13050", Offset = "0xF12050", VA = "0x180F13050", Slot = "19")]
	public override void SetTimeScale(float fTimeScale)
	{
		base.SetTimeScale(fTimeScale);
		Animator faceAnimator = this.FaceAnimator;
		int num = 0;
		if (faceAnimator != num)
		{
			Animator faceAnimator2 = this.FaceAnimator;
			float g_fTimeScale = this.g_fTimeScale;
			faceAnimator2.speed = g_fTimeScale;
		}
	}

	// Token: 0x06000740 RID: 1856 RVA: 0x00010674 File Offset: 0x0000E874
	[Token(Token = "0x6000740")]
	[Address(RVA = "0xF12AD0", Offset = "0xF11AD0", VA = "0x180F12AD0")]
	public NPC_BR_Nonota()
	{
	}

	// Token: 0x04000836 RID: 2102
	[FieldOffset(Offset = "0x108")]
	[Token(Token = "0x4000836")]
	[SerializeField]
	private Animator FaceAnimator;

	// Token: 0x04000837 RID: 2103
	[FieldOffset(Offset = "0x110")]
	[Token(Token = "0x4000837")]
	[SerializeField]
	private Transform head;

	// Token: 0x04000838 RID: 2104
	[FieldOffset(Offset = "0x118")]
	[Token(Token = "0x4000838")]
	[SerializeField]
	private CCDIK hairIK;

	// Token: 0x04000839 RID: 2105
	[FieldOffset(Offset = "0x120")]
	[Token(Token = "0x4000839")]
	[SerializeField]
	private Transform hairTarget;

	// Token: 0x0400083A RID: 2106
	[FieldOffset(Offset = "0x128")]
	[Token(Token = "0x400083A")]
	public LoadScript DialogEvent;

	// Token: 0x0400083B RID: 2107
	[FieldOffset(Offset = "0x130")]
	[Token(Token = "0x400083B")]
	public LoadScript TestModeEvent;

	// Token: 0x0400083C RID: 2108
	[FieldOffset(Offset = "0x138")]
	[Token(Token = "0x400083C")]
	public LoadScript ClearModeEvent;

	// Token: 0x0400083D RID: 2109
	[FieldOffset(Offset = "0x140")]
	[Token(Token = "0x400083D")]
	private Transform g_PlayerTransform;
}
