// Changing the emotion state of dough boi if they hit a wrappable object public void Hormonal() { //Starts the change to angry after hitting dopeyHead.StartEmotionChange(HeadController.Emotions.ANGRY); Debug.Log(dopeyHead.currentEmotion); StartCoroutine("ReturnNeutral"); }
void OnWrap() { GetComponent <Renderer>().materials = originalMaterials.ToArray(); for (int i = 0; i < segmentsAdded; i++) { FindObjectOfType <HeadController>().AddBody(); } //Changing boi to happy whenever he wraps dopeyHead.StartEmotionChange(HeadController.Emotions.HAPPY); //Going back to neutral mood.StartCoroutine("ReturnNeutral"); }