feat: 게임 오버 UI 레이아웃 및 로직 수정
This commit is contained in:
File diff suppressed because it is too large
Load Diff
52
Gameton-06/Assets/Gameton/Scripts/UI/GameoverUI.cs
Normal file
52
Gameton-06/Assets/Gameton/Scripts/UI/GameoverUI.cs
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
|
namespace TON
|
||||||
|
{
|
||||||
|
public class GameoverUI : UIBase
|
||||||
|
{
|
||||||
|
|
||||||
|
public static GameoverUI Instance => UIManager.Singleton.GetUI<GameoverUI>(UIList.GameOverUI);
|
||||||
|
|
||||||
|
public GameObject rechargeModal;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private void OnEnable()
|
||||||
|
{
|
||||||
|
rechargeModal.SetActive(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnClickHomeButton()
|
||||||
|
{
|
||||||
|
UIManager.Hide<GameoverUI>(UIList.GameOverUI);
|
||||||
|
|
||||||
|
Main.Singleton.ChangeScene(SceneType.Lobby);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnClickRechargeButton()
|
||||||
|
{
|
||||||
|
rechargeModal.SetActive(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnClickCloseButton()
|
||||||
|
{
|
||||||
|
rechargeModal.SetActive(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnClickUseCashButton(int count)
|
||||||
|
{
|
||||||
|
// TODO: 보유한 생선 갯수를 소모하고 하트를 충전
|
||||||
|
Debug.Log("OnClickUseCashButton::: fish :: " + count);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnClickAdButton()
|
||||||
|
{
|
||||||
|
// TODO: 광고 시청 로직 추가, 광고 종료 후 하트 충전
|
||||||
|
Debug.Log("OnClickAdButton::: ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
11
Gameton-06/Assets/Gameton/Scripts/UI/GameoverUI.cs.meta
Normal file
11
Gameton-06/Assets/Gameton/Scripts/UI/GameoverUI.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 804e61bedec1d5548bab758077b6ed3c
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Reference in New Issue
Block a user