private void Init()
{
if (styles == null)
{
styles = new 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;
}
}