public void RecordNewAlert(ColoredAlert color) { if (Event.isRecording()) { recordedAlerts.alertList.Add(new Alert(Time.time - recordingStartTime, color)); } }
public Alert(float t, ColoredAlert c) { this.time = t; this.color = c; }