Merge pull request #86 from Degulleo/DO-82-게임-종료시-메인씬-돌아가기
DO-82 나가기 버튼
This commit is contained in:
commit
3797aabb4f
@ -5,9 +5,11 @@ using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using DG.Tweening;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class GameUIController : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private Button exitButton;
|
||||
[SerializeField] private GameObject retryButton;
|
||||
[SerializeField] private TMP_Text playerANameText;
|
||||
[SerializeField] private TMP_Text playerBNameText;
|
||||
@ -31,6 +33,11 @@ public class GameUIController : MonoBehaviour
|
||||
private void Start()
|
||||
{
|
||||
_multiplayManager = GameManager.Instance.GetMultiplayManager();
|
||||
|
||||
if (exitButton != null)
|
||||
{
|
||||
exitButton.onClick.AddListener(OnClickExitButton);
|
||||
}
|
||||
}
|
||||
|
||||
public void OnClickConfirmButton()
|
||||
@ -43,6 +50,12 @@ public class GameUIController : MonoBehaviour
|
||||
GameManager.Instance.RetryGame();
|
||||
}
|
||||
|
||||
public void OnClickExitButton()
|
||||
{
|
||||
// "Main" 씬으로 이동
|
||||
SceneManager.LoadScene("Main");
|
||||
}
|
||||
|
||||
public void OnClickSurrenderButton()
|
||||
{
|
||||
if (GameManager.Instance.CheckIsSinglePlay())
|
||||
|
@ -608,7 +608,7 @@ MonoBehaviour:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 3933575647777291622}
|
||||
m_TargetAssemblyTypeName: GameUIController, Assembly-CSharp
|
||||
m_MethodName:
|
||||
m_MethodName: OnClickExitButton
|
||||
m_Mode: 1
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
@ -2497,7 +2497,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 35a536dce57360441898a57e5d5a1335, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
retryButton: {fileID: 0}
|
||||
exitButton: {fileID: 2183639868091494604}
|
||||
playerANameText: {fileID: 4888719462249568075}
|
||||
playerBNameText: {fileID: 5649645114775233136}
|
||||
indicatorA: {fileID: 822440635660578859}
|
||||
|
Loading…
x
Reference in New Issue
Block a user