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; } }
public void Appear() { Time.timeScale = 0f; fadeAlpha.FadeIn(); EventSystem.current.SetSelectedGameObject(continueButton.gameObject); }