// 게임오버 UI 활성화 public void SetActiveGameoverUI(bool active) { gameoverUI.SetActive(active); PlayerHealth ph = Player.GetComponent <PlayerHealth>(); PlayerShooter ps = Player.GetComponent <PlayerShooter>(); MoveController mc = Player.GetComponent <MoveController>(); mc.moveJoystick.gameObject.SetActive(false); // 움직임 컨트롤러 ps.attackJoystick.gameObject.SetActive(false); // 공격버튼 컨트롤러 ps.reloadJoystick.gameObject.SetActive(false); // 재장전버튼 컨트롤러 for (int i = 0; i < hideInGameUI.Length; i++) { hideInGameUI[i].SetActive(false); } nickNameText.text = Social.localUser.userName; rank = GameManager.Instance.currentPlayers; if (rank <= 0) { rank = 1; } rankText.text = "#" + rank.ToString(); totalPlayersText.text = PhotonNetwork.CurrentRoom.MaxPlayers.ToString(); if (rank <= 40 && rank > 10) { announceText.text = "그럴 수 있어. 이런 날도 있지 뭐."; } else if (rank <= 10 && rank >= 2) { announceText.text = "TOP 10 달성!!"; } else if (rank <= 1) { announceText.text = "이겼닭! 오늘 저녁은 치킨이닭!"; } killPoint = ph.GetKillCount(); hitPoint = ps.GetHitPoint(); totalPoint = hitPoint + killPoint; ratingPoint = rank; aliveTimePoint = TimeManager.Instance.gamingSecondTime; killPointText.text = killPoint.ToString(); hitPointText.text = hitPoint.ToString(); totalPointText.text = totalPoint.ToString(); ratingPointText.text = ratingPoint.ToString(); aliveTimePointText.text = aliveTimePoint.ToString(); }