diff --git a/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/AppDataxConfiguration.cs b/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/AppDataxConfiguration.cs index afe6f49..6b07c4d 100644 --- a/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/AppDataxConfiguration.cs +++ b/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/AppDataxConfiguration.cs @@ -15,7 +15,7 @@ namespace UltraCombos.Frozen.RoyalGallery public bool isEnablePaintBG = true; [Configuration.Config] - public bool isGetPageBySelf = false; + public bool isGetPageBySelf = true; [Configuration.Config] public bool isEnableSceneTester = false; @@ -30,6 +30,17 @@ namespace UltraCombos.Frozen.RoyalGallery // Start is called before the first frame update void Start() { + Debug.Log + ( + "AppDataxConfiguration::Start()\n" + + $"deviceId = {deviceId}\n" + + $"isEnablePaintBG = {isEnablePaintBG}\n" + + $"isGetPageBySelf = {isGetPageBySelf}\n" + + $"isEnableSceneTester = {isEnableSceneTester}\n" + + $"targetIndex = {targetIndex}\n" + + $"isTaiwanNo1 = {isTaiwanNo1}\n" + ); + AppData.Instance.deviceId = deviceId; AppData.Instance.isEnablePaintBG = isEnablePaintBG; AppData.Instance.isGetPageBySelf = isGetPageBySelf; diff --git a/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/PageManager.cs b/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/PageManager.cs index 34abc36..44cac19 100644 --- a/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/PageManager.cs +++ b/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/PageManager.cs @@ -11,7 +11,7 @@ namespace UltraCombos.Frozen.RoyalGallery public class PageManager : MonoBehaviour { [Configuration.Config] - public bool isKKTest = false; + public bool isKKTest = true; public List names = new List(); @@ -20,6 +20,11 @@ namespace UltraCombos.Frozen.RoyalGallery public string FolderName = "Frozen"; private void Awake() + { + LoadPage(); + } + + private void LoadPage() { var pages = AppData.Instance.pages; foreach (var n in names) @@ -55,11 +60,6 @@ namespace UltraCombos.Frozen.RoyalGallery Debug.Log($"[Page Manager] Add {pages.Count} pages."); } - private void Start() - { - - } - public void SetSelectedPage(string page) { var pages = AppData.Instance.pages; diff --git a/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/ResourceClient.cs b/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/ResourceClient.cs index c279eeb..5a03102 100644 --- a/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/ResourceClient.cs +++ b/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/ResourceClient.cs @@ -49,6 +49,13 @@ namespace UltraCombos.Frozen.RoyalGallery public void GetPage() { var data = AppData.Instance; + + Debug.Log + ( + "ResourceClient::GetPage()\n" + + $"isGetPageBySelf = {data.isGetPageBySelf}\n" + ); + if (data.isGetPageBySelf) { GetPageBySelf();