Ejemplo n.º 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;;
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     打开拍摄界面
        /// </summary>
        public void OpenPhoto(DateTime dateTime)
        {
            _showMenu = false;

            if (!_showPhoto)
            {
                if (_photoAgent == null)
                {
                    _photoAgent = Instantiate(_photoAgentPrefab, _photoAgentContainer);
                    _photoAgent.Init(this, dateTime);
                }

                _photoAgent.Open();
                _showPhoto = true;
            }
        }
Ejemplo n.º 3
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;;
            }
        }