Revert "Merge branch 'Integration'"
This reverts commit0727e44b80
, reversing changes made to1fb3c9bfbe
.
This commit is contained in:
parent
0727e44b80
commit
97b9d94930
103 changed files with 780 additions and 10299 deletions
|
@ -4,7 +4,7 @@ using UnityEngine.SceneManagement;
|
|||
|
||||
public class LoseUI : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private GameUI gameUI;
|
||||
[SerializeField] GameUI gameUI;
|
||||
|
||||
[SerializeField] TextMeshProUGUI time;
|
||||
|
||||
|
@ -14,9 +14,15 @@ public class LoseUI : MonoBehaviour
|
|||
time.text = gameUI.GetComponent<GameUI>().time.ToString();
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Retry()
|
||||
{
|
||||
GameManager.Instance.ReloadLevel();
|
||||
SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().name);
|
||||
}
|
||||
|
||||
public void MainMenu()
|
||||
|
|
|
@ -5,18 +5,16 @@ using UnityEngine.SceneManagement;
|
|||
public class WinCanvas : MonoBehaviour
|
||||
{
|
||||
[SerializeField] TextMeshProUGUI time;
|
||||
private GameUI gameUI;
|
||||
[SerializeField] GameObject gameUI;
|
||||
|
||||
void Start()
|
||||
{
|
||||
gameUI = GameObject.FindWithTag("GameUI").GetComponent<GameUI>();
|
||||
time.text = gameUI.GetComponent<GameUI>().time.ToString();
|
||||
}
|
||||
|
||||
|
||||
public void NextLevel()
|
||||
{
|
||||
GameManager.Instance.GoNextLevel();
|
||||
SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().buildIndex + 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue