1.2.0
This commit is contained in:
parent
70a3cf4183
commit
282688b7cf
|
|
@ -55,9 +55,9 @@ public class SaveMgr : MonoBehaviourSingletonTemplate<SaveMgr>
|
||||||
|
|
||||||
Attendance = 0,
|
Attendance = 0,
|
||||||
MoneyChatCoin = 0,
|
MoneyChatCoin = 0,
|
||||||
MoneyGacha = 0,
|
MoneyGacha = 100,
|
||||||
MoneyHeart = 0,
|
MoneyHeart = 0,
|
||||||
MoneyLucky = 0,
|
MoneyLucky = table_GlobalValue.Ins.Get_Int("LuckyPoint"),
|
||||||
SelectGirlID = 1,
|
SelectGirlID = 1,
|
||||||
LastDoY = 0,
|
LastDoY = 0,
|
||||||
AttendanceDoY = 0,
|
AttendanceDoY = 0,
|
||||||
|
|
@ -242,7 +242,7 @@ public class SaveMgr : MonoBehaviourSingletonTemplate<SaveMgr>
|
||||||
Add_AttendanceDay();
|
Add_AttendanceDay();
|
||||||
var curDay = Get_AttendanceDay();
|
var curDay = Get_AttendanceDay();
|
||||||
var data = table_attandance.Ins.Get_Data(curDay);
|
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;
|
m_SaveData.AttendanceDoY = InternetTime.Ins.Time.DayOfYear;
|
||||||
Save();
|
Save();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,14 @@ public class ChatUI : MonoBehaviour
|
||||||
IEnumerator Send_Chat()
|
IEnumerator Send_Chat()
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(if_msg.text)) yield break;
|
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";
|
string chaturl = $"https://navistalk-yrtti2co7a-dt.a.run.app/personas/{m_Data.s_PersonaId}/chat";
|
||||||
var token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJnYW1lSWQiOiJzaGVnb3R3ZXQiLCJwYXJ0bmVySWQiOiJ0b25ld29ya2VyIiwiZ2FtZVRva2VuIjoiZ2FtZVRva2VuMjIyMyIsImlhdCI6MTc1ODc4OTE5N30.BU52nWyA6oNtiPNoiO6z9J6B9xYxnTOr_bD-z_Xrw10";
|
var token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJnYW1lSWQiOiJzaGVnb3R3ZXQiLCJwYXJ0bmVySWQiOiJ0b25ld29ya2VyIiwiZ2FtZVRva2VuIjoiZ2FtZVRva2VuMjIyMyIsImlhdCI6MTc1ODc4OTE5N30.BU52nWyA6oNtiPNoiO6z9J6B9xYxnTOr_bD-z_Xrw10";
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ public class GachaUI : uScrollViewMgr
|
||||||
{
|
{
|
||||||
SaveMgr.Ins.Add_Money(eMoney.Gacha, table_GlobalValue.Ins.Get_Int("GachaAutoRefill_Amount"));
|
SaveMgr.Ins.Add_Money(eMoney.Gacha, table_GlobalValue.Ins.Get_Int("GachaAutoRefill_Amount"));
|
||||||
SaveMgr.Ins.Save();
|
SaveMgr.Ins.Save();
|
||||||
LobbyUI.Ins.m_ToastUI.Set($"뽑기 재화 {table_GlobalValue.Ins.Get_Int("GachaAutoRefill_Amount")}개가 충전되었습니다.", ToastY);
|
LobbyUI.Ins.m_ToastUI.Set("별 코인이 자동 충전되었습니다.", ToastY);
|
||||||
|
|
||||||
Set_Money();
|
Set_Money();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue