private void BackToLevelsComposition() { Destroy(_compositionObject); _gameComposition = null; _levelImageUI.gameObject.SetActive(false); _scoreUI.gameObject.SetActive(false); _backToMainManuButtonUI.gameObject.SetActive(true); _backToLevelsButtonUI.gameObject.SetActive(false); _compositionObject = PlaceComposition(_levelsCompositionPrefab); _levelsComposition = _compositionObject.GetComponent <LevelsComposition>(); if (GameData.grade == Grade.First) { _levelsComposition.Init(_levelsFirstGrade, CreateGameLevel); } else { _levelsComposition.Init(_levelsSecondGrade, CreateGameLevel); } }
private void OnPlaneTap(Pose pose) { _planeGenerator.SetActive(false); CreateAnchor(pose); _compositionObject = PlaceComposition(_levelsCompositionPrefab); _levelsComposition = _compositionObject.GetComponent <LevelsComposition>(); if (GameData.grade == Grade.First) { _levelsComposition.Init(_levelsFirstGrade, CreateGameLevel); } else { _levelsComposition.Init(_levelsSecondGrade, CreateGameLevel); } }