using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; public class OverWriteSavePopup : PopupBase { [SerializeField] private TextMeshProUGUI ServerUnlockHuntingCountText = null; [SerializeField] private TextMeshProUGUI ServerLevelText = null; [SerializeField] private TextMeshProUGUI UnlockHuntingCountText = null; [SerializeField] private TextMeshProUGUI LevelText = null; public void SetData(int level, int unlockCount) { Debug.Log("AccountManager: SetData: " + level.ToString() + unlockCount.ToString()); if (ServerUnlockHuntingCountText != null) { ServerUnlockHuntingCountText.text = unlockCount.ToString(); } if (ServerLevelText != null) { ServerLevelText.text = level.ToString(); } if (UnlockHuntingCountText != null) { UnlockHuntingCountText.text = GameManager.DB.GetUnlockTargetIndex(true).ToString(); } if (LevelText != null) { LevelText.text = GameManager.DB.NormalGameLevel.ToString(); } } public void ClickSaveButton() { GameManager.UI.HideTopPopup(); GameManager.Sound.PlaySFX(ESFXType.Button_Hit); GameManager.Account.SignInWithUploadSaveData(false); } public void ClickCloseButton() { GameManager.UI.HideTopPopup(); GameManager.Sound.PlaySFX(ESFXType.Button_Hit); } }