Add hot-update boot pipeline, UI bundles/atlas assets, and design docs.
Ignore AIClient/Library and AIClient/HybridCLRData permanently; include HybridCLR/YooAsset project setup and UI tooling. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace HotUpdate.Net
|
||||
{
|
||||
public static class DeviceId
|
||||
{
|
||||
const string PrefKey = "aigame.device_id";
|
||||
|
||||
public static string GetOrCreate()
|
||||
{
|
||||
var id = PlayerPrefs.GetString(PrefKey, string.Empty);
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
return id;
|
||||
|
||||
id = $"ed_{Guid.NewGuid():N}".Substring(0, 18);
|
||||
PlayerPrefs.SetString(PrefKey, id);
|
||||
PlayerPrefs.Save();
|
||||
return id;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user