Example #1
0
        private void Update()
        {
            float progress = 1 - D.I.battleProgress;

            progressFill.value = progress;
            progressText.text  = $"{LTKey.REMAIN_VIRUS_COUNT.LT()}{Mathf.CeilToInt(progress * 100)}%";

            if (mLastIsBattleTouchOn != GlobalData.isBattleTouchOn)
            {
                if (GlobalData.isBattleTouchOn)
                {
                    slowDownFade.FadeOut();
                }
                else
                {
                    slowDownFade.FadeIn();
                }
                mLastIsBattleTouchOn = GlobalData.isBattleTouchOn;
            }
        }
Example #2
0
 public void Appear()
 {
     Time.timeScale = 0f;
     fadeAlpha.FadeIn();
     EventSystem.current.SetSelectedGameObject(continueButton.gameObject);
 }