private void DrawBlinkingSwitch(AnimationClip element) { var isRegisteredAsBlinking = _editorEffector.BlinkingContains(element); if (isRegisteredAsBlinking) { CgeLayoutCommon.DrawColoredBackground(CgeLayoutCommon.RightSideBg); } GUILayout.BeginArea(new Rect((CgeLayoutCommon.GuiSquareWidth - CgeLayoutCommon.PictureWidth) / 2, 0, CgeLayoutCommon.PictureWidth, CgeLayoutCommon.PictureHeight)); _common.DrawPreviewOrRefreshButton(element); GUILayout.EndArea(); GUILayout.Space(CgeLayoutCommon.PictureHeight); EditorGUI.BeginDisabledGroup(true); EditorGUILayout.ObjectField(element, typeof(AnimationClip), true); EditorGUI.EndDisabledGroup(); if (GUILayout.Button(isRegisteredAsBlinking ? CgeLocale.CGEE_EyesAreClosed : "")) { if (isRegisteredAsBlinking) { _editorEffector.RemoveFromBlinking(element); } else { _editorEffector.AddToBlinking(element); } } }