private void Update() { if (UIController.GetMenu <StatisticsMenu>().IsOpen) { if (levelDesigner != null) { StopAllCoroutines(); levelDesigner.StopAllCoroutines(); StartCoroutine(levelDesigner.RemoveLevel()); Destroy(levelDesigner); } } }
private void Update() { if (UIController.GetMenu <StatisticsMenu>().IsOpen) { if (levelDesigner != null) { StopAllCoroutines(); levelDesigner.StopAllCoroutines(); StartCoroutine(levelDesigner.RemoveLevel()); Destroy(levelDesigner); } } }