scripts
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.Cinematics
|
||||
{
|
||||
// Token: 0x02000B42 RID: 2882
|
||||
public abstract class CinematicBehaviour : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06015C8F RID: 89231 RVA: 0x0060A0C4 File Offset: 0x006082C4
|
||||
protected virtual void Awake()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
}
|
||||
|
||||
// Token: 0x06015C90 RID: 89232 RVA: 0x0060A0D0 File Offset: 0x006082D0
|
||||
protected virtual void Start()
|
||||
{
|
||||
this.Stop();
|
||||
}
|
||||
|
||||
// Token: 0x06015C91 RID: 89233 RVA: 0x0060A0D8 File Offset: 0x006082D8
|
||||
protected virtual void OnDisable()
|
||||
{
|
||||
this.Reset();
|
||||
}
|
||||
|
||||
// Token: 0x06015C92 RID: 89234 RVA: 0x0060A0E0 File Offset: 0x006082E0
|
||||
protected virtual void Update()
|
||||
{
|
||||
if (!this.OINCAFHBMDM && this.isPlaying)
|
||||
{
|
||||
this.Play();
|
||||
}
|
||||
else if (this.OINCAFHBMDM && !this.isPlaying)
|
||||
{
|
||||
this.Stop();
|
||||
}
|
||||
this.OINCAFHBMDM = this.isPlaying;
|
||||
}
|
||||
|
||||
// Token: 0x06015C93 RID: 89235 RVA: 0x0060A138 File Offset: 0x00608338
|
||||
public void Reset()
|
||||
{
|
||||
this.isPlaying = false;
|
||||
this.OINCAFHBMDM = false;
|
||||
this.Stop();
|
||||
}
|
||||
|
||||
// Token: 0x06015C94 RID: 89236
|
||||
protected abstract void Play();
|
||||
|
||||
// Token: 0x06015C95 RID: 89237
|
||||
protected abstract void Stop();
|
||||
|
||||
// Token: 0x04003CD6 RID: 15574
|
||||
[SerializeField]
|
||||
[Header("Animation Parameters")]
|
||||
private bool isPlaying;
|
||||
|
||||
// Token: 0x04003CD7 RID: 15575
|
||||
private bool OINCAFHBMDM;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user