コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }