mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 10:27:39 +02:00
ColorEase Class (#735)
* ColorEase stuff why didn't we do this earlier!! this is so much common code cut down and makes things a LOT easier to type * port karate man, fix NaN bug goin to bed now! * km fix, convert all to colorease, multisounds stuff fix that goddamn ms.startBeat = sounds[0].beat; bug + if it's already converting to a list, why not just define the sounds as a list??????? they're a list most of the time anyways ive got work ahead of me. * finish up the code, document it just a few more fixes and we're good * revert some fork lifter stuff as nice as it would be i just don't want things to break * revert some MORE stuff * revert even more. bleh * semtiones lol also a karate man fix
This commit is contained in:
@ -35,14 +35,14 @@ namespace HeavenStudio.Util
|
||||
}
|
||||
}
|
||||
|
||||
public static MultiSound Play(Sound[] snds, bool game = true, bool forcePlay = false)
|
||||
public static MultiSound Play(Sound[] sounds, bool game = true, bool forcePlay = false)
|
||||
{
|
||||
return Play(snds.ToList(), game, forcePlay);
|
||||
return Play(sounds.ToList(), game, forcePlay);
|
||||
}
|
||||
|
||||
public static MultiSound Play(List<Sound> sounds, bool game = true, bool forcePlay = false)
|
||||
{
|
||||
if (Conductor.instance == null || sounds.Count <= 0) return null;
|
||||
if (Conductor.instance == null || sounds.Count < 1) return null;
|
||||
|
||||
GameObject go = new GameObject("MultiSound");
|
||||
MultiSound ms = go.AddComponent<MultiSound>();
|
||||
|
Reference in New Issue
Block a user