forked from akanyan/mu3-mods
feat: rework reward skip; move it to SkipCutscenes
This commit is contained in:
17
Extras/SkipCutscenes/MU3/patch_ANM_Frame.cs
Normal file
17
Extras/SkipCutscenes/MU3/patch_ANM_Frame.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using MU3.Util;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MU3;
|
||||
|
||||
class patch_ANM_Frame: ANM_Frame {
|
||||
private GameObject currentBonus;
|
||||
|
||||
public extern bool orig_isStampAnimEnd();
|
||||
public new bool isStampAnimEnd() {
|
||||
if(!Singleton<Mod.State>.instance.SkipItemFrame) {
|
||||
return orig_isStampAnimEnd();
|
||||
} else {
|
||||
return currentBonus.GetComponent<Animator>().GetCurrentAnimatorStateInfo(0).normalizedTime > 0.4;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user