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); }