//-----------------------------------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);
        }
    }
예제 #3
0
    //-----------------------------------Unity Functions-----------------------------------

    private void Start()
    {
        mEmotionController = FindObjectOfType <Emot_EmotionController>();
        LoadStimuliFromXML(StimConfigXML);
        SetStimulus("Sun");
    }
예제 #4
0
    //-----------------------------------Unity Functions-----------------------------------

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