fix: 1、更换命名空间和文件夹名字

This commit is contained in:
2026-06-02 11:11:47 +08:00
parent dfead2c461
commit 2a53f34659
4305 changed files with 582 additions and 603 deletions
+27
View File
@@ -0,0 +1,27 @@
using SGModule.DataStorage;
using SGModule.NetKit;
using ZooMatch;
public static partial class DataMgr {
public static void InitPreferences(string jsonStr) {
DataManager.Instance.AddSaveCallback(CloudDataSaver.UpdateData);
var loginModel = LoginKit.Instance.LoginModel;
// Debug.Log($"barry init Preferences-----0--{loginModel.uid}--{userID}");
if (loginModel.NewPlayer || loginModel.Uid != UserID.Value) {
// Debug.Log($"barry init Preferences----1---");
DataManager.Instance.ClearAllData();
UserID.Value = loginModel.Uid;
}
// ObjectExtensionsTest.AsTestRun();
// Debug.Log($"barry init Preferences----2---{jsomnStr}");
DataManager.Instance.ImportFromJson(jsonStr, loginModel.PlayDataVer);
// UserCoreMgr.Instance.LoadItemData();
// ItemManager.GetInstance.LoadItemData();
}
}