Commit d95ddb07 authored by gaorui's avatar gaorui
Browse files

feat(app): 优化模块结构命名,优化代码命名

parent dba3e756
{
"name": "HoolaiDemo",
"rootNamespace": "HoolaiDemo",
"references": [
"HoolaiSDK",
"Unity.TextMeshPro"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
fileFormatVersion: 2
guid: 4ad29b91a96fd4dd0a7c1c680da6e981
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
{
"name": "NewAssembly",
"rootNamespace": "",
"name": "HoolaiSDK",
"rootNamespace": "HoolaiSDK",
"references": [
"Unity.TextMeshPro"
"Newtonsoft.Json"
],
"includePlatforms": [],
"excludePlatforms": [],
......@@ -14,8 +14,8 @@
"versionDefines": [
{
"name": "com.unity.nuget.newtonsoft-json",
"expression": "",
"define": ""
"expression": "3.0.0",
"define": "NEWTONSOFT_JSON_AVAILABLE"
}
],
"noEngineReferences": false
......
......@@ -66,33 +66,33 @@ public class PlayerInfo
public void AddExtra(string key, int value)
{
if (string.IsNullOrEmpty(key)) return;
_extra += key + ":" + CrateValue(value) + ",";
_extra += key + ":" + CreateValue(value) + ",";
}
public void AddExtra(string key, double value)
{
if (string.IsNullOrEmpty(key)) return;
_extra += key + ":" + CrateValue(value) + ",";
_extra += key + ":" + CreateValue(value) + ",";
}
public void AddExtra(string key, string value)
{
if (string.IsNullOrEmpty(key) || value == null) return;
_extra += key + ":" + CrateValue(value) + ",";
_extra += key + ":" + CreateValue(value) + ",";
}
private string CrateValue(int val)
private string CreateValue(int val)
{
return "INT|||" + val;
}
private string CrateValue(double val)
private string CreateValue(double val)
{
return "DOUBLE|||" + val;
}
private string CrateValue(string val)
private string CreateValue(string val)
{
return val;
}
......
<?xml version="1.0" encoding="utf-8"?>
<linker>
<assembly fullname="Assembly-CSharp">
<assembly fullname="HoolaiSDK">
<!-- core config -->
<type fullname="HoolaiSdkManager" preserve="all"/>
<type fullname="PlatformCallback" preserve="all"/>
......@@ -35,8 +35,8 @@
<assembly fullname="Newtonsoft.Json" preserve="all"/>
<!-- mscorlib config -->
<assembly fullname="mscorlib">
<!-- <assembly fullname="mscorlib">
<type fullname="System.Collections.Generic.List`1" preserve="all"/>
<type fullname="System.Collections.Generic.Dictionary`2" preserve="all"/>
</assembly>
</assembly> -->
</linker>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment