
PlayerManager script 수정
using UnityEngine.SceneManagement;
using UnityEngine;
using UnityEngine.UI;
public class PlayerManager : MonoBehaviour
{
public static bool isGameOver;
public GameObject gameOverScreen;
public Text scoreText1;
private void Awake()
{
isGameOver = false;
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if (isGameOver)
{
gameOverScreen.SetActive(true);
***Time.timeScale = 0;
scoreText1.text = "점수 : " + ScoreManager.scoreCount;***
}
}
}
GameOverPanel에 들어가서 ScoreText1에 게임 오브젝트 ScoreText1을 드롭한다. 게임 오브젝트 PlayerManager에 들어가서도 ScoreText1에 게임 오브젝트 ScoreText1을 드롭한다.

이번판 점수가 잘 뜬다 ^^