refactor(kv): 整理存档接线并清理迁移冗余实现
This commit is contained in:
@@ -14,7 +14,7 @@ using Activity.Event;
|
||||
|
||||
public class DeBugPanel : MonoBehaviour
|
||||
{
|
||||
game.PlayerDataStorage.IPlayerSaveStore saveStore;
|
||||
Core.KV.IPlayerSaveStore saveStore;
|
||||
|
||||
static public bool isShow = true;
|
||||
private CanvasGroup _canvasGroup;
|
||||
@@ -113,7 +113,7 @@ public class DeBugPanel : MonoBehaviour
|
||||
// Start is called before the first frame update
|
||||
void Awake()
|
||||
{
|
||||
saveStore = GContext.container.Resolve<game.PlayerDataStorage.IPlayerSaveStore>();
|
||||
saveStore = GContext.container.Resolve<Core.KV.IPlayerSaveStore>();
|
||||
inputField_itemId = transform.Find("root/InputField_icon").GetComponent<TMP_InputField>();
|
||||
inputField_itemCount = transform.Find("root/InputField_icon_num").GetComponent<TMP_InputField>();
|
||||
btn_addItem = transform.Find("root/btn_sure2/btn_green").GetComponent<Button>();
|
||||
@@ -582,7 +582,7 @@ public class DeBugPanel : MonoBehaviour
|
||||
private void ChangeMMT()
|
||||
{
|
||||
var userService = GContext.container.Resolve<game.IUserService>();
|
||||
if (userService is not game.PlayFabUserService && userService is not game.KVUserService)
|
||||
if (userService is not game.PlayFabUserService && userService is not game.KvUserService)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -597,7 +597,7 @@ public class DeBugPanel : MonoBehaviour
|
||||
value |= 1 << (mmDatas[i].ID - 1001);
|
||||
}
|
||||
}
|
||||
if (userService is game.KVUserService kvUserService)
|
||||
if (userService is game.KvUserService kvUserService)
|
||||
{
|
||||
kvUserService.GMMMT(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user