public override void ProcessFrame(Playable playable, FrameData info, object playerData) { EZAnimation controller = playerData as EZAnimation; if (controller == null) { return; } controller.Process((float)playable.GetTime()); }
protected void OnEnable() { animation = target as EZAnimation; m_Target = serializedObject.FindProperty("m_Target"); m_Loop = serializedObject.FindProperty("m_Loop"); m_PlayOnAwake = serializedObject.FindProperty("m_PlayOnAwake"); m_RestartOnEnable = serializedObject.FindProperty("m_RestartOnEnable"); m_UpdateMode = serializedObject.FindProperty("m_UpdateMode"); m_Segments = serializedObject.FindProperty("m_Segments"); segments = new ReorderableList(serializedObject, m_Segments, true, true, true, true) { drawHeaderCallback = DrawSegmentListHeader, elementHeightCallback = GetSegmentListElementHeight, drawElementCallback = DrawSegmentListElement, }; GetOtherProperties(); }