[03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad]

Updated debug feature.
master
LH 5 years ago
parent bfefb90649
commit 4a9bf74071
  1. 3
      03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/Main-1-Intro.unity
  2. 20
      03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/AppData.cs
  3. 25
      03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/AppDataxConfiguration.cs
  4. 7
      03_RoyalGallery/Unity-19050-03_RoyalGallery_iPad/19050-03_RoyalGallery_iPad/Assets/RoyalGallery/Script/ResourceClient.cs

@ -3162,7 +3162,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
dev: 0 dev: 0
deviceId: 3 deviceId: 0
roleId: roleId:
serial: 0123456789 serial: 0123456789
color: color:
@ -3173,7 +3173,6 @@ MonoBehaviour:
lastSignature: {fileID: 0} lastSignature: {fileID: 0}
isEnablePaintBG: 0 isEnablePaintBG: 0
isGetPageBySelf: 1 isGetPageBySelf: 1
isSelectCharaMode: 0
isEnableSceneTester: 0 isEnableSceneTester: 0
currentIndex: 0 currentIndex: 0
--- !u!4 &1824879208 --- !u!4 &1824879208

@ -19,10 +19,24 @@ namespace UltraCombos.Frozen.RoyalGallery
public Texture2D lastSignature = null; public Texture2D lastSignature = null;
public Dictionary<string, CustomPageConfig> pages = new Dictionary<string, CustomPageConfig>(); public Dictionary<string, CustomPageConfig> pages = new Dictionary<string, CustomPageConfig>();
public bool isEnablePaintBG = true; public bool isEnablePaintBG = false;
public bool isGetPageBySelf = false; public bool isGetPageBySelf = true;
public bool isSelectCharaMode = false;
public bool isEnableSceneTester = false; public bool isEnableSceneTester = false;
public int currentIndex = 0; 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"
);
}
} }
} }

@ -30,16 +30,7 @@ namespace UltraCombos.Frozen.RoyalGallery
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {
Debug.Log Trace();
(
"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.deviceId = deviceId;
AppData.Instance.isEnablePaintBG = isEnablePaintBG; AppData.Instance.isEnablePaintBG = isEnablePaintBG;
@ -51,6 +42,8 @@ namespace UltraCombos.Frozen.RoyalGallery
} }
UltraCombos.Multilingual.Core.Instance.isTaiwanNo1 = isTaiwanNo1; UltraCombos.Multilingual.Core.Instance.isTaiwanNo1 = isTaiwanNo1;
AppData.Instance.Trace("AppDataxConfiguration");
} }
// Update is called once per frame // 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"
);
}
} }
} }

@ -49,12 +49,7 @@ namespace UltraCombos.Frozen.RoyalGallery
public void GetPage() public void GetPage()
{ {
var data = AppData.Instance; var data = AppData.Instance;
data.Trace("ResourceClient::GetPage()");
Debug.Log
(
"ResourceClient::GetPage()\n" +
$"isGetPageBySelf = {data.isGetPageBySelf}\n"
);
if (data.isGetPageBySelf) if (data.isGetPageBySelf)
{ {

Loading…
Cancel
Save