public void DismissTeam() { TeamController teamController = GameObject.Find("TeamController").GetComponent <TeamController>(); teamController.DismissTeam(); }