void GoNorth(GoNorthEvent eventTest) { currentMat = 3; foreach (GameObject top in wallTops) { if (top != null) { topRender = top.GetComponentsInChildren <Renderer> (); foreach (Renderer rend in topRender) { rend.material.Lerp(rend.material, getColor(eventTest.emotion), 0.5f); } } } }
void GoNorth(GoNorthEvent eventTest) { GetComponent <Gun>().Shoot("joy"); }