From f50254401ec9f8645c26348162449244d16bf34c Mon Sep 17 00:00:00 2001 From: Ino Date: Fri, 12 Sep 2025 05:34:40 +0900 Subject: [PATCH] =?UTF-8?q?=EC=95=A8=EB=B2=94=20=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=20=EB=B0=8F=20=EB=B8=94=EB=9F=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ResWork/UI_Prefab/AlbumCard.prefab | 1 + Assets/Scripts/AttachToGameObject/SaveMgr.cs | 3 +++ Assets/Scripts/UI/AlbumCard.cs | 6 ++++++ 3 files changed, 10 insertions(+) diff --git a/Assets/ResWork/UI_Prefab/AlbumCard.prefab b/Assets/ResWork/UI_Prefab/AlbumCard.prefab index bb4e056..b616ed5 100644 --- a/Assets/ResWork/UI_Prefab/AlbumCard.prefab +++ b/Assets/ResWork/UI_Prefab/AlbumCard.prefab @@ -339,6 +339,7 @@ MonoBehaviour: m_EditorClassIdentifier: i_girl: {fileID: 4409227361096382540} t_price: {fileID: 0} + mat_blur: {fileID: 2100000, guid: edc74ead8b0531c4f8bbb7f145978360, type: 2} --- !u!1 &8113042082887579480 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/AttachToGameObject/SaveMgr.cs b/Assets/Scripts/AttachToGameObject/SaveMgr.cs index 979755d..2844efb 100644 --- a/Assets/Scripts/AttachToGameObject/SaveMgr.cs +++ b/Assets/Scripts/AttachToGameObject/SaveMgr.cs @@ -115,6 +115,8 @@ public class SaveMgr : MonoBehaviourSingletonTemplate m_SaveData.AttendanceDoY = InternetTime.Ins.Time.DayOfYear; Save(); } + + public int Get_UnLockIndex() { return m_SaveData.GirlUnLockIndex; } } public class SaveData @@ -123,6 +125,7 @@ public class SaveData ProtectedInt32 _LastDoY; public int LastDoY { get { return _LastDoY; } set { _LastDoY = value; _LastDoY.Obfuscate(); } } ProtectedInt32 _GirlSelectIndex; public int GirlSelectIndex { get { return _GirlSelectIndex; } set { _GirlSelectIndex = value; _GirlSelectIndex.Obfuscate(); } } + ProtectedInt32 _GirlUnLockIndex; public int GirlUnLockIndex { get { return _GirlUnLockIndex; } set { _GirlUnLockIndex = value; _GirlUnLockIndex.Obfuscate(); } } ProtectedInt32 _AttendanceDoY; public int AttendanceDoY { get { return _AttendanceDoY; } set { _AttendanceDoY = value; _AttendanceDoY.Obfuscate(); } } ProtectedInt32 _Attendance; public int Attendance { get { return _Attendance; } set { _Attendance = value; _Attendance.Obfuscate(); } } diff --git a/Assets/Scripts/UI/AlbumCard.cs b/Assets/Scripts/UI/AlbumCard.cs index 158b410..031c16b 100644 --- a/Assets/Scripts/UI/AlbumCard.cs +++ b/Assets/Scripts/UI/AlbumCard.cs @@ -8,6 +8,7 @@ public class AlbumCard : CardBase { public Image i_girl; public TextMeshProUGUI t_price; + public Material mat_blur; albumtabledata m_Data; AsyncOperationHandle m_Handle; @@ -26,6 +27,11 @@ public class AlbumCard : CardBase m_Handle = handle; i_girl.enabled = true; i_girl.sprite = handle.Result; + + if (m_Data.n_Index > SaveMgr.Ins.Get_UnLockIndex()) + i_girl.material = mat_blur; + else + i_girl.material = null; }); }