void CinemaAudioControl_AlterFixedAction(object sender, ActionFixedItemEventArgs e) { CinemaAudio audioItem = e.actionItem as CinemaAudio; if (audioItem == null) return; if (e.duration <= 0) { deleteItem(audioItem); } else { Undo.RecordObject(e.actionItem, string.Format("Change {0}", audioItem.name)); audioItem.Firetime = e.firetime; audioItem.Duration = e.duration; audioItem.InTime = e.inTime; audioItem.OutTime = e.outTime; } }