열기 버튼 제어

This commit is contained in:
Ino 2025-09-12 05:38:25 +09:00
parent f50254401e
commit 416a7b7c86
3 changed files with 10 additions and 2 deletions

View File

@ -340,6 +340,8 @@ MonoBehaviour:
i_girl: {fileID: 4409227361096382540} i_girl: {fileID: 4409227361096382540}
t_price: {fileID: 0} t_price: {fileID: 0}
mat_blur: {fileID: 2100000, guid: edc74ead8b0531c4f8bbb7f145978360, type: 2} mat_blur: {fileID: 2100000, guid: edc74ead8b0531c4f8bbb7f145978360, type: 2}
gos:
- {fileID: 8113042082887579480}
--- !u!1 &8113042082887579480 --- !u!1 &8113042082887579480
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -354,7 +356,7 @@ GameObject:
- component: {fileID: 3351973770255872143} - component: {fileID: 3351973770255872143}
- component: {fileID: 7967308884494401776} - component: {fileID: 7967308884494401776}
m_Layer: 5 m_Layer: 5
m_Name: btn_ m_Name: btn_open
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0

View File

@ -41,8 +41,11 @@ public class SaveMgr : MonoBehaviourSingletonTemplate<SaveMgr>
Attendance = 0, Attendance = 0,
ChatCoin = 0, ChatCoin = 0,
Coin = 0, Coin = 0,
GachaCoin = 0,
GirlSelectIndex = 0, GirlSelectIndex = 0,
LastDoY = 0 LastDoY = 0,
AttendanceDoY = 0,
GirlUnLockIndex = 1
}; };
} }
} }

View File

@ -9,6 +9,7 @@ public class AlbumCard : CardBase
public Image i_girl; public Image i_girl;
public TextMeshProUGUI t_price; public TextMeshProUGUI t_price;
public Material mat_blur; public Material mat_blur;
public GameObject[] gos; // 0 열기 버튼
albumtabledata m_Data; albumtabledata m_Data;
AsyncOperationHandle m_Handle; AsyncOperationHandle m_Handle;
@ -21,6 +22,8 @@ public class AlbumCard : CardBase
if (m_Handle.IsValid()) if (m_Handle.IsValid())
Addressables.Release(m_Handle); Addressables.Release(m_Handle);
gos[0].SetActive(m_Data.n_Index == SaveMgr.Ins.Get_UnLockIndex() + 1);
i_girl.enabled = false; i_girl.enabled = false;
AddrResourceMgr.Ins.LoadObject<Sprite>(m_Data.s_Image, handle => AddrResourceMgr.Ins.LoadObject<Sprite>(m_Data.s_Image, handle =>
{ {