static void inactiveGameObjects(GameObject[] Objectstoinactive) { foreach (GameObject ObjectToActive in Objectstoinactive) { ObjectToActive.SetActive(false); } }
static void activeGameObjects(GameObject[] ObjectstoActive) { foreach (GameObject ObjectToActive in ObjectstoActive) { ObjectToActive.SetActive(true); } }