|
@ -1,6 +1,7 @@ |
|
|
using System.Collections; |
|
|
using System.Collections; |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
|
using UnityEngine; |
|
|
using UnityEngine; |
|
|
|
|
|
using UnityEngine.SceneManagement; |
|
|
using UnityEngine.UI; |
|
|
using UnityEngine.UI; |
|
|
|
|
|
|
|
|
public class GameOverScreen : MonoBehaviour |
|
|
public class GameOverScreen : MonoBehaviour |
|
@ -37,14 +38,22 @@ public class GameOverScreen : MonoBehaviour |
|
|
_gameOverMessage.text += "<color=white>TIE!</color>"; |
|
|
_gameOverMessage.text += "<color=white>TIE!</color>"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
_gameOverMessage.text += "<color=white>\n\nPress 'R' to replay</color>"; |
|
|
//_gameOverMessage.text += "<color=white>\n\nPress 'R' to replay</color>";
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Invoke("Restart", 10); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void Restart() |
|
|
|
|
|
{ |
|
|
|
|
|
SceneManager.LoadScene("Title"); |
|
|
|
|
|
} |
|
|
// Update is called once per frame
|
|
|
// Update is called once per frame
|
|
|
void Update() |
|
|
void Update() |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (Input.GetMouseButtonDown(0)){ |
|
|
|
|
|
Restart(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|