private void OnEnable()
		{
			if (AnimationClipEditor.styles == null)
			{
				AnimationClipEditor.styles = new AnimationClipEditor.Styles();
			}
			this.m_Clip = (this.target as AnimationClip);
			if (this.m_TimeArea == null)
			{
				this.m_TimeArea = new TimeArea(true);
				this.m_TimeArea.hRangeLocked = false;
				this.m_TimeArea.vRangeLocked = true;
				this.m_TimeArea.hSlider = true;
				this.m_TimeArea.vSlider = false;
				this.m_TimeArea.hRangeMin = this.m_Clip.startTime;
				this.m_TimeArea.hRangeMax = this.m_Clip.stopTime;
				this.m_TimeArea.margin = 10f;
				this.m_TimeArea.scaleWithWindow = true;
				this.m_TimeArea.SetShownHRangeInsideMargins(this.m_Clip.startTime, this.m_Clip.stopTime);
				this.m_TimeArea.hTicks.SetTickModulosForFrameRate(this.m_Clip.frameRate);
				this.m_TimeArea.ignoreScrollWheelUntilClicked = true;
			}
			this.m_TimeArea.OnEnable();
			if (this.m_EventTimeArea == null)
			{
				this.m_EventTimeArea = new TimeArea(true);
				this.m_EventTimeArea.hRangeLocked = true;
				this.m_EventTimeArea.vRangeLocked = true;
				this.m_EventTimeArea.hSlider = false;
				this.m_EventTimeArea.vSlider = false;
				this.m_EventTimeArea.hRangeMin = 0f;
				this.m_EventTimeArea.hRangeMax = AnimationClipEditor.s_EventTimelineMax;
				this.m_EventTimeArea.margin = 10f;
				this.m_EventTimeArea.scaleWithWindow = true;
				this.m_EventTimeArea.SetShownHRangeInsideMargins(0f, AnimationClipEditor.s_EventTimelineMax);
				this.m_EventTimeArea.hTicks.SetTickModulosForFrameRate(60f);
				this.m_EventTimeArea.ignoreScrollWheelUntilClicked = true;
			}
			this.m_EventTimeArea.OnEnable();
			if (this.m_EventManipulationHandler == null)
			{
				this.m_EventManipulationHandler = new EventManipulationHandler(this.m_EventTimeArea);
			}
		}
		private void Init()
		{
			if (AnimationClipEditor.styles == null)
			{
				AnimationClipEditor.styles = new AnimationClipEditor.Styles();
			}
			if (this.m_AvatarPreview == null)
			{
				this.m_AvatarPreview = new AvatarPreview(null, this.target as Motion);
				this.m_AvatarPreview.OnAvatarChangeFunc = new AvatarPreview.OnAvatarChange(this.SetPreviewAvatar);
				this.m_AvatarPreview.fps = Mathf.RoundToInt((this.target as AnimationClip).frameRate);
				this.m_AvatarPreview.ShowIKOnFeetButton = (this.target as Motion).isHumanMotion;
			}
		}