럭키 보너스 게임 완료
This commit is contained in:
parent
f8f6f95c7e
commit
6eba1b946a
File diff suppressed because it is too large
Load Diff
|
|
@ -2,11 +2,11 @@ using GUPS.AntiCheat.Protected;
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
|
||||
public class Game_Lucky : MonoBehaviour
|
||||
{
|
||||
public Game_Lucky_Result m_Game_Lucky_Result;
|
||||
public TextMeshProUGUI[] texts; // 0 시간, 1 획득 재화
|
||||
public GameObject go_dropobj; // 떨어질 공 prefab
|
||||
public Transform tf_cup; // 컵 (움직이고 회전하는 부분)
|
||||
|
|
@ -29,6 +29,7 @@ public class Game_Lucky : MonoBehaviour
|
|||
public void Set()
|
||||
{
|
||||
gameObject.SetActive(true);
|
||||
m_Game_Lucky_Result.gameObject.SetActive(false);
|
||||
|
||||
bRotCup = false;
|
||||
|
||||
|
|
@ -95,8 +96,7 @@ public class Game_Lucky : MonoBehaviour
|
|||
updateTime = false;
|
||||
list_dropobj.ForEach(f => f.GetComponent<LuckyGameObj>().StopObj());
|
||||
yield return new WaitForSecondsRealtime(3f);
|
||||
// TODO : 결과 보여주기
|
||||
gameObject.SetActive(false); // 지금은 그냥 나가기
|
||||
m_Game_Lucky_Result.Set(m_Amount);
|
||||
StopAllCoroutines();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
public class Game_Lucky_Result : MonoBehaviour
|
||||
{
|
||||
public TextMeshProUGUI t_amount;
|
||||
|
||||
public void Set(int amount)
|
||||
{
|
||||
gameObject.SetActive(true);
|
||||
t_amount.text = amount.ToString();
|
||||
SaveMgr.Ins.Add_Money(eMoney.AlbumOpen, amount);
|
||||
}
|
||||
|
||||
public void OnClick_Get()
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
LobbyUI.Ins.m_Game_Lucky.gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 618dbc3a12e76d146a5b6e280720f9b3
|
||||
|
|
@ -39,7 +39,8 @@ public class LuckyRandomBlock : MonoBehaviour
|
|||
case eRandomBlock.Divide: t_value.text = $"/{m_Value}"; i_bg.color = Color.grey; break;
|
||||
}
|
||||
|
||||
m_rt.sizeDelta = new Vector2(Random.Range(100, 200), m_rt.sizeDelta.y);
|
||||
m_rt.sizeDelta = new Vector2(Random.Range(100, 250), m_rt.sizeDelta.y);
|
||||
m_rt.anchoredPosition = new Vector3(300f, 0f);
|
||||
|
||||
isMoving = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue