예제 #1
0
    public void IncreaseMood(GameObject target, int value)
    {
        CharacterBehavior characterController = target.GetComponent <CharacterBehavior>();
        ColorManager      colorMan            = target.GetComponent <ColorManager> ();
        int last = characterController.mood;

        characterController.mood += value;
        colorMan.ColorMoodChange(last);
    }