public void DeleteKeyframe(HitboxKeyframe keyframe) { if (!Keyframes.Contains(keyframe)) { return; } #if UNITY_EDITOR Undo.RecordObject(this, "Delete Keyframe"); #endif Keyframes.Remove(keyframe); InternalOnChange(); }