Beispiel #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;;
            }
        }
Beispiel #2
0
        public void Init(DateTime start, DateTime end, int page, AlbumSetsAgent albumSetsAgent)
        {
            _manager = GameObject.Find("MainBrain").GetComponent <BCManager>();

            _page = page;

            _albumSetsAgent = albumSetsAgent;

            // 设置文字
        }
Beispiel #3
0
        public void Recover()
        {
            UpdateRecentActiveTime();
            _albumSetsAgent = null;
            _signAgent      = null;
            _showAlbum      = false;
            _showSign       = false;
            _showAlbumSet   = false;
            _menuContainer.gameObject.SetActive(true);

            _showMenu = true;
        }
Beispiel #4
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;;
            }
        }