//-----------------------------------Unity Functions----------------------------------- private void Start() { mEmotionController = FindObjectOfType <Emot_EmotionController>(); mEmotionNames = mEmotionController.GetEmotionNames(); RegenEmotionOrder(); SetEmotionText(""); UpdateEmotionController(); }
public override void OnInspectorGUI() { script = (Emot_EmotionController)target; DrawDefaultInspector(); DrawEmotionTypeInspector(script.Emotions); if (GUI.changed || (Event.current.type == EventType.ExecuteCommand && Event.current.commandName == "UndoRedoPerformed")) { EditorUtility.SetDirty(script); } }
//-----------------------------------Unity Functions----------------------------------- private void Start() { mEmotionController = FindObjectOfType <Emot_EmotionController>(); LoadStimuliFromXML(StimConfigXML); SetStimulus("Sun"); }
//-----------------------------------Unity Functions----------------------------------- private void Start() { mEmotController = GetComponent <Emot_EmotionController>(); mAnimController = GetComponent <Anim_AnimationController>(); }