oh dear
This commit is contained in:
@@ -0,0 +1,249 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02002F7C RID: 12156
|
||||
[Token(Token = "0x2002F7C")]
|
||||
[ExecuteInEditMode]
|
||||
[RequireComponent(typeof(Animator))]
|
||||
public class Cinematic : MonoBehaviour
|
||||
{
|
||||
// Token: 0x1700390D RID: 14605
|
||||
// (get) Token: 0x06014B6B RID: 84843 RVA: 0x004DA024 File Offset: 0x004D8224
|
||||
[Token(Token = "0x1700390D")]
|
||||
private static RuntimeAnimatorController BONEAKHDIFN
|
||||
{
|
||||
[Token(Token = "0x6014B6B")]
|
||||
[Address(RVA = "0x1434AC0", Offset = "0x14338C0", VA = "0x181434AC0")]
|
||||
get
|
||||
{
|
||||
RuntimeAnimatorController gkeeifbakmf = Cinematic.GKEEIFBAKMF;
|
||||
int num = 0;
|
||||
if (gkeeifbakmf == num)
|
||||
{
|
||||
global::UnityEngine.Object @object = Resources.Load(Cinematic.IHMJNIICJAB);
|
||||
if (@object == 0)
|
||||
{
|
||||
}
|
||||
Cinematic.GKEEIFBAKMF = @object;
|
||||
}
|
||||
return Cinematic.GKEEIFBAKMF;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700390E RID: 14606
|
||||
// (get) Token: 0x06014B6C RID: 84844 RVA: 0x004DA060 File Offset: 0x004D8260
|
||||
[Token(Token = "0x1700390E")]
|
||||
public bool BICMECLEPLM
|
||||
{
|
||||
[Token(Token = "0x6014B6C")]
|
||||
[Address(RVA = "0x14354A0", Offset = "0x14342A0", VA = "0x1814354A0")]
|
||||
get
|
||||
{
|
||||
Animator animator = this.animator;
|
||||
int num = 0;
|
||||
if (!(animator != num))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
Animator animator2 = this.animator;
|
||||
AnimatorStateInfo animatorStateInfo;
|
||||
float length = animatorStateInfo.m_Length;
|
||||
int loop = animatorStateInfo.m_Loop;
|
||||
string hmjjimacenl = Cinematic.HMJJIMACENL;
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B6D RID: 84845 RVA: 0x004DA0B4 File Offset: 0x004D82B4
|
||||
[Token(Token = "0x6014B6D")]
|
||||
[Address(RVA = "0x1434C10", Offset = "0x1433A10", VA = "0x181434C10")]
|
||||
private void Awake()
|
||||
{
|
||||
CinematicBehaviour[] componentsInChildren = base.GetComponentsInChildren<CinematicBehaviour>(true);
|
||||
this.AFPKDDPIDHL = componentsInChildren;
|
||||
Animator animator = this.animator;
|
||||
int num = 0;
|
||||
if (animator == num)
|
||||
{
|
||||
Animator component = base.GetComponent<Animator>();
|
||||
this.animator = component;
|
||||
}
|
||||
Animator animator2 = this.animator;
|
||||
int num2 = 0;
|
||||
if (animator2 != num2)
|
||||
{
|
||||
AnimationClip animationClip = this.cinematicAnimation;
|
||||
int num3 = 0;
|
||||
if (animationClip != num3 && !this.LADIENJLILJ())
|
||||
{
|
||||
AnimatorOverrideController animatorOverrideController = new AnimatorOverrideController(Cinematic.BONEAKHDIFN);
|
||||
AnimationClip animationClip2 = this.cinematicAnimation;
|
||||
string iaeipheedei = Cinematic.IAEIPHEEDEI;
|
||||
animatorOverrideController[iaeipheedei] = animationClip2;
|
||||
this.animator.runtimeAnimatorController = animatorOverrideController;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B6E RID: 84846 RVA: 0x004DA164 File Offset: 0x004D8364
|
||||
[Token(Token = "0x6014B6E")]
|
||||
[Address(RVA = "0x1434DD0", Offset = "0x1433BD0", VA = "0x181434DD0")]
|
||||
private void KDKOAEMGHGH()
|
||||
{
|
||||
Animator animator = this.animator;
|
||||
int num = 0;
|
||||
if (animator == num)
|
||||
{
|
||||
Animator component = base.GetComponent<Animator>();
|
||||
this.animator = component;
|
||||
}
|
||||
Animator animator2 = this.animator;
|
||||
int num2 = 0;
|
||||
if (animator2 != num2)
|
||||
{
|
||||
AnimationClip animationClip = this.cinematicAnimation;
|
||||
int num3 = 0;
|
||||
if (animationClip != num3 && !this.LADIENJLILJ())
|
||||
{
|
||||
AnimatorOverrideController animatorOverrideController = new AnimatorOverrideController(Cinematic.BONEAKHDIFN);
|
||||
AnimationClip animationClip2 = this.cinematicAnimation;
|
||||
string iaeipheedei = Cinematic.IAEIPHEEDEI;
|
||||
animatorOverrideController[iaeipheedei] = animationClip2;
|
||||
this.animator.runtimeAnimatorController = animatorOverrideController;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B6F RID: 84847 RVA: 0x004DA204 File Offset: 0x004D8404
|
||||
[Token(Token = "0x6014B6F")]
|
||||
[Address(RVA = "0x1434F60", Offset = "0x1433D60", VA = "0x181434F60")]
|
||||
private bool LADIENJLILJ()
|
||||
{
|
||||
RuntimeAnimatorController runtimeAnimatorController = this.animator.runtimeAnimatorController;
|
||||
int num = 0;
|
||||
if (!(runtimeAnimatorController == num))
|
||||
{
|
||||
RuntimeAnimatorController runtimeAnimatorController2 = this.animator.runtimeAnimatorController;
|
||||
RuntimeAnimatorController runtimeAnimatorController3 = Cinematic.BONEAKHDIFN;
|
||||
if (!(runtimeAnimatorController2 == runtimeAnimatorController3))
|
||||
{
|
||||
RuntimeAnimatorController runtimeAnimatorController4 = this.animator.runtimeAnimatorController;
|
||||
if (runtimeAnimatorController4 == 0)
|
||||
{
|
||||
}
|
||||
int num2 = 0;
|
||||
if (!(runtimeAnimatorController4 == num2))
|
||||
{
|
||||
string iaeipheedei = Cinematic.IAEIPHEEDEI;
|
||||
AnimationClip animationClip = this.cinematicAnimation;
|
||||
AnimationClip animationClip2;
|
||||
if (!(animationClip2 != animationClip))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06014B70 RID: 84848 RVA: 0x004DA294 File Offset: 0x004D8494
|
||||
[Token(Token = "0x6014B70")]
|
||||
[Address(RVA = "0x1435180", Offset = "0x1433F80", VA = "0x181435180")]
|
||||
public void Play()
|
||||
{
|
||||
this.animator.Rebind();
|
||||
this.animator.enabled = true;
|
||||
CinematicBehaviour[] afpkddpidhl = this.AFPKDDPIDHL;
|
||||
int num = 0;
|
||||
if (num < afpkddpidhl.Length)
|
||||
{
|
||||
afpkddpidhl[num].gameObject.SetActive(true);
|
||||
CinematicBehaviour cinematicBehaviour = this.AFPKDDPIDHL[num];
|
||||
cinematicBehaviour.isPlaying = false;
|
||||
cinematicBehaviour.BDBPEDPLJOD();
|
||||
CinematicBehaviour[] afpkddpidhl2 = this.AFPKDDPIDHL;
|
||||
num++;
|
||||
}
|
||||
Animator animator = this.animator;
|
||||
int mjldfgpbpfk = Cinematic.MJLDFGPBPFK;
|
||||
animator.SetTrigger(mjldfgpbpfk);
|
||||
}
|
||||
|
||||
// Token: 0x06014B71 RID: 84849 RVA: 0x004DA320 File Offset: 0x004D8520
|
||||
[Token(Token = "0x6014B71")]
|
||||
[Address(RVA = "0x1435300", Offset = "0x1434100", VA = "0x181435300")]
|
||||
public void Stop()
|
||||
{
|
||||
Animator animator = this.animator;
|
||||
int num = 0;
|
||||
animator.enabled = num != 0;
|
||||
CinematicBehaviour[] afpkddpidhl = this.AFPKDDPIDHL;
|
||||
int num2 = 0;
|
||||
if (num2 < afpkddpidhl.Length)
|
||||
{
|
||||
CinematicBehaviour cinematicBehaviour = afpkddpidhl[num2];
|
||||
cinematicBehaviour.isPlaying = false;
|
||||
cinematicBehaviour.BDBPEDPLJOD();
|
||||
GameObject gameObject = this.AFPKDDPIDHL[num2].gameObject;
|
||||
int num3 = 0;
|
||||
gameObject.SetActive(num3 != 0);
|
||||
CinematicBehaviour[] afpkddpidhl2 = this.AFPKDDPIDHL;
|
||||
num2++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06014B72 RID: 84850 RVA: 0x004DA398 File Offset: 0x004D8598
|
||||
[Token(Token = "0x6014B72")]
|
||||
[Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")]
|
||||
public Cinematic()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400DB28 RID: 56104
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400DB28")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
||||
private Animator animator;
|
||||
|
||||
// Token: 0x0400DB29 RID: 56105
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400DB29")]
|
||||
[SerializeField]
|
||||
private AnimationClip cinematicAnimation;
|
||||
|
||||
// Token: 0x0400DB2A RID: 56106
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400DB2A")]
|
||||
private CinematicBehaviour[] AFPKDDPIDHL;
|
||||
|
||||
// Token: 0x0400DB2B RID: 56107
|
||||
[Token(Token = "0x400DB2B")]
|
||||
private static readonly int MJLDFGPBPFK = Animator.StringToHash("Play");
|
||||
|
||||
// Token: 0x0400DB2C RID: 56108
|
||||
[Token(Token = "0x400DB2C")]
|
||||
private static readonly string IHMJNIICJAB = "CinematicTemplateController";
|
||||
|
||||
// Token: 0x0400DB2D RID: 56109
|
||||
[Token(Token = "0x400DB2D")]
|
||||
private static readonly string IAEIPHEEDEI = "CinematicTemplateAnimation";
|
||||
|
||||
// Token: 0x0400DB2E RID: 56110
|
||||
[Token(Token = "0x400DB2E")]
|
||||
private static readonly string HMJJIMACENL = "Cinematic";
|
||||
|
||||
// Token: 0x0400DB2F RID: 56111
|
||||
[Token(Token = "0x400DB2F")]
|
||||
private static RuntimeAnimatorController GKEEIFBAKMF;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user