sd 캐릭
This commit is contained in:
parent
83a8d5da9b
commit
e87b7f9a77
|
|
@ -30182,6 +30182,7 @@ MonoBehaviour:
|
|||
m_EditorClassIdentifier:
|
||||
m_Game_Lucky_Result: {fileID: 1534428863}
|
||||
i_girl: {fileID: 314847187}
|
||||
i_girlsd: {fileID: 1950932325}
|
||||
gos_boobs:
|
||||
- {fileID: 1078095979}
|
||||
- {fileID: 917721774}
|
||||
|
|
@ -48144,7 +48145,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: -37.8}
|
||||
m_AnchoredPosition: {x: 0, y: -37.800003}
|
||||
m_SizeDelta: {x: 0, y: 75.7}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &2017171802
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ using UnityEngine.UI;
|
|||
public class Game_Lucky : MonoBehaviour
|
||||
{
|
||||
public Game_Lucky_Result m_Game_Lucky_Result;
|
||||
public Image i_girl;
|
||||
public Image i_girl, i_girlsd;
|
||||
public GameObject[] gos_boobs;
|
||||
public TextMeshProUGUI[] texts; // 0 시간, 1 획득 재화
|
||||
public GameObject go_dropobj; // 떨어질 공 prefab
|
||||
|
|
@ -32,7 +32,7 @@ public class Game_Lucky : MonoBehaviour
|
|||
ProtectedInt32 _bb; public int m_BubbleAmount { get { return _bb; } set { _bb = value; _bb.Obfuscate(); } }
|
||||
ProtectedInt32 TotalBubbleAmount = 50;
|
||||
|
||||
AsyncOperationHandle m_Handle;
|
||||
AsyncOperationHandle m_Handle, m_HandleSD;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
|
|
@ -63,6 +63,14 @@ public class Game_Lucky : MonoBehaviour
|
|||
i_girl.enabled = true;
|
||||
i_girl.sprite = handle.Result;
|
||||
});
|
||||
i_girlsd.enabled = false;
|
||||
AddrResourceMgr.Ins.LoadObject<Sprite>($"Girl_Game/{SaveMgr.Ins.Get_SelectGirlID()}sd.png", handle =>
|
||||
{
|
||||
m_HandleSD = handle;
|
||||
i_girlsd.enabled = true;
|
||||
i_girlsd.sprite = handle.Result;
|
||||
});
|
||||
|
||||
DSUtil.InActivateGameObjects(gos_boobs, SaveMgr.Ins.Get_SelectGirlID() - 1);
|
||||
|
||||
// tf_cup 초기화
|
||||
|
|
@ -136,6 +144,9 @@ public class Game_Lucky : MonoBehaviour
|
|||
{
|
||||
AddrResourceMgr.Ins.Relese(m_Handle);
|
||||
i_girl.sprite = null;
|
||||
AddrResourceMgr.Ins.Relese(m_HandleSD);
|
||||
i_girlsd.sprite = null;
|
||||
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,9 +41,9 @@ public class GachaUI : uScrollViewMgr
|
|||
|
||||
public void OnClick_Lucky()
|
||||
{
|
||||
if (SaveMgr.Ins.Check_Money(eMoney.Lucky, table_GlobalValue.Ins.Get_Int("LuckyPoint")))
|
||||
//if (SaveMgr.Ins.Check_Money(eMoney.Lucky, table_GlobalValue.Ins.Get_Int("LuckyPoint")))
|
||||
{
|
||||
SaveMgr.Ins.Add_Money(eMoney.Lucky, -table_GlobalValue.Ins.Get_Int("LuckyPoint"));
|
||||
//SaveMgr.Ins.Add_Money(eMoney.Lucky, -table_GlobalValue.Ins.Get_Int("LuckyPoint"));
|
||||
SaveMgr.Ins.Save();
|
||||
LobbyUI.Ins.m_Game_Lucky.Set();
|
||||
Set_UI();
|
||||
|
|
|
|||
Loading…
Reference in New Issue