- 결과 화면 (생존 시간)
This commit is contained in:
parent
477f38500b
commit
c25b0db9dd
|
|
@ -25,7 +25,7 @@ public class Game_Mini : MonoBehaviour
|
||||||
AsyncOperationHandle<Sprite> m_Handle1, m_Handle2, m_HandleSD;
|
AsyncOperationHandle<Sprite> m_Handle1, m_Handle2, m_HandleSD;
|
||||||
ProtectedInt32 m_HP;
|
ProtectedInt32 m_HP;
|
||||||
bool bStartGame;
|
bool bStartGame;
|
||||||
float PcPosLimit;
|
float PcPosLimit, PlayTime;
|
||||||
Dictionary<eMiniGameObtacleType, ProtectedInt32> dic_Money = new Dictionary<eMiniGameObtacleType, ProtectedInt32>();
|
Dictionary<eMiniGameObtacleType, ProtectedInt32> dic_Money = new Dictionary<eMiniGameObtacleType, ProtectedInt32>();
|
||||||
Dictionary<eMiniGameObtacleType, TextMeshProUGUI> dic_MoneyText = new Dictionary<eMiniGameObtacleType, TextMeshProUGUI>();
|
Dictionary<eMiniGameObtacleType, TextMeshProUGUI> dic_MoneyText = new Dictionary<eMiniGameObtacleType, TextMeshProUGUI>();
|
||||||
|
|
||||||
|
|
@ -97,6 +97,8 @@ public class Game_Mini : MonoBehaviour
|
||||||
DSUtil.InActivateGameObjects(gos_hiteffect);
|
DSUtil.InActivateGameObjects(gos_hiteffect);
|
||||||
for (int i = 0; i < items.Length; i++)
|
for (int i = 0; i < items.Length; i++)
|
||||||
items[i].Set();
|
items[i].Set();
|
||||||
|
|
||||||
|
PlayTime = 0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Set()
|
public void Set()
|
||||||
|
|
@ -165,6 +167,8 @@ public class Game_Mini : MonoBehaviour
|
||||||
{
|
{
|
||||||
if (m_HP <= 0) return;
|
if (m_HP <= 0) return;
|
||||||
|
|
||||||
|
PlayTime += Time.deltaTime;
|
||||||
|
|
||||||
var PcSpeed = table_GlobalValue.Ins.Get_Float("MiniGamePCSpeed");
|
var PcSpeed = table_GlobalValue.Ins.Get_Float("MiniGamePCSpeed");
|
||||||
if (m_Joystick.Direction.x < 0f)
|
if (m_Joystick.Direction.x < 0f)
|
||||||
{
|
{
|
||||||
|
|
@ -234,7 +238,7 @@ public class Game_Mini : MonoBehaviour
|
||||||
|
|
||||||
void GameOver()
|
void GameOver()
|
||||||
{
|
{
|
||||||
m_Game_Mini_Result.Set();
|
m_Game_Mini_Result.Set(PlayTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Save_GameResult()
|
public void Save_GameResult()
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,12 @@ public class Game_Mini_Result : MonoBehaviour
|
||||||
{
|
{
|
||||||
public TextMeshProUGUI[] texts; // 0 시간, 1 하트, 2 챗 코인, 3 가챠 코인
|
public TextMeshProUGUI[] texts; // 0 시간, 1 하트, 2 챗 코인, 3 가챠 코인
|
||||||
|
|
||||||
public void Set()
|
public void Set(float playtime)
|
||||||
{
|
{
|
||||||
gameObject.SetActive(true);
|
gameObject.SetActive(true);
|
||||||
|
|
||||||
|
texts[0].text = DSUtil.Get_TimeText_MS(playtime);
|
||||||
|
|
||||||
var dic = LobbyUI.Ins.m_Game_Mini.Get_ResultMoney();
|
var dic = LobbyUI.Ins.m_Game_Mini.Get_ResultMoney();
|
||||||
texts[1].text = dic[eMiniGameObtacleType.AlbumOpen].ToString();
|
texts[1].text = dic[eMiniGameObtacleType.AlbumOpen].ToString();
|
||||||
texts[2].text = dic[eMiniGameObtacleType.ChatCoin].ToString();
|
texts[2].text = dic[eMiniGameObtacleType.ChatCoin].ToString();
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
사운드 및 BGM 요청
|
사운드 및 BGM 요청
|
||||||
|
|
||||||
미니게임 만들기
|
미니게임 만들기
|
||||||
- 결과 화면 (생존 시간)
|
|
||||||
- 광고 sdk
|
- 광고 sdk
|
||||||
- 아이템 기능 구현
|
- 아이템 기능 구현
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue