private void Update() { if (_gameStarted) { StartGameText.color = UILerper.LerpOpacity(StartGameText.color, 0, 0.05f); } }
private void Update() { if (_gameStarted) { CalculateRemainingTime(); StartGameText.color = UILerper.LerpOpacity(StartGameText.color, 0, 0.05f); } }
private void Update() { CheckIfTimeOver(); //StartGameText.rectTransform.localScale = IncreaseUISize(StartGameText.rectTransform,_orScale); if (_gameStarted) { CalculateRemainingTime(); StartGameText.color = UILerper.LerpOpacity(StartGameText.color, 0, 0.05f); } }
private void ShowEndGameUI() { UILerper.LerpUI(EndGameUI, new Vector2(0, EndGameUI.anchoredPosition.y), 10f); }
private void HideStartGameUI() { UILerper.LerpUI(StartGameUI, _originalUIPos, StartGameMoveSpeed); }
private void ShowStartGameUI() { UILerper.LerpUI(StartGameUI, new Vector2(0, _originalUIPos.y), StartGameMoveSpeed); }
private void HideUIElements() { UILerper.LerpUI(Border, _originalBorderPos, _csm.CharacterSelectBorderMoveSpeed); NameSpace.enabled = false; }
private void ShowUIElements() { UILerper.LerpUI(Border, new Vector2(Border.anchoredPosition.x, -10f), _csm.CharacterSelectBorderMoveSpeed); NameSpace.enabled = true; }
void Start() { lerper = GetComponentInParent <UILerper>(); }