gameplay所有基本功能都装了,加入了全局警告。加入飘字等各种东西。
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -13,7 +13,7 @@ public class SongDataSerializable
|
||||
public int max_comboRecord;
|
||||
public int personalRecord;
|
||||
public string dataHash; // 防篡改校验和
|
||||
public List<int> enemyList = new List<int>();
|
||||
// public List<int> enemyList = new List<int>(); // Deprecated and removed
|
||||
|
||||
// --- 字典映射表 (JsonUtility 不支持 Dictionary,需转为 List 存储) ---
|
||||
[System.Serializable]
|
||||
@@ -41,7 +41,7 @@ public class SongDataSerializable
|
||||
this._if_level_is_EASE = source._if_level_is_EASE;
|
||||
this.max_comboRecord = source.max_comboRecord;
|
||||
this.personalRecord = source.personalRecord;
|
||||
this.enemyList = new List<int>(source.enemyList);
|
||||
// this.enemyList = new List<int>(source.enemyList); // Deprecated and removed
|
||||
|
||||
// 将字典转换为 List
|
||||
this.difficultyNumberList = DictToList(source.difficultyNumberMap);
|
||||
@@ -63,7 +63,7 @@ public class SongDataSerializable
|
||||
target._if_level_is_EASE = this._if_level_is_EASE;
|
||||
target.max_comboRecord = this.max_comboRecord;
|
||||
target.personalRecord = this.personalRecord;
|
||||
target.enemyList = new List<int>(this.enemyList);
|
||||
// target.enemyList = new List<int>(this.enemyList); // Deprecated and removed
|
||||
|
||||
// 将 List 还原回字典
|
||||
ListToDict(this.difficultyNumberList, target.difficultyNumberMap);
|
||||
|
||||
Reference in New Issue
Block a user