public void logoutButtonClicked() { homeMenuBackground.SetActive(true); foreach (Transform child in rowPrefabParent.transform) { GameObject.Destroy(child.gameObject); } animationscript.playHomeMenuBackgroundSlideOutCustomer(); }