forked from akanyan/mu3-mods
18 lines
459 B
C#
18 lines
459 B
C#
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;
|
|
}
|
|
}
|
|
}
|