Exemple #1
0
        /// <summary>
        ///     打开相册集合
        /// </summary>
        public void OpenAlbumSets(FromSceneEnum fromScene)
        {
            _showMenu = false;

            if (_showPhoto)
            {
                _showPhoto  = false;
                _photoAgent = null;
            }

            if (_showSign)
            {
                _showSign  = false;
                _signAgent = null;
            }


            _menuContainer.gameObject.SetActive(false);
            if (!_showAlbumSet)
            {
                if (_albumSetsAgent == null)
                {
                    _albumSetsAgent = Instantiate(_albumSetsAgentPrefab, _albumSetsAgentContainer);
                    _albumSetsAgent.Init(this);
                    Debug.Log("_albumSetsAgent init");
                }
                _albumSetsAgent.Open();
                _showAlbumSet = true;;
            }
        }
Exemple #2
0
        /// <summary>
        ///     打开相册
        /// </summary>
        public void OpenAlbum(int page, bool toLast)
        {
            _showMenu = false;

            if (_showPhoto)
            {
                _showPhoto  = false;
                _photoAgent = null;
            }

            if (_showSign)
            {
                _showSign  = false;
                _signAgent = null;
            }

            if (_showAlbumSet)
            {
                _showAlbumSet = false;
                _albumSetsAgent.gameObject.SetActive(false);
                _albumSetsAgent = null;
            }

            _menuContainer.gameObject.SetActive(false);
            if (!_showAlbum)
            {
                if (_albumAgent == null)
                {
                    _albumAgent = Instantiate(_albumAgentPrefab, _albumAgentContainer);
                    _albumAgent.Init(this, page, toLast);
                }

                if (toLast)
                {
                    _albumAgent.Open(FromSceneEnum.Sign);
                }
                else
                {
                    _albumAgent.Open(FromSceneEnum.AlbumSets);
                }

                _showAlbum = true;;
            }
        }