30 lines
851 B
C#
30 lines
851 B
C#
using MU3.Util;
|
|
|
|
namespace MU3;
|
|
|
|
class patch_Scene_30_NoticeReward: Scene_30_NoticeReward {
|
|
private Mode<Scene_30_NoticeReward, State> _mode;
|
|
public static bool Skipped { get; private set; }
|
|
private enum State {
|
|
RankingReward = 2,
|
|
FadeOut = 8,
|
|
}
|
|
private void Start() {
|
|
Skipped = false;
|
|
_mode = new Mode<Scene_30_NoticeReward, State>(this);
|
|
_mode.set(State.RankingReward);
|
|
SingletonMonoBehaviour<SystemUI>.instance.Panel.pushState(0, show: true);
|
|
}
|
|
private void Update() {
|
|
if(_mode.get() < (int)State.FadeOut && Singleton<UIInput>.instance.getTriggerOn(UIInput.Key.MenuLeft)) {
|
|
Skipped = true;
|
|
_mode.set(State.FadeOut);
|
|
} else {
|
|
_mode.update();
|
|
}
|
|
}
|
|
|
|
private void End_Init() {
|
|
Skipped = false;
|
|
}
|
|
} |