コード例 #1
0
        public void Hide(bool _immediate)
        {
            if (!setupDone)
            {
                return;
            }

            ContinueScreen.Close(true);
            this.StopAllCoroutines();
            if (_immediate)
            {
                showTween.Rewind();
            }
            else
            {
                showTween.PlayBackwards();
            }
            Bar.Hide();
            Minigames.Hide();
            minigamesStarsToBarTween.Kill();
            if (releasedMinigamesStars != null)
            {
                foreach (RectTransform rt in releasedMinigamesStars)
                {
                    Destroy(rt.gameObject);
                }
                releasedMinigamesStars = null;
            }
        }
コード例 #2
0
        public void Hide(bool _immediate)
        {
            if (!setupDone)
            {
                return;
            }

            this.StopAllCoroutines();
            ContinueScreen.Close(true);
            if (_immediate)
            {
                showTween.Rewind();
            }
            else
            {
                showTween.PlayBackwards();
            }
        }
コード例 #3
0
        public void Show(List <EndsessionResultData> _sessionData, int _alreadyUnlockedRewards, bool _immediate)
        {
            ContinueScreen.Close(true);
            Hide(true);
            Setup();

            this.StopAllCoroutines();
            if (_immediate)
            {
                showTween.Complete();
            }
            else
            {
                showTween.Restart();
            }
            godraysTween.Restart();
            this.gameObject.SetActive(true);
            this.StartCoroutine(CO_Show(_sessionData, _alreadyUnlockedRewards));
        }
コード例 #4
0
        public void Show(int _numStars = 0)
        {
            Setup();

            this.StopAllCoroutines();
            ContinueScreen.Close(true);
            numStars = _numStars;
            this.gameObject.SetActive(true);
            foreach (EndgameStar star in Stars)
            {
                star.Reset();
            }
            showTween.Restart();
            this.gameObject.SetActive(true);
            GameResultUI.I.BonesCounter.Show();


            // NOT NEEDED ANYMORE: bones are added only AFTER we Continue after the game
            // GameResultUI.I.BonesCounter.DecreaseBy(_numStars);
        }