public override void ProcessFrame(Playable playable, FrameData info, object playerData) { emotionalState = playerData as EmotionalState; if (emotionalState == null) { return; } emotionalState.SetEmotionValue(emotionType, value); }
void OnEnable() { state = serializedObject.targetObject as EmotionalState; emotions = serializedObject.FindProperty("emotions"); }