mu3-mods/SkipPreMusicRitual/MU3/patch_BattleUI.cs
2024-07-02 10:50:04 +09:00

22 lines
568 B
C#

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);
}
}