void ClearData() { for (int i = 0; i < spawner.gameObject.transform.childCount; i++) { Destroy(spawner.gameObject.transform.GetChild(i).gameObject); } dangerTxt.Hide(); MapControler.Instance.Clear(); GameController.Instance.Clear(); end.HideAllListReward(); end.Clear(); }