public override void ProcessFrame(Playable playable, FrameData info, object playerData)
        {
            emotionalState = playerData as EmotionalState;
            if (emotionalState == null)
            {
                return;
            }

            emotionalState.SetEmotionValue(emotionType, value);
        }
Пример #2
0
 void OnEnable()
 {
     state    = serializedObject.targetObject as EmotionalState;
     emotions = serializedObject.FindProperty("emotions");
 }