From 282688b7cfac2f442fd131470bd7cffb4b5cbd38 Mon Sep 17 00:00:00 2001 From: Ino Date: Tue, 11 Nov 2025 11:32:10 +0900 Subject: [PATCH] 1.2.0 --- Assets/Scripts/AttachToGameObject/SaveMgr.cs | 6 +++--- Assets/Scripts/Chat/ChatUI.cs | 8 ++++++++ Assets/Scripts/UI/GachaUI.cs | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/AttachToGameObject/SaveMgr.cs b/Assets/Scripts/AttachToGameObject/SaveMgr.cs index 770c432..45d9ad2 100644 --- a/Assets/Scripts/AttachToGameObject/SaveMgr.cs +++ b/Assets/Scripts/AttachToGameObject/SaveMgr.cs @@ -55,9 +55,9 @@ public class SaveMgr : MonoBehaviourSingletonTemplate Attendance = 0, MoneyChatCoin = 0, - MoneyGacha = 0, + MoneyGacha = 100, MoneyHeart = 0, - MoneyLucky = 0, + MoneyLucky = table_GlobalValue.Ins.Get_Int("LuckyPoint"), SelectGirlID = 1, LastDoY = 0, AttendanceDoY = 0, @@ -242,7 +242,7 @@ public class SaveMgr : MonoBehaviourSingletonTemplate Add_AttendanceDay(); var curDay = Get_AttendanceDay(); var data = table_attandance.Ins.Get_Data(curDay); - Add_Money(eMoney.Gacha, data.n_GachaAmount); + Add_Money(eMoney.Chat, data.n_GachaAmount); m_SaveData.AttendanceDoY = InternetTime.Ins.Time.DayOfYear; Save(); } diff --git a/Assets/Scripts/Chat/ChatUI.cs b/Assets/Scripts/Chat/ChatUI.cs index f13733b..b0c94e5 100644 --- a/Assets/Scripts/Chat/ChatUI.cs +++ b/Assets/Scripts/Chat/ChatUI.cs @@ -90,6 +90,14 @@ public class ChatUI : MonoBehaviour IEnumerator Send_Chat() { if (string.IsNullOrEmpty(if_msg.text)) yield break; + if (SaveMgr.Ins.Check_Money(eMoney.Chat, 1)) + { + SaveMgr.Ins.Add_Money(eMoney.Chat, -1); + SaveMgr.Ins.Save(); + Set_Money(); + } + else + yield break; string chaturl = $"https://navistalk-yrtti2co7a-dt.a.run.app/personas/{m_Data.s_PersonaId}/chat"; var token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJnYW1lSWQiOiJzaGVnb3R3ZXQiLCJwYXJ0bmVySWQiOiJ0b25ld29ya2VyIiwiZ2FtZVRva2VuIjoiZ2FtZVRva2VuMjIyMyIsImlhdCI6MTc1ODc4OTE5N30.BU52nWyA6oNtiPNoiO6z9J6B9xYxnTOr_bD-z_Xrw10"; diff --git a/Assets/Scripts/UI/GachaUI.cs b/Assets/Scripts/UI/GachaUI.cs index e3d7a72..d8c7b3b 100644 --- a/Assets/Scripts/UI/GachaUI.cs +++ b/Assets/Scripts/UI/GachaUI.cs @@ -46,7 +46,7 @@ public class GachaUI : uScrollViewMgr { SaveMgr.Ins.Add_Money(eMoney.Gacha, table_GlobalValue.Ins.Get_Int("GachaAutoRefill_Amount")); SaveMgr.Ins.Save(); - LobbyUI.Ins.m_ToastUI.Set($"뽑기 재화 {table_GlobalValue.Ins.Get_Int("GachaAutoRefill_Amount")}개가 충전되었습니다.", ToastY); + LobbyUI.Ins.m_ToastUI.Set("별 코인이 자동 충전되었습니다.", ToastY); Set_Money(); }