mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 12:17:37 +02:00
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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user