public EventTimeline (int frameCount) { frames = new float[frameCount]; events = new Event[frameCount]; }