forked from akanyan/mu3-mods
feat: add infinite gp and skip premusic
Also, run the autoformatter. Also, the skip is now cleaner.
This commit is contained in:
22
SkipBullshit/MU3.Battle/patch_BattleUI.cs
Normal file
22
SkipBullshit/MU3.Battle/patch_BattleUI.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using MU3.Util;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MU3;
|
||||
|
||||
public class patch_BattleUI: BattleUI {
|
||||
private System.Collections.IEnumerator playReadyProc(Action onFinish) {
|
||||
if(!SystemUI.Exists) {
|
||||
onFinish();
|
||||
yield break;
|
||||
}
|
||||
SystemUI systemUI = SingletonMonoBehaviour<SystemUI>.instance;
|
||||
float time = 1.5f;
|
||||
while(0f < time) {
|
||||
yield return null;
|
||||
time -= Time.deltaTime;
|
||||
}
|
||||
onFinish();
|
||||
systemUI.removeCanvas(MU3.Graphics.Const.SortOrder.UI);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user