Add Game Over screen and count down clock for game time
This commit is contained in:
parent
15abaa80fa
commit
0c71d06fb8
10 changed files with 934 additions and 9 deletions
19
Assets/Scripts/UI/GamePlayingClockUI.cs
Normal file
19
Assets/Scripts/UI/GamePlayingClockUI.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class GamePlayingClockUI : MonoBehaviour
|
||||
{
|
||||
|
||||
[SerializeField] private Image timerImage;
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (GameStateManager.Instace.IsGamePlaying())
|
||||
{
|
||||
timerImage.fillAmount = GameStateManager.Instace.GetGamePlayingTimerNomalized();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue