diff --git a/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/Main-1-Intro.unity b/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/Main-1-Intro.unity index 5715695..95a655e 100644 --- a/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/Main-1-Intro.unity +++ b/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/Main-1-Intro.unity @@ -3162,7 +3162,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: dev: 0 - deviceId: 3 + deviceId: 0 roleId: serial: 0123456789 color: @@ -3173,7 +3173,6 @@ MonoBehaviour: lastSignature: {fileID: 0} isEnablePaintBG: 0 isGetPageBySelf: 1 - isSelectCharaMode: 0 isEnableSceneTester: 0 currentIndex: 0 --- !u!4 &1824879208 diff --git a/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/AppData.cs b/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/AppData.cs index 40b7770..a1bf3eb 100644 --- a/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/AppData.cs +++ b/03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/AppData.cs @@ -19,10 +19,24 @@ namespace UltraCombos.Frozen.RoyalGallery public Texture2D lastSignature = null; public Dictionary pages = new Dictionary(); - public bool isEnablePaintBG = true; - public bool isGetPageBySelf = false; - public bool isSelectCharaMode = false; + public bool isEnablePaintBG = false; + public bool isGetPageBySelf = true; public bool isEnableSceneTester = false; public int currentIndex = 0; + + public void Trace(string msg = "") + { + Debug.Log + ( + $"AppData::Trace({msg})\n" + + $"deviceId = {deviceId}\n" + + $"roleId = {roleId}\n" + + $"serial = {serial}\n" + + $"isEnablePaintBG = {isEnablePaintBG}\n" + + $"isGetPageBySelf = {isGetPageBySelf}\n" + + $"isEnableSceneTester = {isEnableSceneTester}\n" + + $"currentIndex = {currentIndex}\n" + ); + } } } 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 6b07c4d..c558383 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 @@ -30,16 +30,7 @@ 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" - ); + Trace(); AppData.Instance.deviceId = deviceId; AppData.Instance.isEnablePaintBG = isEnablePaintBG; @@ -51,6 +42,8 @@ namespace UltraCombos.Frozen.RoyalGallery } UltraCombos.Multilingual.Core.Instance.isTaiwanNo1 = isTaiwanNo1; + + AppData.Instance.Trace("AppDataxConfiguration"); } // Update is called once per frame @@ -58,5 +51,17 @@ namespace UltraCombos.Frozen.RoyalGallery { } + + void Trace() + { + Debug.Log + ( + $"AppDataxConfiguration::Trace()\n" + + $"isEnablePaintBG = {isEnablePaintBG}\n" + + $"isGetPageBySelf = {isGetPageBySelf}\n" + + $"targetIndex = {targetIndex}\n" + + $"isTaiwanNo1 = {isTaiwanNo1}\n" + ); + } } } 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 5a03102..4106fba 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,12 +49,7 @@ namespace UltraCombos.Frozen.RoyalGallery public void GetPage() { var data = AppData.Instance; - - Debug.Log - ( - "ResourceClient::GetPage()\n" + - $"isGetPageBySelf = {data.isGetPageBySelf}\n" - ); + data.Trace("ResourceClient::GetPage()"); if (data.isGetPageBySelf) {