[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_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

@ -19,10 +19,24 @@ namespace UltraCombos.Frozen.RoyalGallery
public Texture2D lastSignature = null;
public Dictionary<string, CustomPageConfig> pages = new Dictionary<string, CustomPageConfig>();
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"
);
}
}
}

@ -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"
);
}
}
}

@ -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)
{

Loading…
Cancel
Save