Clear useless log
This commit is contained in:
@@ -286,25 +286,25 @@ namespace PerfectWorld.Scripts.Managers
|
||||
var t = data.GetType();
|
||||
|
||||
// Debug: Log all available fields and properties
|
||||
Debug.Log($"[Inventory] Data type: {t.Name}");
|
||||
// Debug.Log($"[Inventory] Data type: {t.Name}");
|
||||
var fields = t.GetFields(BindingFlags.Public | BindingFlags.Instance);
|
||||
foreach (var f in fields)
|
||||
{
|
||||
Debug.Log($"[Inventory] Field: {f.Name} ({f.FieldType.Name})");
|
||||
}
|
||||
// foreach (var f in fields)
|
||||
// {
|
||||
// Debug.Log($"[Inventory] Field: {f.Name} ({f.FieldType.Name})");
|
||||
// }
|
||||
var props = t.GetProperties(BindingFlags.Public | BindingFlags.Instance);
|
||||
foreach (var p in props)
|
||||
{
|
||||
Debug.Log($"[Inventory] Property: {p.Name} ({p.PropertyType.Name})");
|
||||
}
|
||||
// foreach (var p in props)
|
||||
// {
|
||||
// Debug.Log($"[Inventory] Property: {p.Name} ({p.PropertyType.Name})");
|
||||
// }
|
||||
var methods = t.GetMethods(BindingFlags.Public | BindingFlags.Instance);
|
||||
foreach (var m in methods)
|
||||
{
|
||||
if (m.Name.ToLower().Contains("name") || m.Name.ToLower().Contains("getname"))
|
||||
{
|
||||
Debug.Log($"[Inventory] Method: {m.Name} ({m.ReturnType.Name})");
|
||||
}
|
||||
}
|
||||
// foreach (var m in methods)
|
||||
// {
|
||||
// if (m.Name.ToLower().Contains("name") || m.Name.ToLower().Contains("getname"))
|
||||
// {
|
||||
// Debug.Log($"[Inventory] Method: {m.Name} ({m.ReturnType.Name})");
|
||||
// }
|
||||
// }
|
||||
|
||||
// Prefer decoding the raw fields first to control encoding (Unicode for Vietnamese),
|
||||
// then fall back to any string properties if needed.
|
||||
|
||||
Reference in New Issue
Block a user