Beispiel #1
0
        protected override void Show()
        {
            feed = GetComponentInChildren <PostHistoryPanel>();

            feed.Clear();

            var posts = GameManager.Instance.GameStateManager.PostHistory;

            feed.SetPosts(posts);
        }
Beispiel #2
0
        protected override void Show()
        {
            // TODO move this somewhere it belongs. state check is not a task for this class.
            if (transitionToEnd)
            {
                uiManager.TransitionToScreen("Ending");
                return;
            }

            SoundManager.Instance.PlayMusic();

            if (!feed)
            {
                feed = GetComponentInChildren <PostHistoryPanel>(true);
            }

            feed.Clear();
            var posts = GameManager.Instance.GameStateManager.PostHistory;

            feed.SetPosts(posts);
        }