using System.Collections; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Text; using Godot; namespace Rokojori { [Tool] [GlobalClass] public partial class TransformAnimations:Resource { [Export] public TransformCurve[] curves; [Export] public RJTimeLine timeline; public float GetMaxDuration( List randomizations ) { var d = 0f; for ( int i = 0; i < curves.Length; i++ ) { d = Mathf.Max( d, curves[ i ].GetRandomizedEndTime( randomizations[ i ] ) ); } return d; } } }