This commit is contained in:
zjq 2025-02-27 16:21:47 +08:00
parent 0baad7061b
commit 68b361c9d6
2 changed files with 44 additions and 0 deletions

1
LICENSE Normal file
View File

@ -0,0 +1 @@
我的协议

43
README.md Normal file
View File

@ -0,0 +1,43 @@
## 本项目包含了:
1.unity的日志记录
2.将文件上传到指定地址,包括但不限制日志记录的文件
*3.随机文件Key值生成(加解密未处理) 设计之初是让玩家上传本地的错误日志方便查错,因为程序进程崩了来不及上传,可酌情处理后台自动上传频率 *
* 项目添加了CDebug方便统一管理打印需要程序添加宏控制ENABLE_LOG_INFO
# 1 markdown语法
## 2
### 3
#### 4
##### 5
12312312
```
public static string GetPlatformPath()
```
12312312
public static string GetPlatformPath()
{
// ReSharper disable once SwitchStatementHandlesSomeKnownEnumValuesWithDefault
switch (Application.platform)
{
case RuntimePlatform.Android:
return "Android";
case RuntimePlatform.IPhonePlayer:
return "iOS";
case RuntimePlatform.WindowsPlayer:
return "Windows";
default:
return $"OtherType: {Application.platform}";
}
}