//-----------------------------------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);
        }
    }
Ejemplo n.º 3
0
    //-----------------------------------Unity Functions-----------------------------------

    private void Start()
    {
        mEmotionController = FindObjectOfType <Emot_EmotionController>();
        LoadStimuliFromXML(StimConfigXML);
        SetStimulus("Sun");
    }
Ejemplo n.º 4
0
    //-----------------------------------Unity Functions-----------------------------------

    private void Start()
    {
        mEmotController = GetComponent <Emot_EmotionController>();
        mAnimController = GetComponent <Anim_AnimationController>();
    }