250 lines
7.6 KiB
C#
250 lines
7.6 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Core.Cinematics
|
|
{
|
|
// Token: 0x02003065 RID: 12389
|
|
[Token(Token = "0x2003065")]
|
|
[ExecuteInEditMode]
|
|
[RequireComponent(typeof(Animator))]
|
|
public class Cinematic : MonoBehaviour
|
|
{
|
|
// Token: 0x170039C6 RID: 14790
|
|
// (get) Token: 0x06014FB6 RID: 85942 RVA: 0x004E4104 File Offset: 0x004E2304
|
|
[Token(Token = "0x170039C6")]
|
|
private static RuntimeAnimatorController BONEAKHDIFN
|
|
{
|
|
[Token(Token = "0x6014FB6")]
|
|
[Address(RVA = "0x1F132D0", Offset = "0x1F122D0", VA = "0x181F132D0")]
|
|
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: 0x170039C7 RID: 14791
|
|
// (get) Token: 0x06014FB7 RID: 85943 RVA: 0x004E4140 File Offset: 0x004E2340
|
|
[Token(Token = "0x170039C7")]
|
|
public bool BICMECLEPLM
|
|
{
|
|
[Token(Token = "0x6014FB7")]
|
|
[Address(RVA = "0x1F13CB0", Offset = "0x1F12CB0", VA = "0x181F13CB0")]
|
|
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: 0x06014FB8 RID: 85944 RVA: 0x004E4194 File Offset: 0x004E2394
|
|
[Token(Token = "0x6014FB8")]
|
|
[Address(RVA = "0x1F13420", Offset = "0x1F12420", VA = "0x181F13420")]
|
|
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: 0x06014FB9 RID: 85945 RVA: 0x004E4244 File Offset: 0x004E2444
|
|
[Token(Token = "0x6014FB9")]
|
|
[Address(RVA = "0x1F135E0", Offset = "0x1F125E0", VA = "0x181F135E0")]
|
|
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: 0x06014FBA RID: 85946 RVA: 0x004E42E4 File Offset: 0x004E24E4
|
|
[Token(Token = "0x6014FBA")]
|
|
[Address(RVA = "0x1F13770", Offset = "0x1F12770", VA = "0x181F13770")]
|
|
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: 0x06014FBB RID: 85947 RVA: 0x004E4374 File Offset: 0x004E2574
|
|
[Token(Token = "0x6014FBB")]
|
|
[Address(RVA = "0x1F13990", Offset = "0x1F12990", VA = "0x181F13990")]
|
|
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: 0x06014FBC RID: 85948 RVA: 0x004E4400 File Offset: 0x004E2600
|
|
[Token(Token = "0x6014FBC")]
|
|
[Address(RVA = "0x1F13B10", Offset = "0x1F12B10", VA = "0x181F13B10")]
|
|
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: 0x06014FBD RID: 85949 RVA: 0x004E4478 File Offset: 0x004E2678
|
|
[Token(Token = "0x6014FBD")]
|
|
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
|
|
public Cinematic()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400DD57 RID: 56663
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400DD57")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
|
private Animator animator;
|
|
|
|
// Token: 0x0400DD58 RID: 56664
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400DD58")]
|
|
[SerializeField]
|
|
private AnimationClip cinematicAnimation;
|
|
|
|
// Token: 0x0400DD59 RID: 56665
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400DD59")]
|
|
private CinematicBehaviour[] AFPKDDPIDHL;
|
|
|
|
// Token: 0x0400DD5A RID: 56666
|
|
[Token(Token = "0x400DD5A")]
|
|
private static readonly int MJLDFGPBPFK = Animator.StringToHash("Play");
|
|
|
|
// Token: 0x0400DD5B RID: 56667
|
|
[Token(Token = "0x400DD5B")]
|
|
private static readonly string IHMJNIICJAB = "CinematicTemplateController";
|
|
|
|
// Token: 0x0400DD5C RID: 56668
|
|
[Token(Token = "0x400DD5C")]
|
|
private static readonly string IAEIPHEEDEI = "CinematicTemplateAnimation";
|
|
|
|
// Token: 0x0400DD5D RID: 56669
|
|
[Token(Token = "0x400DD5D")]
|
|
private static readonly string HMJJIMACENL = "Cinematic";
|
|
|
|
// Token: 0x0400DD5E RID: 56670
|
|
[Token(Token = "0x400DD5E")]
|
|
private static RuntimeAnimatorController GKEEIFBAKMF;
|
|
}
|
|
}
|