Mannequin Factory (#499)

* everything

yeah. everything..?
just needs an icon

* ass buns

* clean up + split up the blocks

* quick refresh

just so this doesn't get stale and fall behind in the codebase

* NOT DONE YET! gonna finish tomorrow

* it's done!!

* oh oops gotta actually load the game
This commit is contained in:
AstrlJelly
2024-01-29 21:41:35 -05:00
committed by GitHub
parent 3b7c0dc96a
commit f938ab84f5
81 changed files with 15755 additions and 0 deletions

View File

@ -73,6 +73,10 @@ namespace HeavenStudio.Util
if (!double.IsNaN(startBeat)) {
var cond = Conductor.instance;
var animClip = Array.Find(anim.runtimeAnimatorController.animationClips, x => x.name == animName);
if (animClip == null) {
Debug.LogError("Animation clip " + animName + " not found!");
return;
}
double animLength = cond.SecsToBeats(animClip.length, cond.GetBpmAtBeat(startBeat));
pos = cond.GetPositionFromBeat(startBeat, animLength) * timeScale;
} else {