155
This commit is contained in:
96
Assembly-CSharp/KaleidxScopeUnlockCourseProcess.cs
Normal file
96
Assembly-CSharp/KaleidxScopeUnlockCourseProcess.cs
Normal file
@@ -0,0 +1,96 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using MAI2.Util;
|
||||
using Manager;
|
||||
using Process;
|
||||
using Process.ModeSelect;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x02000161 RID: 353
|
||||
public class KaleidxScopeUnlockCourseProcess : ProcessBase
|
||||
{
|
||||
// Token: 0x06000C96 RID: 3222 RVA: 0x0003A7F4 File Offset: 0x000399F4
|
||||
public KaleidxScopeUnlockCourseProcess(ProcessDataContainer dataContainer, params object[] args)
|
||||
: base(dataContainer)
|
||||
{
|
||||
if (args != null)
|
||||
{
|
||||
uint num = (uint)args.Length;
|
||||
if (num == 2U)
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
this._isMajorVersionUp[i] = (bool)args[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000C97 RID: 3223 RVA: 0x00003598 File Offset: 0x00002798
|
||||
public override void OnAddProcess()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000C98 RID: 3224 RVA: 0x0003A854 File Offset: 0x00039A54
|
||||
public override void OnStart()
|
||||
{
|
||||
GameObject gameObject = Resources.Load<GameObject>("Process/KaleidxScope/UnlockKLDCallengeProcess");
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
UserData userData = Singleton<UserDataManager>.Instance.GetUserData((long)i);
|
||||
KaleidxScopeUnlockCourseMonitor component = base.CreateInstanceAndSetParent(gameObject, (i == 0) ? this.container.LeftMonitor : this.container.RightMonitor).GetComponent<KaleidxScopeUnlockCourseMonitor>();
|
||||
component.Initialize(i, userData.IsEntry);
|
||||
this.monitorList.Add(component);
|
||||
}
|
||||
this.stateMachine.manualUpdate = true;
|
||||
this.stateMachine.Initalize(this.monitorList, this.container);
|
||||
}
|
||||
|
||||
// Token: 0x06000C99 RID: 3225 RVA: 0x0003A8E9 File Offset: 0x00039AE9
|
||||
public override void OnUpdate()
|
||||
{
|
||||
this.stateMachine.ManualUpdate();
|
||||
}
|
||||
|
||||
// Token: 0x06000C9A RID: 3226 RVA: 0x0003A8F8 File Offset: 0x00039AF8
|
||||
public override void OnLateUpdate()
|
||||
{
|
||||
if (this.stateMachine.moveToNextProcess && !this.changedProcess)
|
||||
{
|
||||
this.changedProcess = true;
|
||||
this.container.processManager.AddProcess(new FadeProcess(this.container, this, new ModeSelectProcess(this.container, new object[]
|
||||
{
|
||||
this._isMajorVersionUp[0],
|
||||
this._isMajorVersionUp[1]
|
||||
})), 50);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000C9B RID: 3227 RVA: 0x0003A974 File Offset: 0x00039B74
|
||||
public override void OnRelease()
|
||||
{
|
||||
foreach (KaleidxScopeUnlockCourseMonitor kaleidxScopeUnlockCourseMonitor in this.monitorList)
|
||||
{
|
||||
Object.Destroy(kaleidxScopeUnlockCourseMonitor.gameObject);
|
||||
}
|
||||
this.monitorList.Clear();
|
||||
}
|
||||
|
||||
// Token: 0x06000C9C RID: 3228 RVA: 0x0003A9D4 File Offset: 0x00039BD4
|
||||
public KaleidxScopeUnlockCourseState.StateType GetCurrentState()
|
||||
{
|
||||
return this.stateMachine.GetCurrentState();
|
||||
}
|
||||
|
||||
// Token: 0x040009D8 RID: 2520
|
||||
private KaleidxScopeUnlockCourseState stateMachine = new KaleidxScopeUnlockCourseState();
|
||||
|
||||
// Token: 0x040009D9 RID: 2521
|
||||
private List<KaleidxScopeUnlockCourseMonitor> monitorList = new List<KaleidxScopeUnlockCourseMonitor>();
|
||||
|
||||
// Token: 0x040009DA RID: 2522
|
||||
private bool changedProcess;
|
||||
|
||||
// Token: 0x040009DB RID: 2523
|
||||
public bool[] _isMajorVersionUp = new bool[2];
|
||||
}
|
||||
Reference in New Issue
Block a user