mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
28 lines
756 B
C#
28 lines
756 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace Rimworld_Animations {
|
|||
|
public class AnimationStage
|
|||
|
{
|
|||
|
public string stageName;
|
|||
|
public int stageIndex;
|
|||
|
public int playTimeTicks = 0;
|
|||
|
public bool isLooping;
|
|||
|
public List<BaseAnimationClip> animationClips;
|
|||
|
|
|||
|
|
|||
|
public void initialize() {
|
|||
|
foreach (BaseAnimationClip clip in animationClips) {
|
|||
|
clip.buildSimpleCurves();
|
|||
|
//select playTimeTicks as longest playtime of all the animations
|
|||
|
if(clip.duration > playTimeTicks) {
|
|||
|
playTimeTicks = clip.duration;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|