Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sdk-public
unity_sdk_demo
Commits
d95ddb07
Commit
d95ddb07
authored
Jan 14, 2026
by
gaorui
Browse files
feat(app): 优化模块结构命名,优化代码命名
parent
dba3e756
Changes
6
Show whitespace changes
Inline
Side-by-side
Assets/Scripts/demo/HoolaiDemo.asmdef
0 → 100644
View file @
d95ddb07
{
"name": "HoolaiDemo",
"rootNamespace": "HoolaiDemo",
"references": [
"HoolaiSDK",
"Unity.TextMeshPro"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
Assets/Scripts/demo/HoolaiDemo.asmdef.meta
0 → 100644
View file @
d95ddb07
fileFormatVersion: 2
guid: 4ad29b91a96fd4dd0a7c1c680da6e981
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/Scripts/sdk/
sdk.logic
.asmdef
→
Assets/Scripts/sdk/
HoolaiSDK
.asmdef
View file @
d95ddb07
{
{
"name": "
NewAssembly
",
"name": "
HoolaiSDK
",
"rootNamespace": "",
"rootNamespace": "
HoolaiSDK
",
"references": [
"references": [
"
Unity.TextMeshPro
"
"
Newtonsoft.Json
"
],
],
"includePlatforms": [],
"includePlatforms": [],
"excludePlatforms": [],
"excludePlatforms": [],
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
"versionDefines": [
"versionDefines": [
{
{
"name": "com.unity.nuget.newtonsoft-json",
"name": "com.unity.nuget.newtonsoft-json",
"expression": "",
"expression": "
3.0.0
",
"define": ""
"define": "
NEWTONSOFT_JSON_AVAILABLE
"
}
}
],
],
"noEngineReferences": false
"noEngineReferences": false
...
...
Assets/Scripts/sdk/
sdk.logic
.asmdef.meta
→
Assets/Scripts/sdk/
HoolaiSDK
.asmdef.meta
View file @
d95ddb07
File moved
Assets/Scripts/sdk/data/PlayerInfo.cs
View file @
d95ddb07
...
@@ -66,33 +66,33 @@ public class PlayerInfo
...
@@ -66,33 +66,33 @@ public class PlayerInfo
public
void
AddExtra
(
string
key
,
int
value
)
public
void
AddExtra
(
string
key
,
int
value
)
{
{
if
(
string
.
IsNullOrEmpty
(
key
))
return
;
if
(
string
.
IsNullOrEmpty
(
key
))
return
;
_extra
+=
key
+
":"
+
CrateValue
(
value
)
+
","
;
_extra
+=
key
+
":"
+
Cr
e
ateValue
(
value
)
+
","
;
}
}
public
void
AddExtra
(
string
key
,
double
value
)
public
void
AddExtra
(
string
key
,
double
value
)
{
{
if
(
string
.
IsNullOrEmpty
(
key
))
return
;
if
(
string
.
IsNullOrEmpty
(
key
))
return
;
_extra
+=
key
+
":"
+
CrateValue
(
value
)
+
","
;
_extra
+=
key
+
":"
+
Cr
e
ateValue
(
value
)
+
","
;
}
}
public
void
AddExtra
(
string
key
,
string
value
)
public
void
AddExtra
(
string
key
,
string
value
)
{
{
if
(
string
.
IsNullOrEmpty
(
key
)
||
value
==
null
)
return
;
if
(
string
.
IsNullOrEmpty
(
key
)
||
value
==
null
)
return
;
_extra
+=
key
+
":"
+
CrateValue
(
value
)
+
","
;
_extra
+=
key
+
":"
+
Cr
e
ateValue
(
value
)
+
","
;
}
}
private
string
CrateValue
(
int
val
)
private
string
Cr
e
ateValue
(
int
val
)
{
{
return
"INT|||"
+
val
;
return
"INT|||"
+
val
;
}
}
private
string
CrateValue
(
double
val
)
private
string
Cr
e
ateValue
(
double
val
)
{
{
return
"DOUBLE|||"
+
val
;
return
"DOUBLE|||"
+
val
;
}
}
private
string
CrateValue
(
string
val
)
private
string
Cr
e
ateValue
(
string
val
)
{
{
return
val
;
return
val
;
}
}
...
...
Assets/link.xml
View file @
d95ddb07
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<linker>
<linker>
<assembly
fullname=
"
Assembly-CSharp
"
>
<assembly
fullname=
"
HoolaiSDK
"
>
<!-- core config -->
<!-- core config -->
<type
fullname=
"HoolaiSdkManager"
preserve=
"all"
/>
<type
fullname=
"HoolaiSdkManager"
preserve=
"all"
/>
<type
fullname=
"PlatformCallback"
preserve=
"all"
/>
<type
fullname=
"PlatformCallback"
preserve=
"all"
/>
...
@@ -35,8 +35,8 @@
...
@@ -35,8 +35,8 @@
<assembly
fullname=
"Newtonsoft.Json"
preserve=
"all"
/>
<assembly
fullname=
"Newtonsoft.Json"
preserve=
"all"
/>
<!-- mscorlib config -->
<!-- mscorlib config -->
<assembly
fullname=
"mscorlib"
>
<!--
<assembly fullname="mscorlib">
<type fullname="System.Collections.Generic.List`1" preserve="all"/>
<type fullname="System.Collections.Generic.List`1" preserve="all"/>
<type fullname="System.Collections.Generic.Dictionary`2" preserve="all"/>
<type fullname="System.Collections.Generic.Dictionary`2" preserve="all"/>
</assembly>
</assembly>
-->
</linker>
</linker>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment